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

  Рет қаралды 27,689

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 76
@suhas8882
@suhas8882 3 ай бұрын
Before looking solution in this KZbin channel actually I referred so many youtube channels but I am not satisfied by their way of explanation. Finally i got proper explanation what I want from this KZbin channel. Grateful to you sir.
@abhishekkrishna5978
@abhishekkrishna5978 11 ай бұрын
I feel your videos dosnt get enough appreciation. great job
@nikoo28
@nikoo28 11 ай бұрын
Thank you so much 😀
@sonustar7774
@sonustar7774 2 жыл бұрын
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 11 ай бұрын
Simplified the thought process and approach nicely!
@srinivasnahak3473
@srinivasnahak3473 3 ай бұрын
You not only explained it really well but cleared why this question is asked in the interviews which was pretty helpful. Even I was facing the same issue in the beginning by thinking how to traverse through it. Also, your variable naming helped a bit more. :) Thank you so so much!!
@Mydailymutualfundportfolio
@Mydailymutualfundportfolio Ай бұрын
Clear explanations is the difference that makes your videos unique ❤
@nikoo28
@nikoo28 Ай бұрын
Thanks for the love!
@arjunsharma2788
@arjunsharma2788 4 ай бұрын
Most easiest and understandable video found on this topic. Fabulous approach. Just keep it up 👌
@opsumon1569
@opsumon1569 11 ай бұрын
Lot of thanks
@alexandreneo888
@alexandreneo888 15 күн бұрын
Thank you! This was the bext explanation I found in KZbin!
@saswatimishra2379
@saswatimishra2379 Ай бұрын
Thank you Sir This is by far the best explanation of the solution to this problem..
@coachmohitrathor3044
@coachmohitrathor3044 6 ай бұрын
i was so much confused in this logic but after watching your video i am feeling so good i understood this que so easily you are great sir
@sri_dharsh_ni3749
@sri_dharsh_ni3749 6 ай бұрын
Watched many solutions but your explanation is the one made me understood this problem very well😌 thanks bro!!✨
@bluelord_d
@bluelord_d Жыл бұрын
Excellent explanation, keep up the good work.
@mehedihasannnnn
@mehedihasannnnn Жыл бұрын
omg i have no word sir...woderful explanation.
@kalpitparmar3057
@kalpitparmar3057 Жыл бұрын
Pura din 1 problem ke piche laga diya aur raatko jake ye timesaver video mil raha he 🤦🏻 Shortest and Easiest explanation 🔥
@nikoo28
@nikoo28 Жыл бұрын
glad I could help you :)
@ipsitadas3031
@ipsitadas3031 8 ай бұрын
Simplified the approach in the most best way :) thank you sir
@abhijeetmishra8837
@abhijeetmishra8837 8 ай бұрын
finally i landed to the video i needed, best explanation of this question on youtube
@thellaidhinesh8646
@thellaidhinesh8646 Жыл бұрын
You deserve a lot more brother.
@nagalakshmikesavan9198
@nagalakshmikesavan9198 Жыл бұрын
Great Explanation!! Thank you for all your videos.Please start making more videos
@deep1998-j1v
@deep1998-j1v 3 ай бұрын
Why those two extra checks are only applied to last two for loops? Why its necessary for top two loops?
@tedbliss001
@tedbliss001 4 ай бұрын
Perfect explanation!!
@midlajahmad-cs0058
@midlajahmad-cs0058 Жыл бұрын
one of the best explaination ,,,but still idk y this channel is not reaching more views..:(
@nikoo28
@nikoo28 Жыл бұрын
Trying my best to get it top in results. :) Please help by sharing as much as possible
@atharvnanaware3354
@atharvnanaware3354 5 ай бұрын
Great and Simple Explanation ...... 🙌
@shrirajthakare274
@shrirajthakare274 6 ай бұрын
Best Explanation as always
@naveenkumarnuggu
@naveenkumarnuggu Жыл бұрын
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 11 ай бұрын
thanks...I corrected it.
@naturelife7655
@naturelife7655 4 ай бұрын
You helped me understand very clearly.Thanks
@Hridaymardam_
@Hridaymardam_ 7 ай бұрын
loved this really loved this!!!
@NARAYAN-vf9kx
@NARAYAN-vf9kx 2 ай бұрын
excellent sir, why dont u be regular on your channel !!! . u k u are simply the beast out of the creams
@riyajaiswal6778
@riyajaiswal6778 6 ай бұрын
Very well visualized!!
@unemployedcse3514
@unemployedcse3514 4 ай бұрын
awesome ❤
@yelururao1
@yelururao1 Жыл бұрын
awsome explanation bro..keep doing more
@saivignesh03
@saivignesh03 2 ай бұрын
explanation 🥳🥳❤
@Omkrishna0131
@Omkrishna0131 3 ай бұрын
crazy explanation
@kavyakooks5305
@kavyakooks5305 11 ай бұрын
Very well explained!!
@nikoo28
@nikoo28 10 ай бұрын
Glad you think so!
@sudhadevi6692
@sudhadevi6692 Жыл бұрын
It's so simple . Thx Bhaiya❤
@prathamvardaan4187
@prathamvardaan4187 7 ай бұрын
excellent explanation sir thankyou
@ganeshjaggineni4097
@ganeshjaggineni4097 Ай бұрын
NICE SUPER EXCELLENT MOTIVATED
@suneosama939
@suneosama939 Жыл бұрын
Thank you so much brother 🥺
@biocoder
@biocoder Жыл бұрын
Thank you so much......woderful explanation.
@deepakkumarbehera3717
@deepakkumarbehera3717 Жыл бұрын
Thank you sir keep uploading
@qwertysriram
@qwertysriram Күн бұрын
if conditions are basically "availability checks": Left traversal → Check row availability Up traversal → Check column availability
@nikoo28
@nikoo28 Күн бұрын
amazing insight
@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.
@bhadrinarayanan9660
@bhadrinarayanan9660 5 ай бұрын
crystal clear thank you very much
@karthickபறையர்
@karthickபறையர் 4 ай бұрын
Hi!! i initialized columnEnd as int columnEnd = matrix.length-1 just like rowEnd= matrix.length-1. The program didn't run. Can you explain me why we should take columnEnd as matrix[0].length-1? im new kindly need help.
@NiharikaB8405
@NiharikaB8405 7 ай бұрын
sir a question why do interviewer ask such question ?
@jashanjotbedi1796
@jashanjotbedi1796 Жыл бұрын
Nyc explaination .
@pragatii9054
@pragatii9054 7 ай бұрын
Thank you 😊
@sheikhmkrifat7749
@sheikhmkrifat7749 Жыл бұрын
Thanks a lot brother
@_dhruvsahu_5542
@_dhruvsahu_5542 Жыл бұрын
Thank you sir
@satvikchati7890
@satvikchati7890 11 ай бұрын
thank you sir 😄
@shrutikashyap8284
@shrutikashyap8284 5 ай бұрын
You are so soo sooo underrated
@ИванСорогин-н1й
@ИванСорогин-н1й 7 ай бұрын
How solutions on JS?
@najujusi6620
@najujusi6620 2 жыл бұрын
Thankyou sir
@UdhyaKumar-z4d
@UdhyaKumar-z4d Ай бұрын
Thank YOu are awesome
@plutomessi21
@plutomessi21 Жыл бұрын
Sir can you do a video on spiral matrix 2
@nikoo28
@nikoo28 Жыл бұрын
will do
@suneosama939
@suneosama939 Жыл бұрын
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 Жыл бұрын
can you please clarify your doubt a bit more?
@DSA-q8q
@DSA-q8q 8 күн бұрын
@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 Жыл бұрын
co-ask @nikoo28🙏
@amanverma8258
@amanverma8258 Жыл бұрын
The explanation was clear and concise. Thanks a lot sir !
@nikoo28
@nikoo28 Жыл бұрын
Keep watching
@garimidirajesh2878
@garimidirajesh2878 5 ай бұрын
can some one explain why i am getting run time error for the below code ? class Solution { public: vector spiralOrder(vector& matrix) { int rb=0,re=matrix.size(),cb=0,ce=matrix[0].size(); vectorvect; while(rb
@dharavathrajkumar7431
@dharavathrajkumar7431 4 ай бұрын
It may be a silly question, I just want to know that using that many loops is a good idea. Can't we do with only few loops. I know it may feel you silly
@kumarsatyam5218
@kumarsatyam5218 Ай бұрын
you dont help me understand the corner cose revisitng the same element again.
@nikoo28
@nikoo28 Ай бұрын
please elaborate the corner case you are talking about. I will try to explain it.
@fatimaahmad5734
@fatimaahmad5734 8 ай бұрын
voice is really low,what the video content is best.
@coronaklledmebot4856
@coronaklledmebot4856 6 ай бұрын
mic theek kr
Lecture 23: Introduction to 2D Arrays in C++ || LeetCode Questions
1:30:36
CodeHelp - by Babbar
Рет қаралды 660 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Median of Two Sorted Arrays - Binary Search - Leetcode 4
22:22
Spiral Traversal of a Matrix | Spiral Matrix
16:33
take U forward
Рет қаралды 269 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 167 М.
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 779 М.
What P vs NP is actually about
17:58
Polylog
Рет қаралды 148 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН