What the core streaming round adds
transcript
A streaming round has big data. The data is sparse. And it has state. Four habits matter most.
Most profiles watch on few days. So sort the events you have. Then search them, never scan.
Between day A and day B. Both days are in the total. Say that before you search.
Many episodes can be ready. The smallest must go first. A heap settles every tie.
A design round is commands. Say the cost of each one. Say which may change state.
Ask how many days there are. Ask how many titles there are. The limits choose the method.
These questions are part of the test. They show you plan the work. Ask them before the first line.
Before coding, ask. Is the window closed? Can a pair repeat? Which commands change state? And how large can the data be? The limits choose the method.
Sparse, closed, ties, commands. Say them out loud, before any code. Then write the solution. Full breakdown in the lecture.