UIRound

Frontend interview questions.
Mastered.

A frontend interview practice site for developers preparing for SDE-1, senior and FAANG loops. Solve JavaScript, React, machine coding and system design questions in the browser, run real tests, then learn from step-by-step answers and the follow-ups that decide the offer.

Company guides for Google, Meta, Amazon and 592 more

Four free answers in every track. No account needed to browse.

Today's question

Build a transfer list with select-all and bulk movesmedium · about 40 min · free for everyone today, until midnight ISTSolve it
uiround / questions / maplimit
44:12
#103Hard~60 min

mapLimit() with AbortSignal

Run async tasks with at most N in flight. Keep results in order, fail fast, and stop when the caller aborts.

  • Results keep input order
  • Never more than limit tasks
  • Reject on the first failure
  • Respect the AbortSignal
solution.js Run Run tests
TestsConsole
  • keeps input order
  • never runs more than limit tasks
  • rejects as soon as one task fails
  • stops when the signal aborts
  • handles an empty list

From engineers at Google, Walmart, DP World and more

  • Most interview platforms teach you how to solve a problem. UIRound goes further by challenging how you think.

    Prince Kumar · Frontend Engineer at Google

  • UIRound is one of the most practical frontend interview preparation platforms I've come across.

    Vishal Singh · Walmart

  • UIRound takes frontend interview preparation to another level.

    Akash Kumar Singh · DP World

Try one now.

Implement debounce() with cancel() and flush(). Write it below and press Submit: the tests run in your browser, no account needed.

Open the full question with hints, the answer and follow-ups

More than a question bank.

Questions with tests are the core. Around them: ways to rehearse the round, free courses that explain the hard parts, and editors you can open in a second.

Getting the right output is the easy part. The follow-up questions are where senior offers are won.

The UIRound editor

A real editor.
Right in your browser.

Write JavaScript or React, run it instantly, and check it against an interviewer's test suite.

Open the free JavaScript editor Open the free React editor

App.jsxReact
1import { useState } from "react";
2
3export default function App() {
4 const [count, setCount] = useState(0);
5 return (
6 <button onClick={() => setCount(count + 1)}>
7 Clicked {count} times
8 </button>
9 );
10}
Preview

Runs instantly.

Your code runs in your browser the moment you press Run. Nothing to install, nothing to wait for.

Tests like an interviewer.

One click checks every edge case an interviewer would try, with a clear reason for each failure.

Live React preview.

Write a component and watch it render beside your code. Click it, break it, fix it.

Practise the way interviews actually go.

Three steps, on every question.

Step 1

Read the problem. Start the clock.

Every question is a real interview task with a time budget for its level, from 15 minutes on easy to an hour on hard.

#46Medium 35:00

Implement mapLimit() with at most N tasks running at once.

  • Results must keep input order.
  • Reject as soon as one task fails.
  • Never run more than limit tasks.
Start solving35 minutes on the clock

Step 2

Solve it. Then run the tests.

Write your solution in the editor and check it against the edge cases an interviewer would try, right in your browser.

solution.jsRun tests
async function mapLimit(items, limit, fn) {
  const results = [];
  let next = 0;
  const worker = async () => {
    while (next < items.length) {
      const i = next++;
      results[i] = await fn(items[i]);
    }
  };
  await Promise.all(Array.from({ length: limit }, worker));
  return results;
}

All 3 tests passed

  • keeps input order
  • never runs more than limit tasks
  • rejects on the first failure

Step 3

Face the follow-ups.

Answer the questions an interviewer asks next out loud, then reveal the model answer. This is where senior offers are decided.

Interviewer

  • What happens when one task rejects?

    Promise.all rejects at once, but workers already running keep going. Track a failed flag so no new task starts.

  • Can a caller cancel halfway?
  • What about 100,000 items?

Answer out loud first. Then reveal.

10,580
tests to check your code
5,083
follow-up answers
20
tracks
404
free concept answers

Everything you need.
Nothing you don't.

Follow-ups with model answers.

Try each one out loud, then reveal how a senior engineer would answer it.

  • What happens when one task rejects?Reveal
  • Can a caller cancel halfway through?
  • How do you avoid starving low priority work?

FAANG-level questions, curated.

From warm-ups to senior system design, each picked by hand.

Revise before you forget.

Solved questions come back after growing gaps, so they are still fresh in interview week.

  1. Day 1
  2. Day 3
  3. Day 7
  4. Day 14
  5. Day 30

Track every solve.

Mark questions solved, bookmark the ones to revise, and pick up where you left off.

72%
Easy
18 of 25
55%
Medium
41 of 75
18%
Hard
9 of 50

Free to start.

Four full questions and answers in every track, with the editor and tests included.

Start with the free answers
jk/

Built for the keyboard.

Next, previous and search, without the mouse.

20 tracks. From polyfills to system design.

Every question runs real tests in your browser. Point at a track to see one, and the first four in each are free.

Free sample answer

#59 Implement useInterval() without stale closures

Problem

This counter looks right but gets stuck at 1:

