Skip to main content
๐Ÿ“œ WAYPOINT LESSON

Problems Without Labels

โญโญโญ advancedโณ 15 min read๐Ÿ“ Lesson 274 of 281

The classification protocol (constraints โ†’ query shape โ†’ sample trace) and how to self-grade a mixed set.

Problems Without Labels

Real contest problems do not announce their topics. This module's sets are built that way on purpose: the statement gives what is asked, the constraints give how fast, and the samples give shape. Naming the tool is your job, and it is worth doing before coding โ€” a wrong family costs the whole implementation.

The classification protocol

For each problem, in order:

  1. Constraints first. n โ‰ค 20 screams enumeration; n โ‰ค 2ยท10โต demands O(n log n); values โ‰ค 1000 hint at counting tricks.
  2. Query shape second. Point updates with range queries = tree structure. Offline-able queries = sort by something. All queries known up front = think offline.
  3. Sample arithmetic third. Trace the sample; the trace usually exposes the invariant.

The sets

  • Set A (advanced) โ€” five problems, one per family you already own.
  • Set B (hard) โ€” five problems, each needing one non-obvious observation.
  • Set C (very hard) โ€” five problems, each fusing two ideas.
  • Checkpoint set โ€” five problems in contest order (easy โ†’ hard), the HSG-challenge tier.

After each set, grade yourself honestly: which problems did you name within two minutes? Those are the ones the two-minute rule from the clock lesson protects. The others go on your weakness list with the topic you should have seen.

โšก Now practice

Ready to Code
Mixed Sets A/B/C โ€” Topics HiddenFifteen problems across three graded sets with no topic labels. Name the tool first; code second.
9 challenges ยท ยท ~180 min