0PricingLogin
Competitive Programming Academy · Lesson

Model State and Step Forward

Track variables across each turn.

What Simulation Means

A simulation problem hands you exact rules and asks you to follow them step by step until something happens. No clever formula needed. 🎯

State Is Everything

The state is the small set of values that fully describes the current situation. Position, score, time, or whose turn it is all live here.

All lessons in this course

  1. Model State and Step Forward
  2. Grid Walks and Direction Vectors
  3. Cycle Detection in Simulations
  4. Tame the Tricky Edge Cases
← Back to Competitive Programming Academy