function Counter() {
  const [count, setCount] = useState(0);
  useEffect(() => {
    const id = setInterval(() => setCount(count + 1), 1000);
    return () => clearInterval(id);
  }, []); // the callback only ever sees count = 0
  return <h1>{count}</h1>;
}

Implement useInterval(callback, delay) so that:

  • callback runs every delay ms and always sees the latest props and state (no stale closure);
  • passing a new callback on every render does not restart the interval;
  • delay === null pauses the interval, and changing delay restarts it with the new delay;
  • the interval is cleared when the component unmounts.

What engineers say.

Engineers at Google, Amazon, Microsoft and more, on preparing with UIRound.

Write a review
  • “One of the best frontend interview preparation websites I've come across.”

    Preparing for frontend interviews used to mean switching between countless blogs, GitHub repositories, and coding platforms. UIRound brings everything together in one well-structured place. From JavaScript fundamentals and advanced React concepts to real-world machine coding challenges and frontend system design, the content is practical and interview-focused. It's an excellent resource for developers preparing for challenging frontend engineering interviews.

    Aman Kumar SinghAmazon
  • “A game-changer for frontend machine coding and UI interviews.”

    Most interview preparation platforms focus heavily on data structures and algorithms, but frontend interviews require a different set of skills. What makes UIRound stand out is its emphasis on real-world machine coding challenges, React components, DOM manipulation, and practical UI development. The problems reflect the kinds of technical challenges frontend engineers need to prepare for. I'd highly recommend it to developers who want to strengthen their hands-on coding and problem-solving skills.

    Kundan KumarMicrosoft
  • “One of the most practical resources for frontend system design.”

    Finding structured frontend system design material can be challenging, especially when preparing for senior engineering interviews. UIRound does an excellent job of bringing together important topics such as scalable UI architecture, state management, browser performance, caching strategies, and real-world system design problems. I particularly appreciate its focus on understanding engineering trade-offs rather than simply memorizing solutions. A valuable resource for developers preparing for SDE-2 and senior frontend roles.

    Sameer AliGoogle
  • “An excellent platform for mastering JavaScript, React, and frontend interviews.”

    UIRound is a valuable resource for frontend developers who want to improve their technical skills and prepare for interviews. The combination of JavaScript interview questions, React challenges, UI machine coding exercises, and practical explanations makes preparation much more organized. I especially like how the platform encourages hands-on problem-solving instead of just reading theory. Whether you're preparing for your next frontend interview or improving your engineering fundamentals, UIRound is worth exploring.

    Vishal MishraOracle

Pay once. Nothing renews.

Pick the time you need. No subscription, no auto-pay, less than the cost of one mock interview.

Sprint

For a last-minute revision.

₹149

for 7 days

About ₹21 a day. One payment. It does not renew.

Monthly

For one interview round.

₹499

for 30 days

About ₹17 a day. One payment. It does not renew.

3 Months

One full preparation cycle, start to offer.

₹999₹899

for 90 days

New member offer: 10% off until 1 January

About ₹10 a day. One payment. It does not renew.

  • Card worldwide, or UPI in India, through Razorpay
  • Access unlocks the moment payment succeeds
  • One payment. Nothing renews.
  • Receipts for your company's learning budget

Student? Every pass is 10% off.Sign in with your college email (ending in .ac.in or .edu) and the student price is applied for you.

Compare plans

SprintMonthly3 Months1 Year
Every question, with a tested solution
10,580 tests you can run in the browser
5,083 follow-up questions with answers
Questions added while your pass lasts
Access7 days30 days90 days1 year
Price₹149 once₹499 once₹999₹899 once₹1,999₹1,799 once

Questions? Answers.

What is UIRound?

UIRound (uiround.com) is a frontend interview practice website. You solve JavaScript, React, TypeScript, CSS, machine-coding and frontend system design questions in a browser editor, check your code against real tests, then read a step-by-step answer and the follow-up questions interviewers ask. It covers every level, from students and SDE-1 to senior, staff and FAANG loops, and four questions in every track are free.

Are the passes subscriptions?

No. Every pass (7 days, 30 days, 90 days and 1 year) is a one-time payment. Nothing renews; buy again whenever you want more time, and the new days are added to what you have left.

Which pass should I pick?

3 Months if you are preparing for interviews over the next few weeks: it covers a full preparation cycle and costs the least per month. Sprint (7 days) for a last-minute revision before one interview, Monthly (30 days) for one interview round, and 1 Year if you want to practise all year. Every pass unlocks everything, including questions added while it lasts.

What happens when my pass ends?

Your progress, bookmarks, notes and revision schedule stay. The full answers and tests lock again until you buy another pass, and the free questions stay free. Buying a pass while one is active adds its days to the end.

How do I pay?

Through Razorpay: by card from any country, and also by UPI, net banking or wallets in India.

Can I try it first?

Yes. Four questions in every track are fully free, with tests and answers. Every other question shows its title, topic and level; the full problem, hints, editor, tests, answer and follow-ups unlock with Pro.

Can I get a refund?

No. All purchases are final, so start with the free questions to see exactly what you get. If a payment fails or you are charged twice, the extra charge is returned to you.

Your next offer
starts here.

Start with the free answers