Problem Description

Task: given timestamps in seconds, allow at most limit events in last window seconds. Return allowed count.

Input Format

Java method

Output Format

Return value

Constraints

Use two pointers.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next