← Amazon questions
CodingReported in a candidate post, Feb 2020

Top view of BST

Filed under Amazon

Given a Binary Search Tree, return the top view of the tree. The top view is the set of nodes visible when the tree is viewed from the top, ordered from left to right by their horizontal distance from…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.