Rotate Matrix/Image by 90 Degrees | Brute - Optimal

Published: 29 March 2023
on channel: take U forward
226,457
7.8k

Problem Link: https://bit.ly/3Qk14gY

Notes/C++/Java/Python codes: https://takeuforward.org/data-structu...

We have solved the problem, and we have gone from brute force and ended with the most optimal solution. Every approach's code has been written in the video itself. Also, we have covered the algorithm with intuition.

Full Course: https://bit.ly/tufA2ZYt

You can follow me across social media, all my handles are below:

Linkedin/Instagram/Telegram: https://linktr.ee/takeUforward

00:49 Problem statement
2:06 Observation
2:24 Brute force approach
6:25 Brute force code
7:49 Optimized approach
14:00 pseudo code for transposition
15:01 Optimized approach code


On this page of the site you can watch the video online Rotate Matrix/Image by 90 Degrees | Brute - Optimal with a duration of hours minute second in good quality, which was uploaded by the user take U forward 29 March 2023, share the link with friends and acquaintances, this video has already been watched 226,457 times on youtube and it was liked by 7.8 thousand viewers. Enjoy your viewing!