Iterative tree walking

后端 未结 5 1166
旧时难觅i
旧时难觅i 2020-12-03 01:57

It\'s been quite a while since I took data structures and algorithms in college, so I was surprised recently by a suggestion that recursion may not be the w

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 02:23

    Go with recursive, because you could actually get a stack overflow error, and this is stackoverflow.com, after all.

提交回复
热议问题