2196. Create Binary Tree From Descriptions | Tree | Hash Map

Поділитися
Вставка
  • Опубліковано 9 вер 2024
  • In this video, I'll talk about how to solve Leetcode 2196. Create Binary Tree From Descriptions | Tree | Hash Map
    Let's Connect:
    📱Discord (Join Community) : / discord
    📝Linkedin: / aryan-mittal-0077
    📸 Instagram: / ez.pz.dsa
    📱Telegram : t.me/aryan_mit...
    🤖 Github: github.com/ary...
    About Me:
    I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
    ✨ Timelines✨
    ✨ Hashtags ✨
    #programming #Interviews #leetcode #faang #maang #datastructures #algorithms

КОМЕНТАРІ • 10

  • @komalvaishnav5828
    @komalvaishnav5828 Місяць тому +1

    first tried by myself passed only sample test cases,but glad im learning the approaches from aryan sir.Iam waiting for the day wen i can do all the sums by myself.Iam solving problems daily some i can do by my own but always the better and best approach by sir.Thank you sir.

  • @ITACH1688
    @ITACH1688 Місяць тому +8

    Thanks bhaiya... aaj wala yeh bhi khudse ho gaya tha but ur videos r always helpful... thank u the GOAT

    • @Jazzimus
      @Jazzimus Місяць тому +2

      even though question solve ho jaata h fir bhi video dekh li leta hu, you never know when you might learn something new

    • @ITACH1688
      @ITACH1688 Місяць тому +4

      @@Jazzimus yupp exactly... bhaiya ke approach next lvl hote hain...

  • @rishabhranjan5162
    @rishabhranjan5162 Місяць тому +3

    Solved it by myself, came here to see if there's a better approach. 😁

  • @cminor9037
    @cminor9037 Місяць тому +1

    Bhaiya, we can use the same map to identify the root. After creating the connections, we will traverse the description array and mark the childVal as NULL. After doing that, the node (key) having its value as not NULL will be my root

  • @cminor9037
    @cminor9037 Місяць тому

    Great solution bhaiya XD

  • @anand068code
    @anand068code Місяць тому

    Yo

  • @pritamroy
    @pritamroy Місяць тому

    why can,t I save this vdo in my playlist ??