Define depth and height of a tree?



Define depth and height of a tree?..

Answer / Shailza Singh

The depth of a node in a tree is the number of edges along the path from the root to that node. The height (or max depth) of a tree is the maximum depth among all its nodes. For an empty tree, both depth and height are 0.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What are the different binary tree traversal techniques?

1 Answers  


Minimum number of queues needed to implement the priority queue?

1 Answers  


Where is data structure used?

1 Answers  


Discuss how to implement queue using stack.

1 Answers  


What are the properties of binary heap?

1 Answers  


Is arraylist a collection?

1 Answers  


What is the difference between one and two dimensional?

1 Answers  


What is the default size of arraylist?

1 Answers  


What are different dynamic memory allocation technique in c.

1 Answers  


Why do we use collections?

1 Answers  


What is the difference between linked list and array?

1 Answers  


What does list clear do?

1 Answers  


Categories