Azienda coinvolta
Implement a function that returns the depth of a binary tree
Anonimo
Simply do in order traversal and keep track of depth and only remember the max of all depths. Can use recursion or iterative solution.
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.