Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

<< [36] Find the second largest node in the tree >>

Given the root to a binary search tree, find the second largest node in the tree.

Example:

>>> tree = [9, [4, [1, None, None], [7, [5, None, None], None]], [31, [14, None, None], [82, None, None]]]
>>> coding_problem_36(tree)
31