Skip to content

Simulation problems,
and the tell.

The problem describes a process and asks what state it ends in. There is no trick to find. 102 problems in the catalogue carry this tag, from first-week easy to interview hard.

Free to start. Running and submitting a solution never costs credits.

How the pattern actually works.

One mechanism, and the mistake that costs people the problem.

The tell. The problem describes a process and asks what state it ends in. There is no trick to find.

The mechanism. Translate the rules into code exactly, step by step, and keep the state in the simplest structure that holds it. The difficulty is reading comprehension, not algorithms.

What goes wrong. Rushing the statement. These are lost by missing one rule, not by being too slow.

The ones asked most often.

By how often the catalogue records them being set, not by our opinion.

  1. Spiral MatrixMediumasked at 45 companies
  2. Diagonal TraverseMediumasked at 5 companies
  3. Mark Elements on Array by Performing QueriesMediumasked at 2 companies
  4. Time Needed to Buy TicketsEasyasked at 2 companies
  5. Watering PlantsMediumasked at 1 companies
  6. Validate Stack SequencesMediumasked at 1 companies
  7. Double Modular ExponentiationMediumasked at 1 companies
  8. Divide a String Into Groups of Size kEasyasked at 1 companies
  9. Total Distance TraveledEasyasked at 1 companies
  10. Spiral Matrix IIIMediumasked at 1 companies

Read it, watch it, then solve it.

The order that makes a pattern stick.

Everything in the app, in one place.

Practice, interviews and the tools, all free to start. Swipe to see the rest.

Free to start: 100 AI credits when you sign up and 100 every month. Start free in the app

About simulation problems.

Free to start, no card.

Start practising
How do I know a problem is a simulation problem?

The problem describes a process and asks what state it ends in. There is no trick to find.

How many simulation problems should I solve?

Enough to stop needing the hint, which is usually ten to fifteen across the levels, not the whole list. The catalogue tags 102, split roughly 42 easy, 51 medium and 9 hard in the sample we show, so work up rather than across.

What goes wrong most often in simulation problems?

Rushing the statement. These are lost by missing one rule, not by being too slow.

Is practising by pattern better than a problem sheet?

A sheet tells you what to solve. A pattern tells you why those problems sit together, which is the part that carries over to the problem you have not seen. That is why the app files every problem under its pattern.