Solving Uber Advanced Frontend Interview Question | Overlapping Circles

  Рет қаралды 2,655

Devtools Tech

Devtools Tech

Күн бұрын

Пікірлер: 14
@DevtoolsTech
@DevtoolsTech 3 күн бұрын
At @<a href="#" class="seekto" data-time="2651">44:11</a> we need to add rightCircleRadius to find the rightCenter. It was a miss. Question link: devtools.tech/questions/s/how-to-detect-overlapping-circles-in-react-js-uber-frontend-interview-question---qid---ixSxPTedmz1CyVZSab1N Book session with us: topmate.io/yomeshgupta
@perfect-peace-steph
@perfect-peace-steph 14 сағат бұрын
Clearly explained solution Yomesh! very helpful. In addition to the observations you made at the end, we can also further expand the solution for the following: 1) If the color of the second circle has changed, it should be reset if we're drawing another circle at a distance. 2) The latest drawn circle should be on top position
@DevtoolsTech
@DevtoolsTech 7 сағат бұрын
Valid suggestions! Thanks for sharing. 🙏🏻
@subhamjena8854
@subhamjena8854 2 күн бұрын
Pretty good solution Yomesh! Have seen similar solutions on other interviews but this was pretty neatly explained and I really liked the code calrity. Just one more bug I noticed(correct me if wrong), The code was passing for the example cases but on <a href="#" class="seekto" data-time="2651">44:11</a> line-35,36 you didn't edit the rightCircleRadius for rightCenter so some cases where the circle sizes are not similar and the right circle is close to leftCircle and the rightRadius is smaller, then the those cases will fail, as the rightCenter will shift by √2*(leftRadius-rightRadius). The circles will be overlapping but the color condition won't be met.
@DevtoolsTech
@DevtoolsTech 2 күн бұрын
Hey, good catch! Just noticed. We should add rightCircleRadius to find the right Center! 🙏🏻
@shubhamthaker9380
@shubhamthaker9380 3 күн бұрын
a pretty awesome question with a nice approach followed , thankyou ! wish i could apply this much of logic in my journey working towards it.
@DevtoolsTech
@DevtoolsTech 3 күн бұрын
Thanks! It is a matter of time and practice! Keep at it. 🙌🏼
@903siddhu
@903siddhu 2 күн бұрын
Awesome bro
@ShadabMehdi
@ShadabMehdi 2 күн бұрын
BRO!!! What was that at <a href="#" class="seekto" data-time="2615">43:35</a>?? Did you seriously copy paste "L" ?? LMAO. Jokes aside, amazing video. Kudos.
@DevtoolsTech
@DevtoolsTech 2 күн бұрын
Hahaha I know. I forgot to edit it. It should be rightCircleRadius there. 😅
@luxurymusic1051
@luxurymusic1051 3 күн бұрын
even u coded it in good amount of time , with a pre solution in mind, how can this be done realtime within 30-40 min with edgecases
@DevtoolsTech
@DevtoolsTech 3 күн бұрын
It can't be done in 30-40 mins. Minimum 60 mins. Idea is not to attempt it fully but show the right approach.
@eshw23
@eshw23 11 сағат бұрын
What? Uber doesnt ask front end questions, dont they just do DSAs?
@DevtoolsTech
@DevtoolsTech 7 сағат бұрын
Uber asks both DSA and FE questions.
Solving Output Based JavaScript Interview Questions
28:17
Devtools Tech
Рет қаралды 4,4 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 14 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 22 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 63 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 695 М.
Problem Solving Techniques For Programming - How To Actually Get Good
27:06
Hacking Discord for $5000 Bounty
24:50
Mrgavyadha
Рет қаралды 33 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 492 М.
Discord Made The Coolest CSS Only Input Animation
17:48
Web Dev Simplified
Рет қаралды 50 М.
Angular v19 Developer Event
22:54
Angular
Рет қаралды 69 М.
Does Deno 2 really uncomplicate JavaScript?
8:55
Beyond Fireship
Рет қаралды 474 М.
This Next.js Feature is a Game Changer (Parallel Routes)
21:43
Jan Marshal
Рет қаралды 11 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 14 МЛН