Python binary tree In-order traversal generator function

后端 未结 0 1929
暗喜
暗喜 2020-12-06 20:57

I have a simple code that does in order traversal, If I remove the yield keyword, however now I only get [1] back using the next() or list() method. How can I get this to wo

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