Correct first, fast second
transcript
The last problem of the test is hard. Many candidates do not finish it. What should you do first?
Write a slow solution that is right. It passes the small hidden tests. Submit it before you improve it.
The limits tell you the speed you need. A name of a thousand letters allows a slow search. A hundred thousand prices do not.
Each medium problem adds one rule to a classic. It might be a buffer, or a tie. Or it might be a holding time.
Hidden tests aim at that extra rule. So test it yourself before submitting. Try a nested booking, or a long hold.
Stop when the time box is over. Move on to a problem you can finish. Come back if minutes remain.
The grader counts the hidden tests that pass. Small tests are the easiest marks to win. Large tests reward the faster version.
A right slow answer earns marks. Then improve it with spare minutes. Full breakdown in the lecture.