You are viewing a single comment's thread. Return to all comments →
def getHeight(self, root): if root is None: return -1 return 1 + max(self.getHeight(root.left), self.getHeight(root.right))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 22: Binary Search Trees
You are viewing a single comment's thread. Return to all comments →