LeetCode Question · Sep 2020 · Los Angeles

Amazon | Phone | Largest Common Number in 2 BSTs

6 upvotes 1,821 views 8 replies

Question Details

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

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding