Spiral Matrix (LeetCode 54) | Full Solution with Visualizations | Study Algorithms

  Рет қаралды 15,032

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Actual Problem: leetcode.com/problems/spiral-...
Chapters:
00:00 - Intro
01:07 - Problem Statement and Description
02:39 - Why do interviewers like this?
05:35 - Dry-run of Code
12:26 - Final Thoughts
📚 Links to topics I talk about in the video:
Arrays: • Array Data Structure e...
📘 A text based explanation is available at: studyalgorithms.com
Code on Github: github.com/nikoo28/java-solut...
Test-cases on Github: github.com/nikoo28/java-solut...
📖 Reference Books:
Starting Learn to Code: amzn.to/36pU0JO
Favorite book to understand algorithms: amzn.to/39w3YLS
Favorite book for data structures: amzn.to/3oAVBTk
Get started for interview preparation: amzn.to/39ysbkJ
🔗 To see more videos like this, you can show your support on: www.buymeacoffee.com/studyalg...
🎥 My Recording Gear:
Recording Light: amzn.to/3pAqh8O
Microphone: amzn.to/2MCX7qU
Recording Camera: amzn.to/3alg9Ky
Tablet to sketch and draw: amzn.to/3pM6Bi4
Surface Pen: amzn.to/3pv6tTs
Laptop to edit videos: amzn.to/2LYpMqn
💻 Get Social 💻
Follow on Facebook at: / studyalgos
Follow on Twitter at: / studyalgorithms
Follow on Tumblr at: / studyalgos
Subscribe to RSS feeds: studyalgorithms.com/feed/
Join fan mail: eepurl.com/g9Dadv
#leetcode #programming #interview

Пікірлер: 44
@sonustar7774
@sonustar7774 Жыл бұрын
Thank you sir keep uploading becoz you explain the logic with line of code so we get the idea what happening with that one lone of code
@AadeshKulkarni
@AadeshKulkarni 4 ай бұрын
Simplified the thought process and approach nicely!
@nagalakshmikesavan9198
@nagalakshmikesavan9198 Жыл бұрын
Great Explanation!! Thank you for all your videos.Please start making more videos
@bluelord_d
@bluelord_d 9 ай бұрын
Excellent explanation, keep up the good work.
@thellaidhinesh8646
@thellaidhinesh8646 Жыл бұрын
You deserve a lot more brother.
@ipsitadas3031
@ipsitadas3031 Ай бұрын
Simplified the approach in the most best way :) thank you sir
@Hridaymardam_
@Hridaymardam_ 18 сағат бұрын
loved this really loved this!!!
@mehedihasannnnn
@mehedihasannnnn 8 ай бұрын
omg i have no word sir...woderful explanation.
@sudhadevi6692
@sudhadevi6692 Жыл бұрын
It's so simple . Thx Bhaiya❤
@yelururao1
@yelururao1 7 ай бұрын
awsome explanation bro..keep doing more
@abhijeetmishra8837
@abhijeetmishra8837 Ай бұрын
finally i landed to the video i needed, best explanation of this question on youtube
@biocoder
@biocoder 6 ай бұрын
Thank you so much......woderful explanation.
@prathamvardaan4187
@prathamvardaan4187 16 күн бұрын
excellent explanation sir thankyou
@abhishekkrishna5978
@abhishekkrishna5978 4 ай бұрын
I feel your videos dosnt get enough appreciation. great job
@nikoo28
@nikoo28 4 ай бұрын
Thank you so much 😀
@suneosama939
@suneosama939 7 ай бұрын
Thank you so much brother 🥺
@pragatii9054
@pragatii9054 23 күн бұрын
Thank you 😊
@sheikhmkrifat7749
@sheikhmkrifat7749 6 ай бұрын
Thanks a lot brother
@kavyakooks5305
@kavyakooks5305 4 ай бұрын
Very well explained!!
@nikoo28
@nikoo28 3 ай бұрын
Glad you think so!
@jashanjotbedi1796
@jashanjotbedi1796 5 ай бұрын
Nyc explaination .
@_dhruvsahu_5542
@_dhruvsahu_5542 Жыл бұрын
Thank you sir
@satvikchati7890
@satvikchati7890 4 ай бұрын
thank you sir 😄
@najujusi6620
@najujusi6620 Жыл бұрын
Thankyou sir
@midlajahmad-cs0058
@midlajahmad-cs0058 6 ай бұрын
one of the best explaination ,,,but still idk y this channel is not reaching more views..:(
@nikoo28
@nikoo28 5 ай бұрын
Trying my best to get it top in results. :) Please help by sharing as much as possible
@naveenkumarnuggu
@naveenkumarnuggu 5 ай бұрын
Explanation is good. I follow your videos for most of the leet code problems. Just FYi - Spiral Matrix problem number on Leet code is #54
@nikoo28
@nikoo28 4 ай бұрын
thanks...I corrected it.
@kalpitparmar3057
@kalpitparmar3057 10 ай бұрын
Pura din 1 problem ke piche laga diya aur raatko jake ye timesaver video mil raha he 🤦🏻 Shortest and Easiest explanation 🔥
@nikoo28
@nikoo28 9 ай бұрын
glad I could help you :)
@amanverma8258
@amanverma8258 11 ай бұрын
The explanation was clear and concise. Thanks a lot sir !
@nikoo28
@nikoo28 11 ай бұрын
Keep watching
@ashishkapgate6790
@ashishkapgate6790 Жыл бұрын
Sir, i m from totally non coding background and try to lern coding. i m Facing problem in writing function in java. how can i overcome with this problem.
@suneosama939
@suneosama939 7 ай бұрын
Thank yo so much 🥹 you help me a lot brother, I ask you a question hmm traverse up the code line "print(matrix[j][colBegin])" is that go up the array right, thank you so much brother ❤😊
@nikoo28
@nikoo28 7 ай бұрын
can you please clarify your doubt a bit more?
@NiharikaB8405
@NiharikaB8405 25 күн бұрын
sir a question why do interviewer ask such question ?
@user-kw8qz1eb6d
@user-kw8qz1eb6d 7 күн бұрын
How solutions on JS?
@plutomessi21
@plutomessi21 11 ай бұрын
Sir can you do a video on spiral matrix 2
@nikoo28
@nikoo28 11 ай бұрын
will do
@kalyanamvenumadhav2245
@kalyanamvenumadhav2245 Жыл бұрын
why we use 2 conditions as test cases while traversing left and up why don't we use it in traverse right, & in traverse left I think while reducing row we need to check whether rowBegin
@kolawoleabdulrahman
@kolawoleabdulrahman 9 ай бұрын
co-ask @nikoo28🙏
@opsumon1569
@opsumon1569 4 ай бұрын
Lot of thanks
@deepakkumarbehera3717
@deepakkumarbehera3717 Жыл бұрын
Thank you sir keep uploading
@fatimaahmad5734
@fatimaahmad5734 Ай бұрын
voice is really low,what the video content is best.
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
1 or 2?🐄
00:12
Kan Andrey
Рет қаралды 33 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 22 МЛН
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 8 МЛН
Spiral Matrix - Microsoft Interview Question - Leetcode 54
16:46
LeetCode Spiral Matrix Solution Explained - Java
11:07
Nick White
Рет қаралды 47 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 610 М.
LeetCode 885: Spiral Matrix III - Interview Prep Ep 33
25:57
Fisher Coder
Рет қаралды 8 М.
Trick for spiral matrix traversal
10:12
Techdose
Рет қаралды 195 М.
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15