I need to return an ordered list of references with an empty in between them after traversing a BST, but i can't workout how to do it.
def inorder(self, Node):
res = ""
if Node != None:
self.inorder(Node.LeftChild())
res = res +(Node.key + " " + Node.payload + "\n")
self.inorder(Node.RightChild())
return res
this is my code, so far i can only get one reference returned, any help will be much appreciated.
lower_case_with_underscoresstyle.