CHAPTER 04 OF 10
How to practise: timing, hints, reviews and mock OAs
The rhythm of one problem, using hints, when to read the editorial and upsolve, grading reviews, mixing new problems with reviews, and a weekly mock OA.
How you practise matters more than how many problems you get through. The routine below uses tools that are already in CSWork: the problem timer, three hints per problem, the review queue and mock OAs.
The rhythm of one problem
- Read the statement and the input limits, then restate the task in your own words.
- Start the problem timer. It runs as a stopwatch by default; switch it to a countdown and it presets 15 minutes for Easy, 25 for Medium and 40 for Hard.
- Think on your own for 25–40 minutes. Look only at the statement: no hints and no searching for solutions. If the optimal idea doesn't come, write a correct brute force first.
- Test with the samples and edge cases you make up yourself, then submit.
- Once it passes, write the key idea in a sentence or two. It is the first thing you will see when the problem comes back for review.
In an interview you explain while you code. When you can't find the English word for a technique, look it up in the Chinese–English glossary; every term comes with a sentence you can say as it is.
Climb the hints one step at a time
Every Line 500 problem has three hints, from light to strong:
- hint 1 is open at any time, usually just points a direction and doesn't change your review schedule;
- hint 2 unlocks after one failed submission or after 10 minutes on the problem;
- hint 3 unlocks after two failed submissions and is usually close to the full idea.
After each hint, go back and think for a few more minutes. Open the next one only if you are still stuck. Reading all three in a row is no different from reading the editorial.
When to read the editorial, and how to upsolve
If you have read all three hints and thought hard and still have no idea, read the editorial instead of grinding on. Then:
- Once you understand the idea, close the editorial and write the solution from an empty editor until it passes.
- Name where you got stuck: you didn't recognise the pattern, you had the idea but couldn't code it, or you missed an edge case.
- Write the stop's template from memory. The templates are online, or printed as one handbook.
After a contest or a mock, finish the problems you missed the same way. That is upsolving, and one upsolved problem often teaches more than one more new problem.
Solved alone or with help
CSWork records how each problem was solved: if you opened hint 2 or 3, read the editorial or asked the AI tutor before solving it (having it explain the statement doesn't count), it counts as solved with help; hint 1 only points a direction and does not count.
- Problems solved alone come back for review after 3, 7, 21 and 60 days.
- Problems solved with help come back after one day first and then follow the same steps, so mastering them takes one review more.
This is not a penalty. Needing help means the problem isn't yours yet, and seeing it again sooner makes it stick. So don't hold out just to keep a clean record, and don't treat a read editorial as a solved problem.
Grading your reviews
Due problems show up in the review session, in the same queue as your cards and multiple-choice questions. Review without looking at your old code: write it again until it passes, then grade yourself:
- Again: it comes back tomorrow;
- Hard: the wait stays the same;
- Good: it moves one step on;
- Easy: it skips a step.
No grade counts as Good. A problem graded Again on two reviews in a row, or on three in all, is marked as a leech; go back to its topic page and run through the template and key points again. Review cards follow their own steps: 1, 3, 7 and 21 days.
Mixing new problems and reviews each day
- Do the due reviews first, then new problems. Reviews are quick and pay off well; put them off and they pile up.
- On a busy day, the reviews plus the daily problem are enough.
- Take new problems from the Line 500 list in topic order, and focus on one or two topics at a time. Not sure where to start? Take the placement quiz first and skip the topics you already know.
- When there are more due reviews than you can finish in a day, pause new problems for a day or two and clear the backlog.
One mock OA a week
Pick a fixed block of time each week for one timed mock:
- Start a timed set in mock OA; to match one company's question count and time limit, pick a set from the company mock OAs.
- Follow test rules: no looking things up, no hints, and stop when time runs out.
- Afterwards, see which problems lost points and why, then upsolve them as above.
One a week is enough to get used to the clock without crowding out regular practice; close to a real OA you can do two. For the day of the test itself, see online assessments.
When you are stuck or worn out
- If one topic beats you several days running, step back one stop and drill the prerequisite's template before you return.
- Learn the same idea another way: watch the topic page's animation, reread its key points and do its template drills. That works better than forcing one new problem after another.
- On a bad day, cut the load to the minimum: only reviews, or only the daily problem. A steady streak beats the occasional marathon.
- When you are tired, take a day or two off. The review queue will wait; clear it first when you come back and the rhythm returns quickly.