Amazon | Phone | Largest Common Number in 2 BSTs
Anonymous User
1836

Write code that given the root of two BSTs of integers, finds the greatest common integer in them.

Given:

  5
 /  \ 
3   7
  9
 / \
5   12
  \
   7
Returns:
7
Comments (8)