Loading...

The Throttle Ceiling

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
mid, senior, staff

Problem

The API gateway needs to cap how many requests each client can make within a rolling time window. Build a class that tracks request timestamps and decides whether each new request should be allowed or throttled.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.