Linked List Random Node | Leetcode 382| Live coding session 🔥🔥🔥 | | Reservoir sampling Algorithm 💯💯

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

Coding Decoded

Coding Decoded

Күн бұрын

Пікірлер: 16
@adamk3486
@adamk3486 2 жыл бұрын
Hey man just wanted to tell you how amazing your videos are. Your consistency is amazing and looking over your videos daily helped me land a job at Meta. Keep up the good work.
@CodeWithSunchitDudeja
@CodeWithSunchitDudeja 2 жыл бұрын
Great news buddy, meta is 😍..... Let us connect over linkedin: www.linkedin.com/in/coding-decoded-6809a3215/
@jay-rathod-01
@jay-rathod-01 2 жыл бұрын
@@CodeWithSunchitDudeja G.O.A.T
@krateskim4169
@krateskim4169 Жыл бұрын
Awesome explanation bro
@SoniaStalance
@SoniaStalance Жыл бұрын
Thanks for making this so simple :)
@vinayakbajpeyi931
@vinayakbajpeyi931 Жыл бұрын
Great explanation!
@CodeWithSunchitDudeja
@CodeWithSunchitDudeja Жыл бұрын
Glad you think so!
@arjuntemura8473
@arjuntemura8473 Жыл бұрын
Amazing Explanation! Thanks a lot.
@CodeWithSunchitDudeja
@CodeWithSunchitDudeja Жыл бұрын
Glad it was helpful!
@bloody9162
@bloody9162 2 жыл бұрын
Loved the explanation, however would like to say that an easier way to think about it could be - Consider 3 nodes, now if we want to ascertain that probability of any of the 3 nodes to be selected is 1/3 we can compute the probability of the 3 to be selected like you explained which would be 1/3 next we can say for 1 and 2 the probability to be selected would be when 1 is selected (1/2) and 3 is not selected (2/3) same for 2.
@CodeWithSunchitDudeja
@CodeWithSunchitDudeja 2 жыл бұрын
Awesome
@chinmayswaroopsaini7890
@chinmayswaroopsaini7890 Жыл бұрын
This saved so much confusion for me. I think author explained this part in wrong words.
@vinayaksingh8670
@vinayaksingh8670 2 жыл бұрын
Totally misunderstood today's question.. will rework on it . 🔥🔥 Thanks for the video
@LegitGamer2345
@LegitGamer2345 2 жыл бұрын
Nice explanation !!
@ganeshckm5246
@ganeshckm5246 2 жыл бұрын
Explanation level - Diamond
@popogobo9914
@popogobo9914 2 жыл бұрын
Why can't we return only 1st value (head->val) as its chances is equal for getting selected,Why to traverse?
RANDOM PICK INDEX | LEETCODE # 398 | PYTHON RESERVOIR SAMPLING
14:56
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
HARD_MMA
Рет қаралды 3,3 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 36 МЛН
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 16 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,5 МЛН
Linked List Random Node | Live Coding with Explanation | Leetcode - 382
7:49
Reservoir Sampling | USA Crash Course batch | LIVE session
46:03
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 836 М.
Reservoir Sampling Algorithm
12:41
Coding Interview Prep
Рет қаралды 10 М.
Java Collections Explained (with examples)
10:39
Visual Computer Science
Рет қаралды 95 М.
Reservoir Sampling
12:34
NPTEL-NOC IITM
Рет қаралды 881
Complete C++ STL in 1 Video | Time Complexity and Notes
1:07:37
take U forward
Рет қаралды 1,1 МЛН
⚡️NEWS | RUBLE COLLAPSE | STRIKE ON CRIMEA | PUTIN IN KAZAKHSTAN
10:34
Ходорковский LIVE
Рет қаралды 193 М.
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
HARD_MMA
Рет қаралды 3,3 МЛН