← Amazon questions

Bottom View of Binary Tree via BFS and DFS

Filed under Amazon

Given a binary tree, return its bottom view. The bottom view of a binary tree is the set of nodes visible when the tree is viewed from the bottom. For each horizontal distance, if multiple nodes lie…

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.