Question d’entretien chez Capcom

Implement a function that returns the depth of a binary tree

Réponse à la question d'entretien

Utilisateur anonyme

30 déc. 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.