Imagine that the user provides a two dimensional list. Return a one dimensional list that is the
flattened version of that list. For example, if the user enters [[3, 1], [2, 4, 3], [], [1]] ,
your code would return the array [3, 1, 2, 4, 3, 1] .
Please do not use any Java code or libraries that we have not covered in class; this defeats the purpose of the
assessment. |