Pergunta de entrevista da empresa Microsoft

Write a function to print all paths of a binary tree to a certain depth/length.

Resposta da entrevista

Sigiloso

22 de ago. de 2014

Recursion, pass the root and the desired length initially, then call recursively children with length -1, return an array of string in the end.

1