+ 3
[CHALLENGE] Matrix Rotation
The task is. You have a Matrix NxN. You should rotate it on 90 degrees. Example: N = 3 Input: 1 2 3 4 5 6 7 8 9 Output: 7 4 1 8 5 2 9 6 3 Levels: 1) just rotate matrix 2) matrix is 1D array (1 2 3 4 5 6 7 8 9) 3) input and output is the same memory block (the same array)
7 Respuestas
+ 4
My version
https://code.sololearn.com/cJcKujUAH71v
+ 3
Here's mine
https://code.sololearn.com/cs9jlY8cwvng/?ref=app
+ 3
+ 2
Check my solution
https://code.sololearn.com/cgXCGS96v146/?ref=app
+ 2
https://www.sololearn.com/discuss/1138295/?ref=app
it is a library made by me. It has a transpose function. it will rotate it.
there are many other features.