Write a procedure to display the nodes of a binary tree at a particular level.
Answers
Answered by
0
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.

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.

Similar questions
French,
7 months ago
Math,
7 months ago
Computer Science,
7 months ago
Accountancy,
1 year ago
Chemistry,
1 year ago
Math,
1 year ago