Print the top view of a binary tree: the nodes visible when looking from above, ordered left to right. Because a map is used, be ready to explain map internals, write put() and get() including height…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.