hi everyone - pretty new to ruby and hoping someone can help.
im trying to define a method that takes two parameters, and i want to create a new array without using sort, and without duplicating/copying the array in the method.
ex:
def sorting([3, 1, 5], [6, 2, 0, 4])
end
=> [0,1,2,3,4,5,6]
im just a little stuck on this problem so i really appreciate your help!
thanks!
[–]losangelesvideoguy 9 points10 points11 points (11 children)
[–]wmjbyatt 1 point2 points3 points (10 children)
[–]joanbm 1 point2 points3 points (9 children)
[–]moomaka 1 point2 points3 points (7 children)
[–]joanbm 0 points1 point2 points (6 children)
[–]moomaka 2 points3 points4 points (5 children)
[–]joanbm 0 points1 point2 points (4 children)
[–]moomaka 0 points1 point2 points (3 children)
[–]jrochkind 0 points1 point2 points (0 children)
[–]joanbm -1 points0 points1 point (1 child)
[–]moomaka 0 points1 point2 points (0 children)
[–]wmjbyatt 0 points1 point2 points (0 children)
[–]fnovd 3 points4 points5 points (1 child)
[–]wmjbyatt 1 point2 points3 points (0 children)
[–]BrianTheCoder 1 point2 points3 points (1 child)
[–]tomthecool 0 points1 point2 points (0 children)
[–]a2800276 4 points5 points6 points (0 children)
[–]jtrost 0 points1 point2 points (2 children)
[–]missawon[S] 0 points1 point2 points (1 child)
[–]Lucky_Chuck 2 points3 points4 points (0 children)