Pattern discovery by small-case enumeration
- Stage
- 5
- Module
- M5.2
- Lessons
- 1
In this module
- Write a brute force for small inputs and observe the pattern.
- Form a hypothesis from small examples.
- Verify and implement the pattern as the final solution.
Before this module
Lessons
Practice
Try this on the judge. The link opens the problem on WMOJ.
- 2026 S1Baby Hop, Giant Hop (opens on WMOJ in a new tab) WMOJ
Compute an answer for small T cases, observe the pattern, and implement it.