Challenges

Python challenges

Classic Python: the challenge's words on the left, your code on the right, and Check runs its tests. No game: just Python, files and you.

A random challenge by level

Level 5: An idea makes it quick, like an olympiad's first round.

13

Olympiad

First rounds of the olympiads: an idea makes it quick. Windows, prefix sums, a stack, greedy choices and counting in one pass.

Levels 4–50 of 4 solved
  1. 13-2Sums of ranges
  2. 13-4As many meetings as possible
  3. 13-5Pairs that make the sum
  4. 13-8Climbing the stairs