Can You Solve This Google Interview Question? | Puzzles for Software Engineers Part-8

Can You Solve This Google Interview Question? | Puzzles for Software Engineers Part-8

GeeksforGeeks

2 месяца назад

284,235 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@moumitachatterjee5920
@moumitachatterjee5920 - 30.12.2024 09:27

My bald uncle be like:

Ответить
@sureshdhanrajmudaliar6603
@sureshdhanrajmudaliar6603 - 27.12.2024 22:26

since 1.23Cr > 2 * 2lac for every hair count there will be at least 2 people

Ответить
@niveditagupta2584
@niveditagupta2584 - 24.12.2024 23:14

Why only 200001 buckets??

Ответить
@sachinparanjape5781
@sachinparanjape5781 - 22.12.2024 14:08

Shouldn't it be atleast 2 people have the same number of hair

Ответить
@Sadaf_gazala
@Sadaf_gazala - 14.12.2024 10:46

The main thing you might miss is that the Pigeonhole Principle applies to *AT LEAST ONE PAIR*, not necessarilyyy to every pair. So, in any case you consider, for example:

1. One person has a hair count of 1, and the rest all have a hair count of 0.
Here, there are two groups of hair counts: `0` and `1`.



(((This Principle ensures that at least one pair exists in any group))


In this case, for people with a hair count of `0`, at least 2 people share the same count. For the group with a hair count of `1`, there is only one person, so it doesn’t apply there.

Thus, the Pprinciple is valid for every situationn*, ensuring **at least one pair* will share the samee count.





However however however, there is a mistake in the question. It's been said "ONLY TWO," but the answer is about "AT LEAST TWO." And These two are different in meaning.

Ответить
@kiranreigns8355
@kiranreigns8355 - 12.12.2024 06:28

Could you make content in English

Ответить
@sankararsha
@sankararsha - 04.12.2024 17:33

I request you to kindly speak in English

Ответить
@adithyakrishna2060
@adithyakrishna2060 - 03.12.2024 16:42

Why ur face is looking shy 😊 making u more beautiful 🤩

Ответить
@prachijain8672
@prachijain8672 - 28.11.2024 13:13

Bangalore mein sirf 2 log same baal Wale nhi ho sakte. According to pigeon hole principle, Bangalore mein at least 2 log hai jinke same number of baal hain

Ответить
@pawantayde4420
@pawantayde4420 - 13.11.2024 12:45

Abhishek upmanyu's father be like: ans nhi diya to daant me kide lag jayege, madam ki tarah 😂

Ответить
@Adityee-raBtiH
@Adityee-raBtiH - 12.11.2024 15:24

It's totally confusing....😬
what do you want to say....?
Need more explanation...🤥

Ответить
@abhishekarunabh5555
@abhishekarunabh5555 - 11.11.2024 21:58

I successfully didn't understand anything 😅

Ответить
@naseemaakther705
@naseemaakther705 - 11.11.2024 15:55

Le me: who didn't understand a single word😂😅

Ответить
@Priyankahs282
@Priyankahs282 - 11.11.2024 15:24

Kya kya kyaaa😢🤔🤔🤔

Ответить
@samifjs34
@samifjs34 - 11.11.2024 09:06

Hehe IQ videos ka koi matlab nahi jab samjh hi na aaye

Ответить
@samifjs34
@samifjs34 - 11.11.2024 09:05

Me 2

Ответить
@samifjs34
@samifjs34 - 11.11.2024 09:05

But how ??how you know which people you have to put in which Bin ???0 to 2lqkh bin means what ? 5th number bin means a person with 5 hairs on it how it is that possible?

Ответить
@ronakjain6377
@ronakjain6377 - 07.11.2024 16:02

Why to hurry to post short before verifying ? Simple problem but seems like they didn't care to check the answer.

Ответить
@ronakjain6377
@ronakjain6377 - 07.11.2024 16:00

Har bucket mein atleast 2 ya atleast one bucket mein >= 2 ?

Ответить
@AnkitaLahkar-qm1oh
@AnkitaLahkar-qm1oh - 06.11.2024 13:37

Lekin app 100%pagal hain😂😂

Ответить
@HimanshuSingh-id4xl
@HimanshuSingh-id4xl - 05.11.2024 00:52

Not explained correctly

Ответить
@SajanModhvadiya-x5f
@SajanModhvadiya-x5f - 04.11.2024 10:41

Her name?

Ответить
@sumanjangid1250
@sumanjangid1250 - 03.11.2024 20:45

Please review your video, thats not what the pigeonhole principle is, it says atleast one of the the bins must have more than one people not atleast 2 in each bin.Please get that corrected

Ответить
@mmm.403
@mmm.403 - 02.11.2024 06:29

Samaj nhi aaya, pr dekh kr acha lga 🤩

Ответить
@hussainmulla3763
@hussainmulla3763 - 02.11.2024 05:32

No

Ответить
@amanraibole
@amanraibole - 01.11.2024 18:53

Correct answer: 0 banglore main stressed programmers rehte hai unke sir pe maximum baal ho hi nhi sakte 😂😂😂

Ответить
@amanraibole
@amanraibole - 01.11.2024 18:52

Logic left the google time to switch to duck duck go 😢😢

Ответить
@SS_ASSASSIN
@SS_ASSASSIN - 31.10.2024 15:55

Im bloody obssed with her talking tone and looks shes pretty ❤❤

Ответить
@vidhyarthilakshiya888
@vidhyarthilakshiya888 - 31.10.2024 09:11

😮🤔☹️

Ответить
@kar-tikverma
@kar-tikverma - 30.10.2024 22:42

no, not 2 people will have same number of hair. the answer is atleast 61 people will have same no. of hair.

1.23 crore/2lakh = 61.5

Ответить
@KomalSilawat-uc6gm
@KomalSilawat-uc6gm - 27.10.2024 15:34

l know banglor people has hair fol 😅

Ответить
@divyanshsingh5130
@divyanshsingh5130 - 27.10.2024 10:44

Jo bol rahi hai usko v samajh nhi aya hoga buss script padh rahi hai 😂

Ответить
@shadab9961
@shadab9961 - 26.10.2024 22:28

Koi ma'am ka name to batao

Ответить
@mesurajyadav
@mesurajyadav - 26.10.2024 07:35

My God watched twice, didn't even understand the question.

Ответить
@navdi6417
@navdi6417 - 25.10.2024 18:38

Ganje the dono

Ответить
@Aambaram2
@Aambaram2 - 24.10.2024 18:51

Baal kon ginega😂😂😂😂😅😅😅

Ответить
@4umeetu
@4umeetu - 24.10.2024 14:49

Sar k upar se gaya 😅

Ответить
@beastlyy858
@beastlyy858 - 22.10.2024 08:21

😢

Ответить
@aadityasohani9568
@aadityasohani9568 - 21.10.2024 20:40

As a few more comments, the correction here should be that there must be atleast 2 people with the same number of hairs.

Ответить
@ankushgarg5973
@ankushgarg5973 - 20.10.2024 20:34

Meanwhile whole banglore being bald😅
Ahhhh..I cant even see 1 hair

Ответить
@Tribalchief69690
@Tribalchief69690 - 20.10.2024 20:04

Ok but aap itni pyari hain😊❤❤

Ответить
@nilimabaruah2097
@nilimabaruah2097 - 20.10.2024 14:52

What's the question ? 😂

Ответить
@ethicalhacker95
@ethicalhacker95 - 20.10.2024 13:56

This is when Google does not want to hire you

Ответить
@PinkyKushalpatiyat
@PinkyKushalpatiyat - 20.10.2024 11:45

Bahut achha likin kuch samaj mai nai aaya 😂😂😂😂😂

Ответить
@Iamgrooooooooooot
@Iamgrooooooooooot - 20.10.2024 11:42

Who didn't understood both question and answer 😂😅

Ответить
@anandjethwani4679
@anandjethwani4679 - 19.10.2024 21:47

Bakwaas

Ответить
@LataShukla-u9x
@LataShukla-u9x - 19.10.2024 18:53

I think I am fool because I didn't understand the question and also didn't understand answer

Ответить
@ShatrudhanTiwari-f1y
@ShatrudhanTiwari-f1y - 19.10.2024 11:35

My Maths Is week

Ответить
@mukulkhanna1393
@mukulkhanna1393 - 19.10.2024 06:16

Ganje having same hair i.e. no hair

Ответить
@BhavishyaRNTudaipur
@BhavishyaRNTudaipur - 18.10.2024 17:45

Now i can do job in google while doing mbbs 💀

Ответить