Rotate The Matrix left by 90 degrees
the line *(rotatedMatrix+i+j)=*(matrix+i+j) is just copying the matrix not rotating it....
it should be like *(rotatedMatrix+j+i)=*(matrix+i+j). By the way, I've read the question somewhere and i think you're supposed to solve the problem without using any extra space...i.e. you can't use another matrix..
Sorry there is a small mistake please refer to the code below:
- Anup Saumithri September 22, 2013