Opening the reading…
Opening the reading…
DSA FUNDAMENTALS › MATRIX BASICS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Transform the given matrix by using Arrays.sort on each row, then copying each column into one reusable array, sorting it, and writing it back. Print the final matrix, with one row per line and spaces between values.
OUTPUT
Sample1 4 6 2 5 8 3 7 9
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.