LeetCode 59: Spiral Matrix II - Interview Prep Ep 32

preview_player
Показать описание


Solution explained:
1. we could use four variables: left, right, top and bottom to represent the four side boundaries;
2. as we traverse through the four sides in the clock-wise spiral order, we can updating the four variables.

⭐ Support my channel and connect with me:

// TOOLS THAT I USE:

// MY FAVORITE BOOKS:

My ENTIRE Programming Equipment and Computer Science Bookshelf:

And make sure you subscribe to my channel!

Your comments/thoughts/questions/advice will be greatly appreciated!

#softwareengineering #leetcode #algorithms #coding #interview #SDE #SWE #SiliconValley #programming #datastructures
Рекомендации по теме
Комментарии
Автор

Thank You . This helped me in school very much.

debopamgupta
Автор

very clear solution. Thanks for great works

leon
Автор

Thank you soo much sir for the help❣️ Don't get demotivated by low subs..one day👍.. love from india👍

tathagatnegi