We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Me using python and implementing level order traversal using arrays to store values of nodes at particular height.
List of nodes(n2) are stored in List of tree(n). It will also give you which nodes are present at what level.
Tree: Height of a Binary Tree
You are viewing a single comment's thread. Return to all comments →
Me using python and implementing level order traversal using arrays to store values of nodes at particular height. List of nodes(n2) are stored in List of tree(n). It will also give you which nodes are present at what level.