Domanda di colloquio di Amazon

level order print a given tree

Risposte di colloquio

Anonimo

11 apr 2012

At first I use 2 queue, and the interviewer ask me to refine to using only one queue.

Anonimo

8 mag 2012

Take a look at any common Breadth First Search algorithm for handling tree printing.