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

Поделиться
HTML-код
  • Опубликовано: 6 янв 2025

Комментарии • 72

  • @suhas8882
    @suhas8882 2 месяца назад +4

    Before looking solution in this RUclips 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 RUclips channel.
    Grateful to you sir.

  • @abhishekkrishna5978
    @abhishekkrishna5978 10 месяцев назад +8

    I feel your videos dosnt get enough appreciation.
    great job

    • @nikoo28
      @nikoo28  10 месяцев назад +1

      Thank you so much 😀

  • @sonustar7774
    @sonustar7774 Год назад +15

    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

  • @Mydailymutualfundportfolio
    @Mydailymutualfundportfolio 16 дней назад

    Clear explanations is the difference that makes your videos unique ❤

    • @nikoo28
      @nikoo28  16 дней назад

      Thanks for the love!

  • @AadeshKulkarni
    @AadeshKulkarni 11 месяцев назад +3

    Simplified the thought process and approach nicely!

  • @srinivasnahak3473
    @srinivasnahak3473 2 месяца назад

    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!!

  • @saswatimishra2379
    @saswatimishra2379 12 дней назад

    Thank you Sir This is by far the best explanation of the solution to this problem..

  • @arjunsharma2788
    @arjunsharma2788 3 месяца назад

    Most easiest and understandable video found on this topic. Fabulous approach. Just keep it up 👌

  • @bluelord_d
    @bluelord_d Год назад +3

    Excellent explanation, keep up the good work.

  • @opsumon1569
    @opsumon1569 10 месяцев назад +1

    Lot of thanks

  • @coachmohitrathor3044
    @coachmohitrathor3044 5 месяцев назад

    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 5 месяцев назад

    Watched many solutions but your explanation is the one made me understood this problem very well😌 thanks bro!!✨

  • @mehedihasannnnn
    @mehedihasannnnn Год назад +2

    omg i have no word sir...woderful explanation.

  • @ipsitadas3031
    @ipsitadas3031 7 месяцев назад

    Simplified the approach in the most best way :) thank you sir

  • @abhijeetmishra8837
    @abhijeetmishra8837 7 месяцев назад

    finally i landed to the video i needed, best explanation of this question on youtube

  • @nagalakshmikesavan9198
    @nagalakshmikesavan9198 Год назад

    Great Explanation!! Thank you for all your videos.Please start making more videos

  • @thellaidhinesh8646
    @thellaidhinesh8646 Год назад

    You deserve a lot more brother.

  • @tedbliss001
    @tedbliss001 3 месяца назад

    Perfect explanation!!

  • @atharvnanaware3354
    @atharvnanaware3354 4 месяца назад

    Great and Simple Explanation ......
    🙌

  • @naveenkumarnuggu
    @naveenkumarnuggu 11 месяцев назад

    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  10 месяцев назад +1

      thanks...I corrected it.

  • @midlajahmad-cs0058
    @midlajahmad-cs0058 Год назад

    one of the best explaination ,,,but still idk y this channel is not reaching more views..:(

    • @nikoo28
      @nikoo28  11 месяцев назад

      Trying my best to get it top in results. :) Please help by sharing as much as possible

  • @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 :)

  • @NARAYAN-vf9kx
    @NARAYAN-vf9kx Месяц назад

    excellent sir, why dont u be regular on your channel !!! . u k u are simply the beast out of the creams

  • @naturelife7655
    @naturelife7655 4 месяца назад

    You helped me understand very clearly.Thanks

  • @shrirajthakare274
    @shrirajthakare274 5 месяцев назад

    Best Explanation as always

  • @Hridaymardam_
    @Hridaymardam_ 6 месяцев назад

    loved this really loved this!!!

  • @deep1998-j1v
    @deep1998-j1v 2 месяца назад +1

    Why those two extra checks are only applied to last two for loops? Why its necessary for top two loops?

  • @yelururao1
    @yelururao1 Год назад

    awsome explanation bro..keep doing more

  • @riyajaiswal6778
    @riyajaiswal6778 5 месяцев назад

    Very well visualized!!

  • @sudhadevi6692
    @sudhadevi6692 Год назад

    It's so simple .
    Thx Bhaiya❤

  • @saivignesh03
    @saivignesh03 Месяц назад

    explanation 🥳🥳❤

  • @Omkrishna0131
    @Omkrishna0131 2 месяца назад

    crazy explanation

  • @ganeshjaggineni4097
    @ganeshjaggineni4097 17 дней назад

    NICE SUPER EXCELLENT MOTIVATED

  • @unemployedcse3514
    @unemployedcse3514 3 месяца назад

    awesome ❤

  • @kavyakooks5305
    @kavyakooks5305 11 месяцев назад

    Very well explained!!

    • @nikoo28
      @nikoo28  9 месяцев назад

      Glad you think so!

  • @prathamvardaan4187
    @prathamvardaan4187 6 месяцев назад

    excellent explanation sir thankyou

  • @biocoder
    @biocoder Год назад

    Thank you so much......woderful explanation.

  • @suneosama939
    @suneosama939 Год назад

    Thank you so much brother 🥺

  • @deepakkumarbehera3717
    @deepakkumarbehera3717 Год назад

    Thank you sir keep uploading

  • @bhadrinarayanan9660
    @bhadrinarayanan9660 4 месяца назад

    crystal clear thank you very much

    • @karthickjayaraman2090
      @karthickjayaraman2090 3 месяца назад

      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.

  • @pragatii9054
    @pragatii9054 7 месяцев назад

    Thank you 😊

  • @jashanjotbedi1796
    @jashanjotbedi1796 Год назад

    Nyc explaination .

  • @UdhyaKumar-z4d
    @UdhyaKumar-z4d 11 дней назад

    Thank YOu are awesome

  • @_dhruvsahu_5542
    @_dhruvsahu_5542 Год назад +1

    Thank you sir

  • @satvikchati7890
    @satvikchati7890 10 месяцев назад

    thank you sir 😄

  • @sheikhmkrifat7749
    @sheikhmkrifat7749 Год назад

    Thanks a lot brother

  • @ИванСорогин-н1й
    @ИванСорогин-н1й 6 месяцев назад

    How solutions on JS?

  • @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.

  • @NiharikaB8405
    @NiharikaB8405 7 месяцев назад

    sir a question why do interviewer ask such question ?

  • @najujusi6620
    @najujusi6620 Год назад +1

    Thankyou sir

  • @amanverma8258
    @amanverma8258 Год назад

    The explanation was clear and concise. Thanks a lot sir !

  • @shrutikashyap8284
    @shrutikashyap8284 4 месяца назад +1

    You are so soo sooo underrated

  • @kalyanamvenumadhav2245
    @kalyanamvenumadhav2245 Год назад +4

    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

  • @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?

  • @plutomessi21
    @plutomessi21 Год назад +1

    Sir can you do a video on spiral matrix 2

  • @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 16 дней назад

    you dont help me understand the corner cose revisitng the same element again.

    • @nikoo28
      @nikoo28  15 дней назад

      please elaborate the corner case you are talking about. I will try to explain it.

  • @fatimaahmad5734
    @fatimaahmad5734 7 месяцев назад

    voice is really low,what the video content is best.

  • @coronaklledmebot4856
    @coronaklledmebot4856 5 месяцев назад

    mic theek kr