Implement int maxDepth(struct Node root) so it reports how many nodes lie on the tree's deepest root-to-leaf path - in other words, the longest chain of nodes you can walk starting at root and ending at some leaf.
244 problems. 216 MCQs. Practice by topic or by role — both included in one purchase.
Write C. Run code. Check the output.
124 problems
Practise commands in a Linux terminal.
80 problems
Practise tasks and scheduling in C.
40 problems
Check your fundamentals. Review explanations.
216 questions
₹399 ₹699
12 months · One-time payment
No automatic renewal.
Get Embedded Lab access →Free account required · No time limit
Courses, projects and Interview Prep are separate purchases.