CodeCollection
CodeCollection copied to clipboard
Rotate matrix except diagonals
Given a square matrix mat[][] of dimension N and an integer K, rotate the matrix by 90 degrees K times without changing the position of the diagonal elements.
Thanks for opening this pull request! 🤗 Your PR will be reviewed and merged soon !! In the mean time don't forget to give a star to this repo !! Wishing you a great Hacktoberfest 2021 🙌 🎉 ⚡️
Show some ❤️
- Consider leaving a ⭐ here.
- Follow @hanshulll for more updates.