Diameter of Binary Tree — Trees

Find the longest route between any pair of rooms in a branching floor plan, counted in doorways crossed, not needing to pass the entrance.

Trees · Easy

More in Trees

All algorithm problems