Anonymous · shared experience20 Jun 2025 · 5 views
Zeta: Run API calls with a concurrency limit
Problem. Write a JavaScript function that takes a list of async API calls and a limit n. It must run the calls so that at most n are in flight at any time, starting the next one as soon as one finishes, and resolve with all results.
What it tests. Real understanding of promises: chaining, collecting results in order, and handling errors without stalling the queue.
Context. The first round of a frontend SDE-2 loop. The candidate expected DSA but got a promise deep dive with polyfill questions, which came up again in the final round.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.