Hi everyone,
I've a problem to programming a sorting function.
can you help me out?
input
3
1 2 3
4 5 6
7 8 9
4
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
output
1 2 4
3 5 7
6 8 9
1 2 4 7
3 5 8 11
6 9 12 14
10 13 15 16
help me out, please!