Skip to content
Advertisement

Tag: binary-search-tree

TypeError while executing Binary tree code

I am getting an error while testing the following function. Can anybody help me with this? code: Here’s the test script: And here’s the error I am getting: Please let me know why is this happening? Answer As your largest_leaf_value will return None in its recursion base case, you need to be ready for lres or rres to get None

Advertisement