Skip to main content

Practice · 3 of 3

The Doubled Answer

CHALLENGE
Difficulty: advanced+25 XP

**Scenario.** A counting solution returns exactly twice the expected answer on every non-trivial input. Which catalog category? **Which approach is the best fit? The program only needs to print the letter.** **A)** Boundary off-by-one **B)** Ordered/unordered counting — counted (i,j) and (j,i) as distinct **C)** State staleness **D)** Greedy exchange violation

Back to lesson: Practice: Clinic Drills