LeetCode
Maximum Binary Tree
Click
here
for an explanation.