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

Sdílet
Vložit
  • čas přidán 8. 07. 2024
  • 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

Komentáře • 44

  • @sonustar7774
    @sonustar7774 Před rokem +10

    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 Před 5 měsíci +2

    Simplified the thought process and approach nicely!

  • @nagalakshmikesavan9198

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

  • @bluelord_d
    @bluelord_d Před 9 měsíci +2

    Excellent explanation, keep up the good work.

  • @Hridaymardam_
    @Hridaymardam_ Před 6 dny

    loved this really loved this!!!

  • @mehedihasannnnn
    @mehedihasannnnn Před 8 měsíci +1

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

  • @ipsitadas3031
    @ipsitadas3031 Před měsícem

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

  • @thellaidhinesh8646
    @thellaidhinesh8646 Před rokem

    You deserve a lot more brother.

  • @sudhadevi6692
    @sudhadevi6692 Před rokem

    It's so simple .
    Thx Bhaiya❤

  • @biocoder
    @biocoder Před 6 měsíci

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

  • @abhijeetmishra8837
    @abhijeetmishra8837 Před měsícem

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

  • @yelururao1
    @yelururao1 Před 8 měsíci

    awsome explanation bro..keep doing more

  • @suneosama939
    @suneosama939 Před 8 měsíci

    Thank you so much brother 🥺

  • @abhishekkrishna5978
    @abhishekkrishna5978 Před 4 měsíci +1

    I feel your videos dosnt get enough appreciation.
    great job

    • @nikoo28
      @nikoo28  Před 4 měsíci

      Thank you so much 😀

  • @prathamvardaan4187
    @prathamvardaan4187 Před 22 dny

    excellent explanation sir thankyou

  • @sheikhmkrifat7749
    @sheikhmkrifat7749 Před 6 měsíci

    Thanks a lot brother

  • @pragatii9054
    @pragatii9054 Před 28 dny

    Thank you 😊

  • @kavyakooks5305
    @kavyakooks5305 Před 4 měsíci

    Very well explained!!

    • @nikoo28
      @nikoo28  Před 3 měsíci

      Glad you think so!

  • @satvikchati7890
    @satvikchati7890 Před 4 měsíci

    thank you sir 😄

  • @_dhruvsahu_5542
    @_dhruvsahu_5542 Před rokem +1

    Thank you sir

  • @jashanjotbedi1796
    @jashanjotbedi1796 Před 5 měsíci

    Nyc explaination .

  • @najujusi6620
    @najujusi6620 Před rokem +1

    Thankyou sir

  • @kalpitparmar3057
    @kalpitparmar3057 Před 10 měsíci

    Pura din 1 problem ke piche laga diya aur raatko jake ye timesaver video mil raha he 🤦🏻
    Shortest and Easiest explanation 🔥

    • @nikoo28
      @nikoo28  Před 10 měsíci

      glad I could help you :)

  • @ashishkapgate6790
    @ashishkapgate6790 Před rokem

    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.

  • @naveenkumarnuggu
    @naveenkumarnuggu Před 5 měsíci

    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  Před 4 měsíci

      thanks...I corrected it.

  • @midlajahmad-cs0058
    @midlajahmad-cs0058 Před 6 měsíci

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

    • @nikoo28
      @nikoo28  Před 5 měsíci

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

  • @deepakkumarbehera3717

    Thank you sir keep uploading

  • @NiharikaB8405
    @NiharikaB8405 Před měsícem

    sir a question why do interviewer ask such question ?

  • @amanverma8258
    @amanverma8258 Před 11 měsíci

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

  • @user-kw8qz1eb6d
    @user-kw8qz1eb6d Před 12 dny

    How solutions on JS?

  • @suneosama939
    @suneosama939 Před 8 měsíci

    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  Před 7 měsíci

      can you please clarify your doubt a bit more?

  • @plutomessi21
    @plutomessi21 Před 11 měsíci +1

    Sir can you do a video on spiral matrix 2

  • @kalyanamvenumadhav2245
    @kalyanamvenumadhav2245 Před rokem +2

    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

  • @fatimaahmad5734
    @fatimaahmad5734 Před měsícem

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

  • @opsumon1569
    @opsumon1569 Před 4 měsíci +1

    Lot of thanks