Question DSA-TREE-0074
HardWhat is the diameter of a binary tree?
- A.
The width of the widest level
- B.
The number of edges on the longest path between any two nodes
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Trees question
What is the diameter of a binary tree?
The width of the widest level
The number of edges on the longest path between any two nodes
Sign up free to see the answer and a step-by-step explanation.
The height of the root
The number of leaves