Request Rate Limiter / Sliding Window
Asked at Okta · Coding Questions · Difficulty: Medium · Last asked Nov 5, 2025
Given a time-sorted list of (IP, timestamp) request pairs, a window W and an allowance Amnt, output accept/reject for each request: accept only if that IP has had no more than Amnt accepted requests in the past W seconds.
Loading the problem…
More Okta interview questions
- Hiring-Manager / Project Chat + AI Philosophy
- Count Unique Paths in a Grid
- Cross-Domain SSO After an Acquisition, and OIDC Across Sites
- Memory Allocator (Allocate / Free)
- Dependency Cycle Detection (Deadlock)
- JWT-Protected MCP Server with a Scoped whoami Tool