Question DSA-TREE-0002
EasyWhat is a leaf node?
- A.
A node with one child
- B.
A node with no children
- C.
Show answer and explanation
Answer: B
Leaves are at the ends of the tree's branches.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Trees question
What is a leaf node?
A node with one child
A node with no children
Answer: B
Leaves are at the ends of the tree's branches.
The root node
A node with two children