๐ 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:
- Constraints first. n โค 20 screams enumeration; n โค 2ยท10โต demands O(n log n); values โค 1000 hint at counting tricks.
- Query shape second. Point updates with range queries = tree structure. Offline-able queries = sort by something. All queries known up front = think offline.
- 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 CodeMixed 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