ALL NODES DISTANCE K IN BINARY TREE | PYTHON | LEETCODE # 863

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 32

  • @yuqian822
    @yuqian822 11 місяців тому +10

    My new life saver after NeetCode... Thanks!! very clear explanation.

    • @crackfaang
      @crackfaang  11 місяців тому +20

      Why not before NeetCode ;)

    • @yuqian822
      @yuqian822 11 місяців тому

      You got this ;)@@crackfaang

    • @farazahmed7
      @farazahmed7 7 місяців тому +4

      @@crackfaang your content is good but let me give you some constructive feedback ( I mean no harm)
      Neetcode is more concise and to the point and also explains intuition better. Whereas you drag out sometimes and keep reiterating things that are already explained. This increases duration of video and hence lesser views.

    • @Tallonest
      @Tallonest 2 місяці тому

      @@crackfaangGreg Hogg is also better only than you and neetcode only because he has the shortest videos. I’d say conciseness is the biggest thing to improve on, but regardless your videos have been lifesavers for me

    • @muskanmall4401
      @muskanmall4401 16 днів тому

      @@crackfaang no, i like the fact that you don't assume anything to be implicit, and provide explicit explanation for each step, this really sets you apart.

  • @davidmwangi4312
    @davidmwangi4312 5 місяців тому

    This channel is a real Gem.....Kudos continue making more FAANG specific videos

  • @deepakgoyal1993
    @deepakgoyal1993 2 роки тому +4

    Thank you so much for the explanation. I think you have made a mistake at 3:39 minute, actually you can reach node (1) from node (8); so adjacency list of 8 should be 8: [1]. Please correct me if I'm wrong. Thanks!

    • @crackfaang
      @crackfaang  2 роки тому +1

      Yea I may have misspoke there. It’s okay the idea is still the same

  • @D_T244
    @D_T244 2 роки тому +4

    Outstanding quality of the video and explanation. Well done and subbed!

    • @crackfaang
      @crackfaang  2 роки тому

      Thanks for the kind words and for subscribing to my channel! It really helps me out

  • @yingxie9974
    @yingxie9974 11 днів тому

    Very good ! very clear explanation !

  • @QVL75
    @QVL75 2 роки тому +1

    Excellent description! Very clear to understand.

    • @crackfaang
      @crackfaang  2 роки тому

      Thank you, glad you enjoyed the content

  • @CreativeMining413
    @CreativeMining413 Рік тому

    Great video, understood everything.

  • @scuderia6272
    @scuderia6272 6 місяців тому

    Top content ser 👌🏻

  • @appcolab
    @appcolab 2 роки тому

    I like your explanation. Thanks for sharing,,, I foresee your channel growing very soon!!

    • @crackfaang
      @crackfaang  2 роки тому

      Glad you found value in the video! Make sure to subscribe so you don’t miss future videos

    • @appcolab
      @appcolab 2 роки тому

      Alright subscribe! Thanks

  • @NirajKumar-dj3nz
    @NirajKumar-dj3nz Рік тому

    Hey!! A new Subscriber here😊

  • @aadil4236
    @aadil4236 2 роки тому +1

    Really good explanation. Do you have a git repo? Where I can find the solutions. It's really hard to see this in video every time, for a reference.

    • @crackfaang
      @crackfaang  2 роки тому +2

      Thanks for the kind words. I don’t currently have one but that’s a good recommendation. I will make one soon (currently on the beach enjoying some time off work 😊)

    • @aadil4236
      @aadil4236 2 роки тому

      @@crackfaang on the beah? Wow, that must be fun. Where do you live If you don't mind me asking.
      My city is not located near the coast so it's really exciting for me to live near a beach.

    • @yogeshverma9267
      @yogeshverma9267 6 місяців тому

      @@crackfaangthank you for the great work❤ I don’t know if you have created a git repo or not, but i can suggest something I use. There’s a chrome extension LeetSync, it uploads your submitted code to github automatically, so you don’t need to do extra work

  • @ScarlettFan-s5u
    @ScarlettFan-s5u 2 роки тому

    thank you so much for the great explanation. i just have a one question: when you build the graph, is it a preorder or a BFS traversal?

  • @maxli9629
    @maxli9629 2 роки тому

    awesome!

  • @saiavinashduddupudi8975
    @saiavinashduddupudi8975 2 роки тому +1

    What is the overall Time Complexity?

    • @morenoh149
      @morenoh149 Рік тому

      building the graph is O(n), search is O(n) so both reduce to O(n)

    • @morenoh149
      @morenoh149 Рік тому

      He says time complexity at 14:00

  • @appcolab
    @appcolab 2 роки тому

    Hey can you make the Leetcode "Find all people with a secret"? I was asked by Amazon but I couldn't come up with a nice solution during the interview

    • @crackfaang
      @crackfaang  2 роки тому +3

      I’ll add it to my queue of videos to make! Stay tuned

    • @appcolab
      @appcolab 2 роки тому

      Okay, thank you!! I can't wait