Devansh Arena
Ship on the clock.
Run code directly against production-style scenarios, from rate limiters to event fan-outs. Every submission executes inside an isolated VM and updates the global leaderboard instantly.
Basic
Implement a token bucket rate limiter
Return an object with `allowed` (boolean) and `tokens` (number) after applying a token bucket limiter. The bucket refills by `refill` tokens per request and has maximum capacity `capacity`. Block the request if there are not enough tokens.
What gets measured?
Each challenge ships with a curated set of edge cases. Passing every test awards the full score, weighted by difficulty. We also surface runtime to highlight efficient solutions.
- • Functional correctness across deterministic tests.
- • Execution time budgeted to 1.5 seconds per submission.
- • Bonus points for higher-difficulty prompts.
Pro tips
You can iterate as many times as you like—only the best run counts. Use the starter templates to align with expected function shapes, and sprinkle logs using console.log
for rapid debugging.
The arena is still evolving. Got a scenario in mind? Drop a note on the engineering page and let's build it together.