Тёмный

Solving Paytm and Uber Frontend Interview Question | Custom Map with Limit 

Devtools Tech
Подписаться 36 тыс.
Просмотров 2,6 тыс.
50% 1

In this video, we will solve a front-end interview question from top companies like Paytm and Uber. We will build a custom map function that can make atmost n calls at any given time. We will talk about different approaches and chose the most simple yet effective way of solving the problem statement. We will learn recursion, looping, closures, and more.
Question link: devtools.tech/...
Support Us: topmate.io/yom...
Try now using the links below
devtools.tech/...
devtools.tech/...
You can support our channel via:
rzp.io/l/suppo...
devtoolstech.g...
www.buymeacoff...
************************************************************
Devtools Tech is a RU-vid channel started as a collaborative effort among like-minded engineers to provide high-quality programming tutorials for free. We firmly believe in knowledge sharing and easy access to quality content for everyone. Hence, this channel is an effort to give back to the community and a step toward our belief -- "We rise by lifting others".
Interview questions: devtools.tech/...
Interview resources: devtools.tech/...
Hidden Gem: devtools.tech/...
Team Members:
Yomesh Gupta
Portfolio: yomeshgupta.com
LinkedIn: / yomeshgupta
Twitter: / yomeshgupta
#javascript #ai #web #frontend #interviewquestions #devtoolstech #code #programming #developement #devtoolstech #code
***********************************************************

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@syncmaster320
@syncmaster320 Месяц назад
Hey! I do agree with the other comment and felt like something was missing or rush. Another thing I noticed is that the question is hinting at using async methods (likely Promise.SettleAll) but what you've implemented is very synchronous
@DevtoolsTech
@DevtoolsTech Месяц назад
Thanks for the feedback. I will keep it in mind. Question can be both sync and async. It depends upon what interviewer wants to see. As part of the solution prep, you can ask the interview what exactly they want. It can solved as a follow up question.
@MASTERISHABH
@MASTERISHABH Месяц назад
This video felt rushed. Question and the approaches were never discussed thoroughly before jumping into the solution. The solution however obvious it might be to you, from the 3rd person, the complete 11 mins were a waste of time to us.
@DevtoolsTech
@DevtoolsTech Месяц назад
Thanks for the feedback. I will keep it in mind!
@saquibakhter5801
@saquibakhter5801 26 дней назад
Hey yomesh, Thanks for sharing the solution, I have two doubts: 1. What if I use call instead of bind, what is the purpose of bind here. 2. What will happen if iteratee is an async function.
@DevtoolsTech
@DevtoolsTech 23 дня назад
It won't work if we use call as it will invoke the function right away. We want to pass the function which should be invoked later with specific arguments. Callbacks are async too. However, promise handling is the second part of the problem. We need to modify the solution to accomodate that.
@SAMEERKHAN-nd7ti
@SAMEERKHAN-nd7ti Месяц назад
Thank you so much for your efforts bro!
@vaibhavmishra738
@vaibhavmishra738 Месяц назад
This solution seems wrong. Suppose you have a 3rd id with a very long request time. so 1 and 2 goes into postCompletionCallback . 1st timeout is completed and iterateeFn is called with 3 having long request time meanwhile 2nd timeout is completed and iterateeFn is called with 4 which has a short request time so obviosuly that will be completed first and User4 will be pushed which will call iterateeFn with 5 and its timeout will complete faster than 3rd timeout pushing User5 into outputs and at last after 3rd timeout is completed User3 will be pushed therefore making the solution wrong. If you want to confirm this , make random time multiplied by 1000 not by 100.
@DevtoolsTech
@DevtoolsTech Месяц назад
Currently, as per the question requirements, the wait time of each job is more than the preceding one. Hence, the solution will work. The solution is based on the specific requirements and details the interviewer provided. However, in the real world, the jobs can take unexpected amount of time. It is a follow up question to the current one. It won't be that straightforward to implement. It would require a combination of mix of tracking and promise based solution.
Далее
Prank Orchestra
00:10
Просмотров 1,6 млн
КОСПЛЕЙ НА СЭНДИ ИЗ СПАНЧБОБА
00:57
Frontend System Design Interview (Build Google Search)
18:55
Postgres just got even faster
26:42
Просмотров 22 тыс.
JavaScript Visualized - Closures
11:34
Просмотров 38 тыс.
Solving Output Based JavaScript Interview Questions
28:17
So, you want to build apps & websites?
9:34
Просмотров 173 тыс.