Skip to content
Code ReadingTree Depth
Bug Hunt

Tree Depth

A one-node tree should have depth 1, but this says 2; it counts one too many on every tree. Find the line and the kind of bug.

Click the line you think is wrong.