Question DSA-TREE-0021
EasyWhat is the root of a tree?
- A.
The last node added
- B.
Any leaf node
- C.
Show answer and explanation
Answer: C
Every other node can be reached from the root.
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 root of a tree?
The last node added
Any leaf node
Answer: C
Every other node can be reached from the root.
The topmost node, which has no parent
The node with the largest value