Ruby - Arrays
Which of the following is the correct syntax to flatten a nested array named
arr in Ruby?arr in Ruby?arr.flatten().flatten(arr) is not valid Ruby syntax, arr->flatten is invalid, and arr.flatten[] is incorrect.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions