Sliding-Window Abuse Detection with Cooldown

Implement per-user request-abuse detection with a sliding window and a cooldown.

The post specifies a sliding window and cooldown but not their exact semantics. The following explicit conventions def...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: