الانتقال إلى المحتوى الرئيسي
٠

هذا الدرس بالإنجليزية حاليًا.

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.