We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
How to move 1D array of elements in second iteration???
I have a doubt about rotating below matrix(4*3).
Matrix:
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
In first iteration is fine(i.e., moving elements from 1 in anticlock wise). but in second iteration, 7 8 9 elements should be rotated anti clock wise. Can you please let me know how is this moving can be done in anti clock wise???
Matrix Rotation
You are viewing a single comment's thread. Return to all comments →
How to move 1D array of elements in second iteration??? I have a doubt about rotating below matrix(4*3). Matrix:
1 2 3 4 56 7 8 9 10
11 12 13 14 15In first iteration is fine(i.e., moving elements from 1 in anticlock wise). but in second iteration, 7 8 9 elements should be rotated anti clock wise. Can you please let me know how is this moving can be done in anti clock wise???