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 sorting each row in ascending order, then sorting each column using one reusable temporary array. 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.