LeetCode
Maximum Binary Tree II
Click
here
for an explanation.