What does that exactly means?
The problem states:
Write a function to invert a two dimensional array.
Does this means reversing each row of the matrix?
What does that exactly means?
The problem states:
Write a function to invert a two dimensional array.
Does this means reversing each row of the matrix?
I think they want you to switch the two dimensions, i.e. a[1][2] becomes a[2][1] and vice versa.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law