Rate limiter

Difficulty: MEDIUMCategory: HLDFrequency: 1Asked On 2025-06-02

Problem Statement

Given a time and limit, implement rate limiting. For example, one user can only call the API up to 5 times within 2 seconds.

Solution

Comments