Halloween Sale
Unlock all premium questions for over 30% 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
- Find Special DNA Sequence Pairsmedium
- Find Root Path In N-ary Treemedium
- Write Disk Blocks With Cycle Limitmedium
- Maximize Tasks Scheduled Within Time Limitmedium
- Count Days For Scheduled Task Completionseasy
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.