A skipped track never played
transcript
A shuffle skips close repeats. A skipped track never plays. So does it count at all?
The queue is one, two, one, three, one, two. The gap is two played tracks. The third track repeats one, so it is skipped. Three plays, then one plays again.
Count only tracks that played. The last one then plays again. Counting skips hides that track.
Map each track to a place. Store the place among plays. A skip changes nothing.
Millions of plays happen daily. Each listener has a small map. Each check takes constant work.
Test a gap of zero. Test a repeat right after a skip. Test one track on its own.
A real app keeps a history for each listener. It checks the history before every track. Only real plays go into it.
Listeners hate hearing a song twice. A wrong clock skips too much. Count what was heard.
Count only what was heard. Full breakdown in the lecture.