CONSTRUCT BINARY TREE FROM STRING | LEETCODE 536 | PYTHON STACK SOLUTION

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

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

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

    Interesting problem, thank you for your video. There can be another follow up like put open and close brackets "()" to input to show None for the left node.

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

    Brilliant

  • @vivek.tiwary
    @vivek.tiwary 3 месяца назад

    What about the inner loop, it can go for n elements of the string ?

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

    why don't you just track the level? Increment level on "(", decrement level on ")", add number to result on numbers regarding to the level.

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

    discord invite is invalid