all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
3
Task/Sort-an-integer-array/Ruby/sort-an-integer-array.rb
Normal file
3
Task/Sort-an-integer-array/Ruby/sort-an-integer-array.rb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
nums = [2,4,3,1,2]
|
||||
sorted = nums.sort # returns a new sorted array. 'nums' is unchanged
|
||||
nums.sort! # sort 'nums' "in-place"
|
||||
Loading…
Add table
Add a link
Reference in a new issue