Fall SalePremium questions, over 25% offUnlock all premium questions for over 25% off
Largest Shared BST Value
Medium
Question
You receive two root nodes, each heading a Binary Search Tree (BST) of integers. Look for integers that sit in both trees and return the biggest such integer. Output -1 when the two trees have no value in common.
...
More Amazon interview questions
- Design Unix Find Command With Filtershard
- Cake Order Completion Counteasy
- Fill Equation with Missing Operatorshard
- Count Days For Scheduled Task Completionseasy
- Find Longest Node Path In DAGhard
- Reduce Array To Bitonicmedium
- Make Server Power Non-decreasingeasy
- Student Reading Textbook Chaptersmedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.