gunanksood / C-Codes

Any Data Structure and Algorithm Implementation in C Language.
MIT License
5 stars 45 forks source link

Rotate-a-2D-array-without-using-extra-space.c #60

Open himanshusharma89 opened 5 years ago

himanshusharma89 commented 5 years ago

You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). You need to do this in place. Note that if you end up using an additional array, you will only receive partial score.