Prisoner Hat PUZZLE || 10 Prisoners || RED & BLUE Hats

  Рет қаралды 365,242

LOGICALLY YOURS

LOGICALLY YOURS

Күн бұрын

Пікірлер: 380
@sriramsubramanian1291
@sriramsubramanian1291 7 жыл бұрын
Great! I never thought about this logic. I was thinking the prisoner can see through the policeman's specs mirror and answer the color. Lol.
@LOGICALLYYOURS
@LOGICALLYYOURS 7 жыл бұрын
Thanks Sriram :)
@lancerralseijoinedyourpart3633
@lancerralseijoinedyourpart3633 6 жыл бұрын
thats the easy mode xd
@ourcreations9765
@ourcreations9765 5 жыл бұрын
Super bro 😎
@ragunathjisankaran509
@ragunathjisankaran509 5 жыл бұрын
Awesome
@ragunathjisankaran509
@ragunathjisankaran509 5 жыл бұрын
But i think he is wearing cooling glass
@kratos952
@kratos952 6 жыл бұрын
IIT graduated prisoners
@warfyaa6143
@warfyaa6143 6 жыл бұрын
LOOL
@ws_zilch
@ws_zilch 5 жыл бұрын
LooooL i was thinking he same. XD
@ritvikkaran967
@ritvikkaran967 5 жыл бұрын
and another iit graduated find a loophole in metro kzbin.info/www/bejne/enTSaaJqpsR6hKM
@Rizwan1875
@Rizwan1875 4 жыл бұрын
Hahaha 🤣
@yourdad5471
@yourdad5471 3 жыл бұрын
Underrated bro🤣🤣🤣
@Raj-hm6qi
@Raj-hm6qi 5 жыл бұрын
We can solve this pblm like below also: 1. Last prisoner know the color of his front prisoner. So he loudly says either Red or blue.. If it is loudly said then same color his front prisoner also wearing.. that's the hint here.. 2. Next prisoner know his hat color from previous prisoner based on whether previous prisoner said his hat color loudly or not.. Now he know the hat color of his front prisoner.. if his hat color and his front prisoner hat color are same then he will say his hat color loudly otherwise he will say his hat color no loudly.. by this way next prisoner will understood his hat color.. 3. The same logic follows Only the first prisoner don't know his own hat color so he will loudly say his front prisoner hat color always..
@Sab_Moh_Maya_Hal
@Sab_Moh_Maya_Hal 5 жыл бұрын
great man
@shreyanray7624
@shreyanray7624 5 жыл бұрын
Good one
@sunilsigar3145
@sunilsigar3145 5 жыл бұрын
Better one
@bosskiang4238
@bosskiang4238 5 жыл бұрын
Nope, your method would require the passing of more than 1 bit of information (red/blue).It is mentioned in the video that hints such as melodies are not allowed, you are strictly allowed to solely answer either red/blue. I answered the same way as you did in Parallel Computation class this morning and got corrected.
@nassymcnute
@nassymcnute 5 жыл бұрын
I know one thing that's not right
@PuzzleAdda
@PuzzleAdda 5 жыл бұрын
My goal as a puzzle designer is to create a meaningful experience for the player, not just 'I solved it.'
@tonir299
@tonir299 Жыл бұрын
1. Simple solution During discussing the strategy prisoner 10 can tell everybody the color of his hat. 2. If 1. is not allowed (and even talking is not allowed at all) Prisoner 10 can form 2 groups of prisoners with the same color. Every prisoner can see if he is in the same group as the prisoner standing in front of him. So he knows his color. Prisoner 1 says the color as his group members.
@nileshmittal9971
@nileshmittal9971 7 жыл бұрын
I'm sad, no prisoners should be released like this... 😂
@timewalker2447
@timewalker2447 4 жыл бұрын
Underrated
@cool-aquarian
@cool-aquarian 3 жыл бұрын
I’m just glad that I am attempting this puzzle sitting at home and not one of those prisoners. Solution idea is good, but implementation is 10x difficult. One moron prisoner in the line, and everyone in front of him is doomed.
@touristtam
@touristtam 3 жыл бұрын
think nodes and throwing a pool if the nodes cannot verify themselves. Not actual prisoners.
@sorsocksfake
@sorsocksfake 2 жыл бұрын
Yes. This eventually led to the Goldenrock massacre in 2098 CE, where a foolish prisoner caused the Overlord to go to war with and exterminate Mexico. The world recoiled in horror, and henceforth, only logical mathematicians would be sent to jail. The subsequent shortage of logicians and mathematicians caused the re-election of Donald Trump, but fortunately he had calmed down a lot, having died 73 years prior, and he became such a good president that he has been re-elected ever since. #funfacts
@alabamaal225
@alabamaal225 3 жыл бұрын
The puzzle initially stated that the red/blue hats were placed randomly on the ten prisoners. However, it did not state that there were five red hats and five blue hats. (Indeed, the first illustration showed the prisoners wearing six blue and four red hats.) Conceivably, there could be eight blue and only two red hats, or any other combination of red and blue hats, including all the hats being either red or blue. Not knowing the number of red and blue hats in the total of hats would make logically solving the puzzle impossible.
@bnitinb
@bnitinb 2 жыл бұрын
You didn't read the puzzle, total prisoners are 10
@ktera
@ktera 2 жыл бұрын
watch the video again, folk
@curosity276
@curosity276 2 жыл бұрын
Yeah,I am also thinking the same , let's take 2 blue and 8 red hats consecutively. It fails in first attempt.
@kippe1221
@kippe1221 2 жыл бұрын
@@bnitinb you didnt understand what he wrote. Number of red and blue hats, not number of prisoners.
@1Pandaking
@1Pandaking Жыл бұрын
@@curosity276 It doesn't, the last prisoner calls out Even (Red), the second to last still sees even and calls out Blue thus correct, The third to last sees odd so calls out Red switching the Count from Even To Odd. Then each one in front of him sees the inverse of the count and Call out Red continuing down the line each one switching the count. Leading to all but the one in back has called out the right color and they are all free to go.
@brianaresendes966
@brianaresendes966 5 жыл бұрын
I was really hoping the guard was wearing sunglasses/glasses and they could use their reflections, but this is cool too.
@mayukh_
@mayukh_ 3 жыл бұрын
I hate this kind of answers.. If you guys are not serious, then don't answer.
@ppmnox
@ppmnox 3 жыл бұрын
I found the solution not only logical, but also compelling in the sense that I wondered if odd/even would play into the solution.
@TheDeepakkandpal
@TheDeepakkandpal 4 жыл бұрын
Calculations can save you from being hanged 😂 ~ hence proved - be with mathematics
@harnek.singh77
@harnek.singh77 5 жыл бұрын
If they were tht smart thy won't be in prison 🤣🤣
@urbanarkoverland
@urbanarkoverland 5 жыл бұрын
Wouldn’t. Oh the irony.
@curious_one1156
@curious_one1156 5 жыл бұрын
What if they are political prisoners ?
@Aditya-yn5lk
@Aditya-yn5lk 5 жыл бұрын
Even wikileaks owner is in prison...lol
@CardCaptor32584
@CardCaptor32584 3 жыл бұрын
Your guard is a nice guy. When my friend told me this riddle, he let the last prisoner be the noble sacrifice.
@hypercubemaster2729
@hypercubemaster2729 4 жыл бұрын
I got it after leaving it alone for a day, lol. Very awesome line of logic and puzzle! Subscribed!
@merlinsheeba244
@merlinsheeba244 8 жыл бұрын
Mind blowing logic. Thanks for clear explaination.
@LOGICALLYYOURS
@LOGICALLYYOURS 8 жыл бұрын
Thanks Sheeba for the appreciation. I hope you'd like other puzzles too :)
@jackpigeon2263
@jackpigeon2263 3 жыл бұрын
Wonderful logic Amar ji. Keep rocking with questions like this.
@Quickeditor134
@Quickeditor134 3 жыл бұрын
I have easier approach to this : Last prisoner will tell second last prisoners hat color, if third last prisoner's hat color is equal to the second last prisoner's hat color then second last prisoner will tell his own hat color in louder voice otherwise in lower voice. From this third last prisoner will conclude his own hat color
@vichu8206
@vichu8206 3 жыл бұрын
This dont need any calculations. Yes you are right
@mayukh_
@mayukh_ 3 жыл бұрын
How does last prisoner would know his hat color?
@Quickeditor134
@Quickeditor134 3 жыл бұрын
@@mayukh_ last prisoner can see second last prisoner's hat color
@jlugger
@jlugger 3 жыл бұрын
I got something similar and far easier than the original solution. Each prisoner says his hat color in either a loud voice or a soft voice. If his hat is the same as the prisoner in front of him he is soft and if it is different he is loud. EX: Prisoner sees P9 hat is blue. P10 guesses his own hat is blue so he says "blue" in a soft voice. P9 then knows his hat is blue. P9 sees P8 hat is red so he states "BLUE" in a loud voice. P8 knows his hat is different. This way 9-1 are correct and even if 10 was incorrect they all go free.
@canale2303
@canale2303 3 жыл бұрын
I'd have answered differently. Prisoner 10 always says the hat's color of the prisoner 9. Prisoner 9 knows his hat's color. The agreed strategy is that each prisoner looks at the color of the prisoner in front of him and in case it is blu he SHOUTS his hat's color, otherwise it says it normally. So each prisoner knows his own hat's color just because of his partner's voice volume.
@bm-ub6zc
@bm-ub6zc 2 жыл бұрын
yeah i have the almost same solution (just with high pitched or low pitched voice, and with "next one has same/different color"), but in principle it's the same solution. the parity stuff is too difficult to figure out or memorize.
@mrgyani
@mrgyani 2 жыл бұрын
You cannot give any kind of signal, be it with volume or whatever.
@maxkashyap3810
@maxkashyap3810 3 жыл бұрын
Awesome Problem. Upon this logic I sat down to program this approach. Really fascinated.
@hyperfairy7779
@hyperfairy7779 7 жыл бұрын
do they get to keep the hats?
@lancerralseijoinedyourpart3633
@lancerralseijoinedyourpart3633 6 жыл бұрын
i hope so xd
@rohitpawar4096
@rohitpawar4096 5 жыл бұрын
Noo
@timewalker2447
@timewalker2447 4 жыл бұрын
Tf
@poornimanagaraju8534
@poornimanagaraju8534 7 жыл бұрын
Hey Amar..Awesome man!..Your passion towards puzzle has grown so much and it's spreading now!..Good to see you on youtube!..Nice explaination!
@LOGICALLYYOURS
@LOGICALLYYOURS 7 жыл бұрын
Thanks Poornima... solved a lot.. now its time to teach to the world :) :) :P Must subscribe :)
@matitiudeforever8155
@matitiudeforever8155 6 жыл бұрын
that was the best riddle i've ever come across
@SS-cr8hb
@SS-cr8hb 5 жыл бұрын
Very nice puzzle sir .According to me if the 10th prisoner speaks the colour of hat which is more in number among the 9(odd no.) hats infront of him, then also each prisoner would know his hat colour keeping in mind possible combinations of hats- 5,4 6,3 ....
@LOGICALLYYOURS
@LOGICALLYYOURS 5 жыл бұрын
Dear SS.... nice to see that you tried to come up with a different approach(max), but it has limitation.... assume that only the first prisoner(front) and 9th prisoner are wearing Red Hat. Now, the prisoner 10 will call out "BLUE" (because they are more in number). But what would the 9th prisoner call out ?? For him still, majority is BLUE, but he can't decide what he is wearing. So, eventually an Even-Odd approach can get at least 9 correct answers.
@SS-cr8hb
@SS-cr8hb 5 жыл бұрын
You are right sir. Thank you so much for the explanation.
@fomori2
@fomori2 3 жыл бұрын
Took about 3 minutes to figure out that the last guy in line will say "blue" if he sees an even number of blue hats, and "red" if he see an odd number of blue hats. This alerts the prisoners what the starting target count of hats is, even or odd. Each prisoner will count the number of blue hats and will know if his hat is blue, if the number of blue hats he sees is the opposite of the odd/even target count, or red, if the number of blue hats matches the odd/even target count. Whenever someone calls out blue the odd/even count target switches to the other. Zero is considered even.
@kidsgameslearning
@kidsgameslearning 3 жыл бұрын
Nice. This logic will Work only if the total number of prisoners are even. If it is odd, difficult to solve. Because last prisoner can saw both Color ok odd number or even numbers. So difficult to give the clue to others.
@patrickjinks
@patrickjinks 6 жыл бұрын
I thought shout your own colour if the person in front is wearing a red hat and whisper it if they're wearing a blue one but only after listening to the answer, even though there's nothing against doing that, I feel I've let myself down
@GurpreetKaur-lp6cj
@GurpreetKaur-lp6cj 6 жыл бұрын
Patrick Jinks yeah I thought that too
@rgupta74211
@rgupta74211 3 жыл бұрын
Same
@basiliobastardo255
@basiliobastardo255 3 жыл бұрын
if the back prisoner can see in front and can pass message, why don't he just say the color of hat in front of him as a message?
@qc1okay
@qc1okay Жыл бұрын
Mr. Ammar, surprised you didn't first solve a case of just 4 or 5 prisoners, like you often do to show proof of concept, for viewers to catch on with. And I think if my life were on the line, I'd just be doing simple counting, not thinking about the concept of parity. "OK, so the first guy said "Red", so the other nine of us in front of him have an even number of red hats in total, and I see two reds in front of me, so I just have to listen to how many times the guys behind me say 'Red'." Then when it gets to be his turn, he thinks, "OK, so I've heard only one guy behind me say 'Red', so with one red behind me and two in front of me, that's three reds, so mine has to be red for there to be an even number of reds in front of the first guy. RED!"
@ShanmukhaPulavarthy
@ShanmukhaPulavarthy Жыл бұрын
Here's how the logic works: If there are an even number of red hats in front of the counter, the guessers can deduce the color of their hat by counting the number of red hats they see. If the count of red hats among the first 9 prisoners (excluding the counter) is even, then the color of their own hat must be blue. If it's odd, their own hat must be red. If there are an odd number of red hats in front of the counter, the guessers can similarly deduce the color of their hat. This strategy ensures that the counter can make a correct guess based on the parity (odd or even) of the red hats in front of him, and the guessers can correctly infer their hat color based on the counter's response. This way, at least 9 prisoners will survive, and they will all be released.
@AmritEdits13
@AmritEdits13 4 жыл бұрын
Your riddles are best than others It has a logic like your channels name
@uberfu
@uberfu 3 жыл бұрын
There's a flaw to the puzzle -- the puzzle assumes that the jailor will go in order of prisoners from back to front. Which is the only way this puzzle works. If the jailor calls out random prisoners or starts fromt eh front the entire puzzle fails.
@YEC999
@YEC999 4 жыл бұрын
cool logic nicely explained - came close but what i was missing the trick with the odd and even...
@komalagarwal9830
@komalagarwal9830 6 жыл бұрын
Superb puzzle...n superb srategy...out of box situation.. awesome
@NK-fx1qs
@NK-fx1qs 3 жыл бұрын
nice thanks! these are fun to watch.
@mohammedzubair8618
@mohammedzubair8618 7 жыл бұрын
very good logic. Good way of presenting. plz continue the same
@LOGICALLYYOURS
@LOGICALLYYOURS 7 жыл бұрын
Thanks Zubair :)
@saj157
@saj157 7 жыл бұрын
Awesome!! I finally got it!! yay!!:) you’re genius.
@LOGICALLYYOURS
@LOGICALLYYOURS 7 жыл бұрын
Thank You :)
@mcger5624
@mcger5624 Жыл бұрын
great - well done mate
@mrgyani
@mrgyani 2 жыл бұрын
Wow, this was brilliant.
@swedishpsychopath8795
@swedishpsychopath8795 Жыл бұрын
Stupid puzzle: MY strategy would be: The last person tells the color the person in front of him has. The second to last will hear what color HE has and repeat his color. BUT: If he sees the next person has the same color then he will say the color name quickly. If the hext person has a different color then he will say his own color slowly. Every person will then know what color they have. Or they could have different intonation of the words. Starting high and going down for same color, and from low to high for different color.
@vineetshetty9519
@vineetshetty9519 3 жыл бұрын
If 9 prisoner give answers right then all the 10 Prisoner are released Hence there is Simple formula that 10th prisoner look at what 9th prisoner hat colour is and Say that...and 9th prisoner will look at 8th prisoner hat colour and say...and so far and so on...here if 10th Prisoner give wrong answer then remaining 9 are giving correct answer... Please correct me if i am wrong.
@Mannprajapati619
@Mannprajapati619 3 жыл бұрын
Yes you're wrong! Suppose tenth prisoner say 9th prisoner's cap color correctly, let say blue, then 9th prisoner will say his hat color correctly that is blue. but then how will 8th prisoner give his hat color correctly? what if he wore red color cap? hope you understand
@index_s580
@index_s580 3 жыл бұрын
You gave a key tip to solving by precisely describing 10th person position.
@bm-ub6zc
@bm-ub6zc 2 жыл бұрын
I have a much simpler solution: Prisoner 10: Says whatever color in front of him. Prisoner 9: Says the color said by prisoner 10, in a low pitched voice if the next one has the same color, and in a high pitched voice if the next one has a different color. And so on.
@rajancherian4259
@rajancherian4259 3 жыл бұрын
What if there are 0 red hats? Will it be seen as an even count? I think that calling out the color with an odd number of appearances is better. Cos even if red is 0, there will be 9 blue hats and vice versa.
@joshmays7058
@joshmays7058 6 жыл бұрын
No way you get ten guys to do that correctly the first time!
@sorsocksfake
@sorsocksfake 2 жыл бұрын
Prisoner 10 will count whether the red hats are even or odd. If even, he says blue; if odd, he says red. Thus the other prisoners know whether the first 9 *including them* are an odd or even number. They can also see the prisoners in front of them, and have heard the ones behind them. So they know whether the first 9 *except themselves* is an odd or even number. If the two match, then their own hat must be blue. If they do not match, it's because their own hat is red. They speak accordingly.
@charlesbromberick4247
@charlesbromberick4247 3 жыл бұрын
Sounds like Schria Law to me. Thanks for the puzzles - i really like them.
@madhesh18
@madhesh18 4 жыл бұрын
Terrific strategy
@pochyena555
@pochyena555 6 жыл бұрын
I would not fancy the situation where there are only blue hats in front of him so the first prisoner would not know what to say (RED/BLUE) (Ofc. 0 is even but there are people who dont know that). Thanks for your content, great job ;-)
@LOGICALLYYOURS
@LOGICALLYYOURS 6 жыл бұрын
Thanks Pochyena :)
@bosskiang4238
@bosskiang4238 5 жыл бұрын
He/She can argue that since there are no red hats in front of him/her, his/her hat can't be red because red indicates even parity and if there is 0 red hat in front of me, his/hers can't be a red hat since that would make it odd.
@viplavpatil5516
@viplavpatil5516 3 жыл бұрын
1)even red = red;2)odd red =blue ===>Generalization =>Parity Equal = Blue;Parity not equal = Red
@V7B817
@V7B817 2 жыл бұрын
Parity Equal= one colour, parity not equal= other colour , that's more like it
@shankaruv6367
@shankaruv6367 5 жыл бұрын
Vert simple . Every one knows before colour of before man . So they give clue for next man. If I am there I will say 'red colour sir' means he had same colour or' red colour' means different. U can also use voice soft and hard
@subhajitpal2407
@subhajitpal2407 3 жыл бұрын
Is this puzzle's logic actually comes in any real life implementation like in computer science concepts?
@mdmubashir743
@mdmubashir743 8 жыл бұрын
amazing dude.....too good..
@LaughterPlanet-mu1yp
@LaughterPlanet-mu1yp Жыл бұрын
There is another simplest way, prisonor 10 will say colour of 9th hat... Now 9th know the color of his hat, so if the color of his next is same as him he will answer his hat color within 1 second or if the color of his next hat is different he will answer his hat colour in 5 seconds.. So this 1 or 5 second time interwal will give hint to the next prisnor and so on... As we know that 10th prisonor will be release even if he is incorrect so in this way all of them will be released.
@priyanshuchaurasiya6184
@priyanshuchaurasiya6184 4 жыл бұрын
Very typicall puzzle but also an exellent solution!
@Mark-qg8hm
@Mark-qg8hm 3 жыл бұрын
They should have strategies how to bum rush the jailer and overpower him, since there is just one guy.
@dy4e02
@dy4e02 6 жыл бұрын
The only way i up to that he should says the number of red he sees, And saying odd or even let the other hit the number while been asked, great job
@Godél-p4e
@Godél-p4e 4 жыл бұрын
Great video
@dreamstory979
@dreamstory979 3 жыл бұрын
Amar I have question if there are only 2 red cap then how it possible
@aryanrawat5961
@aryanrawat5961 2 жыл бұрын
Simplest tareeka: peeche wala apne aage wale ko bata de usne kaunsi pehni hai. Bas ho jaayega sab
@piedpiper3314
@piedpiper3314 3 жыл бұрын
Why can't 10 simply tell 9 color of his hat...9 tell 8 color of his and so on... Did I miss something in question pls explain anyone
@TB-up4xi
@TB-up4xi 2 жыл бұрын
You must only answer red or blue - and it must be the colour of your own hat - 10 can say red or blue signalling to 9 the colour of 9's hat but 9 must only answer the colour of their own hat anything else any everyone dies.
@V7B817
@V7B817 2 жыл бұрын
Just imagine prisoners wearing the blue/red hats alternatively
@tombratcher6938
@tombratcher6938 3 жыл бұрын
I remember getting told this and thinking... " parity?... yep, works"
@ajaykumargupta8504
@ajaykumargupta8504 4 жыл бұрын
Awesome 👌
@abcdefgabcdefg3017
@abcdefgabcdefg3017 Жыл бұрын
Why should they even do that. Except the last one , everyone can know their colour from the previous person . Only the last person has to apply the given strategy to guess his own colour.
@shubham2927
@shubham2927 2 жыл бұрын
wONDERFUL eXPLANATION sER
@vikashtiwari5505
@vikashtiwari5505 6 жыл бұрын
Brilliant
@LOGICALLYYOURS
@LOGICALLYYOURS 6 жыл бұрын
Thanks Vikash :)
@ammararfeen5644
@ammararfeen5644 5 жыл бұрын
My Naam is also ammar and your logic so clear and high I appreciate you for giving this knowledgful videos
@LOGICALLYYOURS
@LOGICALLYYOURS 5 жыл бұрын
Good to know that ... Ammar :)
@V7B817
@V7B817 2 жыл бұрын
Finally got the answer by odd/even logic 10th person would have said that I will told you the colour of the hat which is in odd number
@sharukhshaik7476
@sharukhshaik7476 5 жыл бұрын
As a digital design engineer, I have an idea to design a digital circuit using XOR gates, a Comparator, and Multiplexer for this problem 😉
@mythologygeek8888
@mythologygeek8888 4 жыл бұрын
Can u share??
@santhakumar9596
@santhakumar9596 6 жыл бұрын
I have another solution to this, "if prisoner 10 sees blue hat on prisioner 9's head then he has to say blue in low voice and prisioner 9 will say blue in low voice if he also sees blue hat on prisioner 8's head or else he has to say blue in loud voice to indicate prisioner 8 that he has red hat on his head". Here low voice is used for blue and loud is for red. I think this will work.
@shankaruv6367
@shankaruv6367 5 жыл бұрын
Same way I thought
@michaelbauers8800
@michaelbauers8800 4 жыл бұрын
I love hat puzzles
@hsingh-13
@hsingh-13 3 жыл бұрын
Wow! 👍
@moonyuen0505
@moonyuen0505 4 жыл бұрын
There is an additional question : if the police using 3 kinds of colors, can the prisoners escape?
@nicehandsomefruit
@nicehandsomefruit 2 жыл бұрын
probably not, since a number's parody only comes in 2 values
@alexandredesouza3692
@alexandredesouza3692 4 ай бұрын
This is how I get ready for prison life.
@nenaramchoudhary998
@nenaramchoudhary998 4 жыл бұрын
If they can build such a strategy, then how they caught and put up in jail....
@abridgetool
@abridgetool 4 жыл бұрын
They didn't commit the crime in the group. United they are intelligent, divided they are dumb.
@balajik8688
@balajik8688 3 жыл бұрын
Y do they releasing the prisoners so freely..it's not even Gandhi jayanthi now 😂
@YatharthSharma
@YatharthSharma 5 жыл бұрын
Kaaliya from SHOLE movie after watching this video "bhaiya ye trick hame bhi bta dete us bhosdiwale sardar gabbar singh se ham bhi bach jate" 😄😄😄
@aldenasuemia
@aldenasuemia 3 жыл бұрын
Wow this is what I call genius.
@akhtar_Alee
@akhtar_Alee 6 жыл бұрын
I will see in reflexion of jailor's glasses
@anushams9828
@anushams9828 6 жыл бұрын
Nice one🙂
@vadermike7772
@vadermike7772 3 жыл бұрын
Easier solution, that doesn't require math at all. The rules dont state that you cant touch the shoulder of the person in front of you. You simply agree beforehand that the person behind you touches your left shoulder if your hat is red, or your right shoulder if blue.
@haribattula5187
@haribattula5187 4 жыл бұрын
Do the front prisoner listens to answer told by back prisoner..and if he listens what if all hats are blue or red and only one blue or one black
@sakthi600004
@sakthi600004 4 жыл бұрын
Wat if all hats are blue?? Creator pls answer
@mendelsonja
@mendelsonja 4 жыл бұрын
Then the guy in the back sees an odd number and so he'd call out blue. The guy in front of him sees an even number so he knows the parity changed so he'd also answer blue. The person in front of him sees an odd number so he knows the parity changed and answers blue. And so on and so forth.
@alencarfardin6650
@alencarfardin6650 5 жыл бұрын
Wait, the prisoners 1 to 4 are just kids...
@---4690
@---4690 4 жыл бұрын
Lol 😂😂
@maplelife9222
@maplelife9222 5 жыл бұрын
Rather it should be like - they should have planned saying to all that whoever stands the last has to shout the color of hat of the person in front of him.
@GaryLuKOTH
@GaryLuKOTH 5 жыл бұрын
KARAN AHUJA If it were you taking this test, you have a 50/50 chance of being executed.
@tw3f4tes52
@tw3f4tes52 5 жыл бұрын
That’ll only bring the amount of people getting it right to about 75% (50% would get their answer from the previous guy, 50% would have a 50/50 of getting it right). This way guaranties the survival of everyone.
@GaryLuKOTH
@GaryLuKOTH 5 жыл бұрын
TW3F4TES5 His strategy only guarantees that one person gets right. After the guy in the back tells the next guy what his color is, the next guy would get it right but the rest of them have no information of their hat color.
@tw3f4tes52
@tw3f4tes52 5 жыл бұрын
Gary Lu Productions I assume he meant that the next guy after that (after the first 2) will have to say the colour of the next guy again. Then that guy says the colour he was told, then the next guy says the color of the guy in front and so on. So every other person tells the next guy his colour, meaning 50% will be told their colour and have a 100% chance of survival, while the other 50% will have a 50/50 chance of getting their colour right, assuming the distribution of hats is completely random.
@GaryLuKOTH
@GaryLuKOTH 5 жыл бұрын
TW3F4TES5 In that case, you would be right. Either way though, it is not a strategy that guarantees success.
@prashantkumargupta4996
@prashantkumargupta4996 6 жыл бұрын
elegant explanation.
@LOGICALLYYOURS
@LOGICALLYYOURS 6 жыл бұрын
Thanks Prashant :)
@whatdoinamethischannel9749
@whatdoinamethischannel9749 3 жыл бұрын
Actually my solution is in morse code but for every hat red would be represented as ". (Dot)" And blue represented as "_ (Dash)" but the last prisoner would do 1 long click for blue and two short clicks for red starting from prisoner 1-9 therefore even if the last prisoner gets his hat colour wrong the others would know exactly which hat they were wearing But then I realized its an indication and it wouldn't work
@ottovaughnjr.9282
@ottovaughnjr.9282 7 жыл бұрын
What type of jailor is that...?
@pranshulgupta9465
@pranshulgupta9465 3 жыл бұрын
you have not explained about case if last one see the odd no. of red hat and say blue
@pranshulgupta9465
@pranshulgupta9465 3 жыл бұрын
i got it
@mikael900
@mikael900 6 жыл бұрын
I got thrown off because you said only the last prisoner would be allowed to answer incorrectly but the first one would be hanged if he was wrong. Then at the end you said 9/10 were right so they were all let go.
@christianbolt5761
@christianbolt5761 4 жыл бұрын
You can also do it with multiple colors. Try 10 colors
@unbrokenriven1455
@unbrokenriven1455 3 жыл бұрын
so how do you solve for the same problem but there are 3 different color hats?
@CarlEmilKjellstrand
@CarlEmilKjellstrand 3 жыл бұрын
Checksums are the best :)
@thedbznerd9565
@thedbznerd9565 6 жыл бұрын
Did you steal this from Ted?
@rajivpokharel88
@rajivpokharel88 3 жыл бұрын
didnt understand one bit...but enjoyed it anyways...xD
@safiurrehman8079
@safiurrehman8079 4 жыл бұрын
Great and I think that the prisoner behind the prisoner touches his shoulder If he touch the shoulder the prisoner has red hat if he doesn't touch the shoulder the hat is blue if this is not allowed the prisoner can simply touch other prisoner leg by his foot or shoe slightly
@bishnunepali3018
@bishnunepali3018 4 жыл бұрын
nice...
@swapniljain2464
@swapniljain2464 5 жыл бұрын
Awesome
@garrethutchington1663
@garrethutchington1663 5 жыл бұрын
Couldn't the last prisoner just count all the hats and deduce what his color is based on that?
@GaryLuKOTH
@GaryLuKOTH 5 жыл бұрын
No because you do not know how many red or blue hats there are.
@murugankaruppaiah9537
@murugankaruppaiah9537 5 жыл бұрын
I think they are studied in oxford university
@abhinavgupta7930
@abhinavgupta7930 6 жыл бұрын
could not each prisoner just see their respective cap colours in jailors glasses.lol.XD
Google Interview Riddle - 3 Friends Bike and Walk || Logic and Math Puzzle
8:47
Can you solve the prisoner random hats puzzle?
6:36
MindYourDecisions
Рет қаралды 241 М.
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН
The Lost World: Living Room Edition
0:46
Daniel LaBelle
Рет қаралды 27 МЛН
The 4 Most Common Interview Puzzles (With Solutions)
8:07
LOGICALLY YOURS
Рет қаралды 23 М.
Let's Solve the Interview Puzzle that Baffled Me
5:29
Dr Sean
Рет қаралды 55 М.
Johnny Carson Memories: The Hat Puzzle
12:42
HaveSomeFun3344
Рет қаралды 650 М.
100 Doors Puzzle || Hard Puzzle for Genius minds
6:30
LOGICALLY YOURS
Рет қаралды 258 М.
Can you solve the prisoner hat riddle? - Alex Gendler
4:35
TED-Ed
Рет қаралды 31 МЛН
The Riddle That Seems Impossible Even If You Know The Answer
17:45
Veritasium
Рет қаралды 15 МЛН
Can You Solve The 4 Hats Logic Puzzle?
4:39
MindYourDecisions
Рет қаралды 1 МЛН
Can you solve Microsoft's bridge and torch riddle?
13:46
MindYourDecisions
Рет қаралды 188 М.
Can you solve the wizard standoff riddle? - Dan Finkel
5:26
TED-Ed
Рет қаралды 13 МЛН