Problem 3390 · Hard

Longest Team Pass Streak

Given which team each player belongs to and a timed list of passes, find each team's longest run of passes that stay inside the team. A pass received by another team ends the sender team's run, and teams are listed by name.

Open the interactive visualisation