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?
This is a discussion on inverting an 2d array within the C++ Programming forums, part of the General Programming Boards category; What does that exactly means? The problem states: Write a function to invert a two dimensional array. Does this means ...
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