Skip to content
CCC Python Course

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

  1. 1Discovering patterns by enumeration

Practice

Try this on the judge. The link opens the problem on WMOJ.

  1. 2026 S1
    Baby Hop, Giant Hop (opens on WMOJ in a new tab) WMOJ

    Compute an answer for small T cases, observe the pattern, and implement it.