Pergunta de entrevista da empresa Amazon

level order print a given tree

Respostas da entrevista

Sigiloso

11 de abr. de 2012

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

Sigiloso

8 de mai. de 2012

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