Essa empresa é sua?
Perform level-order traversal of an incomplete binary tree, i.e. certain nodes at a level could be empty.
Sigiloso
BFS
I am thinking DFS is better, because you know the level otherwise for BFS how do you find if the NULL is the end of your level or just a NULL node?
Fique por dentro de todas as oportunidades e dicas internas seguindo as empresas de seus sonhos.
Comece a buscar vagas para receber atualizações e recomendações personalizadas.