New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Microsoft
Coding Question
AI Insights
Quick Summary
Implement a system that enforces a maximum number of requests within a moving time window.
Track incoming request timestamps to determine when older requests expire from the window.
Return true or false based on whether the current request fits within the active capacity limit.
What This Tests
Sliding window algorithm
Queue data structure operations
Time-window state tracking
Concurrency-safe system design
Common Patterns
Sliding Window
Queue
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Accepted
2.9k
/3.9k
Acceptance Rate
75.1%
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Stdout
-