solulubeta
Sign in
Recursion & Memo / Exam kit
05.01 · Lesson

Exam-Day Playbook

The whole module on one page: the 10-minute method, the base-case cheat sheet, the pattern finder, quick debugging and the Java bugs that cost marks.

11 min 1 video Pro

Read this the night before a test, and again just before it starts.

The 10-minute method

MinuteDo this
0–1Read what to return. List all? Count? Min/max? Yes/no?
1–3Draw the tree for 2–3 items. What are the choices?
3–4Write the promise as a comment: // f(i, rem) = …
4–5Base cases, using the cheat sheet below
5–8Code the plain recursion. Run the samples.
8–10Add the memo (4 steps) if calls repeat. Submit.

Plain recursion that passes the small tests often earns partial marks. Don’t skip it.

solulu Pro

Continue this lesson with Pro

Inside: 7 sections · 1 video.

  • The 10-minute method
  • Base-case cheat sheet
  • Pattern finder
  • Debug fast
  • How big can n be?
  • Java bugs that cost marks
  • +1 more
Lifetime ₹1,999 ₹999 · Launch offer
Mark this as done when you are finished.

Item 42 of 44 · updated 2026-10-13