๐ WAYPOINT LESSON
Checkpoint: moves and plan
โญโญ intermediateโณ 30 min read๐ Lesson 124 of 256
A classic recurrence plus the print-order discipline in one method pair.
moves is the exam's favorite recurrence (2ยทf(nโ1)+1 โ 2โฟโ1); plan is the print-order trap: printing BEFORE the recursive call yields ascending order, printing AFTER yields descending. Students who can produce both on demand โ one arithmetic, one structural โ own the two halves of every recursion question the exam asks.