PRACTICE / UNDERSTAND / REPEAT
Data Structures & Algorithms practice question
Practice trees with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
1 questionAnswers explainedFree · no login
Try this question
A nonempty tree has 6 vertices. How many edges does it have?
Answer & explanation
Answer: 5
A tree is connected and acyclic, and therefore has V - 1 edges.