Pinned Loading
-
My Ruby Flatten
My Ruby Flatten 1s = [ 1, 2, 3 ] #=> [1, 2, 3]
2t = [ 4, 5, 6, [7, 8] ] #=> [4, 5, 6, [7, 8]]
3a = [ s, t, 9, 10 ] #=> [[1, 2, 3], [4, 5, 6, [7, 8]], 9, 10]
45def myFlatten (arr)
-
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.