How to implement an lazy iterator for a binary tree in Depth First Pre-Order

前端 未结 0 1028
攒了一身酷
攒了一身酷 2021-02-10 10:31

I need to implement an lazy Iterator for a binary tree so that it traverses the tree in Depth First Pre-Order fashion.

I am struggling in even thinking of a solid strateg

相关标签:
回答
  • 消灭零回复
提交回复
热议问题