1.

Write a procedure to display the nodes of a binary tree at a particular level.

Answer»

Get Level of a node in a Binary Tree

Given a Binary Tree and a key, WRITE a function that returns level of the key.

For EXAMPLE, consider the following tree. If the input key is 3, then your function should RETURN 1. If the input key is 4, then your function should return 3. And for key which is not present in key, then your function should return 0.





Discussion

No Comment Found