Skip to content · ⁨ข้ามไปยังเนื้อหา⁩

Recursion: base case and recursive case · ⁨Recursion: Base case และ Recursive case⁩

English

A method that calls itself

  • Recursion is when a method calls itself to solve a smaller piece of the same problem.
  • On the AP CSA exam you mostly trace recursion (follow the calls by hand). Writing small recursive methods helps you trace well.
  • Every recursive method needs two parts: a base case and a recursive case.
ไทย

A Method that Calls Itself

  • Recursion is when a method calls itself to solve a smaller piece of the same problem.
  • On the AP CSA exam you mostly trace recursion (follow the calls by hand). Writing small recursive methods helps you trace well.
  • Every recursive method needs two parts: a base case and a recursive case.

Handout · ⁨เอกสารประกอบการเรียน⁩

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP