What hard streaming rounds test
transcript
A hard streaming round has huge data. Some lists are too long to build. Choices touch their neighbours. Four habits matter most here.
There are too many bundles. Keep only the smallest k sums. Adding a fee only makes it grow.
Two bundles can share a total. They are still two bundles. So never drop repeats.
A clip can start anywhere. Count the clips by their end. Add right minus left plus one.
Switching quality has a penalty. The last choice decides that penalty. So keep it in the state, always.
Before coding, ask. Are equal totals different? Is the tolerance inclusive? Is every switch penalised? How large is the budget?
These questions are part of the test. They show you read the rules closely. A wrong guess costs far more later. Ask them before the first line.
Count, repeats, ends, neighbours. Say them out loud, before any code. Then write the solution. Full breakdown in the lecture.