Coding Interview | Levels of a Binary Tree

Veröffentlicht am: 17 Januar 2023
auf dem Kanal: Back To Back SWE
2,366
71

👉 Full Binary Tree Bootcamp -    • Binary Tree Bootcamp: Full, Complete,...  
👉 Free 5-Day Course - https://backtobackswe.com/five-day

Levels In A Binary Tree

In general, a binary tree with n nodes will have at least 1 + floor(log_2(n)) levels

When we do something like a tree traversal or heap insertion or removal this is why we use a bound of O(h) which for a balanced binary tree really means O(log(n)).

We will traverse at most a log amount of levels in the asymptotic sense since that is our tail behavior. Our asymptotic behavior is logarithmic.


Auf dieser Seite können Sie das Online-Video Coding Interview | Levels of a Binary Tree mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Back To Back SWE 17 Januar 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2,366 Mal angesehen und es wurde von 71 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!