Calculate depth of a full Binary tree from Preorder | GeeksforGeeks

preview_player
Показать описание

This video is contributed by Anant Patni

Please Like, Comment and Share the Video among your friends.

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

How will we know that tree[index]= 'l' ?

BtcTao
Автор

Please correct the title, I attempted the question based on it. Pre-order traversal does not give information about any node being a leaf. Two trees of different heights can have same pre-order traversal.

PrateekGole