Same tracks. Wrong answer.
transcript
This check looks right. It is wrong. It passes most small tests. Can you see why it fails?
Find every window that replays the mix seven, two, seven. The check compares sets. Which tracks, not how many. Two, seven, seven. Set two and seven. A match. Seven, two, seven. A match too. Both correct. Now two, seven, two. Its set is two and seven. The check reports it. Three replays.
But the mix holds seven twice. That window holds two twice. It is not a replay. Counts see it. The right answer is two replays.
A sum check fails the same way. One plus four is five. So is two plus three. Different windows, same fingerprint.
The fix is a counts map. Track seven needs two plays. Track two needs one play. A window matches only when every count matches.
Repeats are part of the question. So compare counts. Every time.
Full breakdown in the lecture.