Skip to content · ⁨Pular para o conteúdo⁩
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.
Português

Uma função que se chama

  • Recursion é quando uma função se chama ela mesma.
  • Cada chamada deve trabalhar em uma versão menor do problema.
  • Quando feito corretamente, o problema diminui até se tornar trivial de resolver.

Handout · ⁨Material de apoio⁩

Log in or create account · ⁨Entrar ou criar conta⁩

IGCSE, A-Level & AP