Pergunta de entrevista da empresa Capcom

Implement a function that returns the depth of a binary tree

Resposta da entrevista

Sigiloso

30 de dez. de 2016

Simply do in order traversal and keep track of depth and only remember the max of all depths. Can use recursion or iterative solution.