Skip to content
CCC Python Course

Algorithm-first thinking

Stage
2
Module
M2.2
Lessons
1

In this module

  • Work a small sample by hand before writing any code.
  • Write a plan in plain words, separate from the code that will implement it.
  • Translate a plain-language plan into Python, checking each step against the hand-worked sample.

Before this module

Lessons

  1. 1Algorithm-first thinking

Practice

Try these on the judges. Each link opens the problem on WMOJ or DMOJ.

  1. 2025 J3
    Product Codes (opens on WMOJ in a new tab) WMOJ

    Build an output from a line that mixes letters and numbers.

  2. 2014 J4
    Party Invitation (opens on DMOJ in a new tab) DMOJ(same problem as 2014 S1)

    Remove people from a numbered list in rounds, each round dropping every k-th remaining person.

    Why DMOJ: An early problem, included here for extra practice.