Skip to content · ⁨コンテンツへスキップ⁩
English

A function that calls itself

  • Recursion is when a function calls itself.
  • Each call should work on a smaller version of the problem.
  • Done right, the problem shrinks until it is trivial to solve.
日本語

自身を呼び出す関数

  • 再帰とは、関数が自分自身を呼び出すことです。
  • 各呼び出しでは問題のより小さいバージョンを扱います。
  • 適切に行えば、問題は縮小して解くのが単純になります。

Handout · ⁨プリント⁩

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP