Amazon Interview Question

Print out a tree in horizontal order.

Interview Answer

Anonymous

May 1, 2022

I added an extra variable as a key to a tree data structure then stored that tree node in a hashmap.