Competitive-programming classrooms can include a student writing their first graph traversal and another who has solved hundreds of contest problems. A single fixed task will be unreachable for one and routine for the other.
I do not want two unrelated courses occupying the same room. I want one core question that supports several depths of work.
Define the common core
The shared objective should be conceptual: model reachability, justify a greedy choice, design a state, or construct a counterexample. Everyone participates in the same discussion even if their implementations and extensions differ.
Provide optional entry ramps
Scaffolding can include a smaller instance, visualization, partial interface, prerequisite refresher, or sequence of diagnostic questions. It should be available without labeling students publicly by level.
The ramp must still join the main task. A simplified worksheet that never reconnects can create a permanent lower track.
Add conceptual depth
Advanced students do not need five more routine problems. Useful extensions change the reasoning: prove a tighter bound, remove an assumption, build an adversarial generator, compare two methods, or explain why a tempting optimization is unsound.
These tasks deepen the shared idea and can contribute examples that help the whole class.
Use flexible collaboration
Pairing can help when roles are explicit and rotate: modeler, skeptic, implementer, or tester. Unstructured pairing can turn one student into the solver and the other into an observer.
I also preserve individual reconstruction time. Collaborative understanding should eventually become an independent decision.
Measure progress from the starting point
A beginner may make major progress by producing a correct model and first independent implementation. An experienced student may need evidence of stronger proof, testing, or communication. The standards can share a core while recognizing different frontiers.
Fairness gives every student access to the same important idea, an honest next challenge, and evidence of growing independence.