Rotate Image - leetcode 48

preview_player
Показать описание
Today we will solve the "Rotate Image" problem from #leetcode. We will walk through a Mathematical and Engineering/Programming solution for our 2d matrix in order to solve this Problem.

This question has been asked by Amazon, Adobe, Cisco, Apple, Google, Microsoft, Facebook (Meta) and so many other companies.

Please check the channel page for more #leetcode solution videos. Also don't forget to like, comment, and subscribe. Hope you enjoy the video!

Chapters:
0:00 Intro and question
0:16 Examples
0:45 Solutions overview
0:54 Mathematical Solution
1:10 Engineering/Programming Solution
4:03 why do we need to swap counter-clockwise?
5:08 why do we need to swap counter-clockwise?
6:41 Time and Space Complexity
Рекомендации по теме
Комментарии
Автор

My head immediatley went to transposition and reversal in a for loop, but that's clever. Can't say I fully understand though, I wish you went a little slower. The jumps / cuts flow too fast for me, had to watch at 95% speed.

MLGMilk