Pradeepsingh61 / DSA_Code

Hacktoberfest 2024 OPEN FIRST Pull Request
https://hacktoberfest.com/
15 stars 74 forks source link

Implement the of Rotate Image #126

Open Suchit1938 opened 1 month ago

Suchit1938 commented 1 month ago

You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise).

You have to rotate the image which means you have to modify the input 2D matrix directly. DO NOT allocate another 2D matrix and do the rotation.

Constraints:

  1. n == matrix.length == matrix[i].length
  2. 1 <= n <= 20
  3. -1000 <= matrix[i][j] <= 1000
Suchit1938 commented 1 month ago

Plz, assign the issue to me and also add tag of hacktoberfest.