By mastering recursion first, students find tree and graph algorithms more accessible.
Bari’s method: