Give a 2D rectangular array represented as a 1D arrary in row-major form, rotate the array by 90 degrees
Anónimo
I came up with a solution where you transpose the array and then exchange the colums. But this is very inefficient. Does anyone have a better solution.