Problem 3508 · Medium

Implement Router

Keep packets in a first-in first-out queue with a set for duplicates, and count a destination’s timestamps inside a range.

Open the interactive visualisation