Rotate Matrix by 90 degrees clockwise | Rotate Image

preview_player
Показать описание
This video explains the best way to rotate a matrix or rotate an image by 90 degrees. I have explained the most optimal inplace algorithm which takes constant extra space O(1) and linear time complexity of size of the matrix O(MN). I have also discussed the possible follow-up problems.

🟣 JOIN our LIVE interview training program through whatsapp query: +91 8918633037

CODE LINK:
Рекомендации по теме
Комментарии
Автор

The trick is to transpose and then reverse

ctothaz
Автор

Upload more videos vro its more helpfull 😊

abdul
Автор

We need to use extra matrix for this technique. Otherwise it is impossible to transpose and then reverse.

spartant_