Log in←Next →
Timed drill90 min

Drill: A Feature-Flag Service

This drill is an original problem in the same format as the coding screens candidates describe: one class, four levels, a clock. Each level adds requirements that you can't see yet, so the data model you pick in Level 1 decides how painful Level 4 is.

The rules

  • Implement a class called FlagService in the editor. Every method takes timestamp (an integer) as its first argument, and timestamps only ever increase from one call to the next.
  • Press Submit to run the checks for the levels you can see. When every check for a level passes, the next level opens below.
  • The clock is a target, not a wall. If time runs out, keep going: finishing late is still practice.
  • Hints and the AI tutor are off while the clock runs, the same as a real assessment.

Ready when you are

4 levels, 90 minutes. Each level unlocks when every check on the previous one passes.

The hints and the AI tutor switch off until you finish or the clock runs out, the same as a real assessment.

Ask a senior FDE

The tutor is off while the drill clock runs. It comes back when you finish or time runs out.

main.py
Run your code to see output here. Ctrl/Cmd + Enter runs it.