How can I return an inorder traversal instead of just printing it

前端 未结 0 745
闹比i
闹比i 2020-12-05 11:34

As of now, my code only prints out an in-order traveral. However, I would like it to return one.

class Node:
    def __init__(self, data):
        self.data =         


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