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