Skip to content
Trees line

Trees problems

A tree is nodes joined by links, each node with up to two children. Most answers come from a short recursive function that solves each child and combines the results.

The 15 problems

In the order the app teaches them. Each page has the problem, five hints and the explained solution.

On the roadmap

Trees is a station on the trees line. It builds on Linked List. Next comes Tries and Backtracking.

The roadmap says why each line runs in its order.

Patterns

4 patterns solve these problems. Naming them gives the problems’ methods away, so the list is folded.

Show the 4

Keep going