Throttle an array of tasks | Uber frontend interview question

preview_player
Показать описание
JavaScript Interview Question - 55 | In this video, we will see how to solve a medium-difficulty problem asked in a frontend engineer interview to SDE1, SDE2, and SDE3.

Implement a throttler to throttle an array of the task, if passed a limit, execute that many tasks and push the remaining into the queue.

You can expect this frontend coding question in Rippling, Uber, Flipkart, Atlassian, Meta, Google, Microsoft, Dropbox, and other product-based organizations' interviews.

Loved the question? I have 120+ solved problems in my ebook "JavaScript Interview Guide". If you are preparing for Interviews and looking for a solutions book, Get my Ebook.

Social links
Рекомендации по теме
Комментарии
Автор

Hi Prashant
Why are we using setTimeout here? Without that too, we could have done the throttling, no?

VijayRajput-pbs