N-ARY TREE POSTORDER TRAVERSAL | LEETCODE 590 | PYTHON ITERATIVE SOLUTION

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024

ความคิดเห็น • 4

  • @AnandKumar-kz3ls
    @AnandKumar-kz3ls 25 วันที่ผ่านมา

    great solution we are visiting each node only 2 time when we are moving down and up so TC will remain O(N)

  • @lakeesiv123
    @lakeesiv123 11 วันที่ผ่านมา

    can you not do bfs, then reverse it?

  • @charlesraj9569
    @charlesraj9569 24 วันที่ผ่านมา +1

    Incorrect problem# in the title

    • @crackfaang
      @crackfaang  24 วันที่ผ่านมา +1

      Fixed, thanks for the heads up