Перейти к основному содержимому
0

Этот урок пока на английском.

Functions that call themselves

Some problems contain smaller copies of themselves: a reply thread holds replies that hold more replies. Recursion solves the smaller copy first, then builds the answer back up.