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

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024
  • A jailer lines up 10 prisoners facing one direction in the increasing height order and randomly places either red hat or blue hat on each prisoner's head. A prisoner can see the color of hats of the prisoners in front of him, but not his own or of the prisoners behind him.
    Starting from the last prisoner in the line, the jailer is going to ask the prisoner the color of his own hat.
    For correct answer, he will be saved, else he will be executed.
    The Same Procedure will be repeated for all the prisoners.
    The jailer announces that, if at least 9 prisoners answer their own hat color correctly, all of them will be released.
    Before being lined up, the prisoners are allowed to discuss a strategy, to develop a plan for their survival.
    PUZZLE : What would be their strategy to make sure that all of the them survive.
    The video explains the Puzzle's solution and the Logic behind.
    Please comment below your answers and suggestions. Also LIKE the video and SUBSCRIBE to my channel if you are new.

ความคิดเห็น • 382

  • @sriramsubramanian1291
    @sriramsubramanian1291 6 ปีที่แล้ว +206

    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.

  • @kratos952
    @kratos952 6 ปีที่แล้ว +464

    IIT graduated prisoners

    • @warfyaa6143
      @warfyaa6143 5 ปีที่แล้ว +1

      LOOL

    • @ws_zilch
      @ws_zilch 4 ปีที่แล้ว

      LooooL i was thinking he same. XD

    • @ritvikkaran967
      @ritvikkaran967 4 ปีที่แล้ว +1

      and another iit graduated find a loophole in metro
      th-cam.com/video/DCo8o4q_GNA/w-d-xo.html

    • @Rizwan1875
      @Rizwan1875 4 ปีที่แล้ว +1

      Hahaha 🤣

    • @yourdad5471
      @yourdad5471 3 ปีที่แล้ว

      Underrated bro🤣🤣🤣

  • @Raj-hm6qi
    @Raj-hm6qi 5 ปีที่แล้ว +79

    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 ปีที่แล้ว +2

      great man

    • @shreyanray7624
      @shreyanray7624 5 ปีที่แล้ว +1

      Good one

    • @sunilsigar3145
      @sunilsigar3145 5 ปีที่แล้ว +1

      Better one

    • @bosskiang4238
      @bosskiang4238 5 ปีที่แล้ว +11

      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 ปีที่แล้ว +1

      I know one thing
      that's not right

  • @cool-aquarian
    @cool-aquarian 3 ปีที่แล้ว +13

    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 ปีที่แล้ว

      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

  • @brianaresendes966
    @brianaresendes966 5 ปีที่แล้ว +15

    I was really hoping the guard was wearing sunglasses/glasses and they could use their reflections, but this is cool too.

    • @mayukh_
      @mayukh_ 3 ปีที่แล้ว +1

      I hate this kind of answers.. If you guys are not serious, then don't answer.

  • @ppmnox
    @ppmnox 3 ปีที่แล้ว +8

    I found the solution not only logical, but also compelling in the sense that I wondered if odd/even would play into the solution.

  • @tonir299
    @tonir299 9 หลายเดือนก่อน +1

    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.

  • @alabamaal225
    @alabamaal225 3 ปีที่แล้ว +8

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      @@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.

  • @merlinsheeba244
    @merlinsheeba244 7 ปีที่แล้ว +7

    Mind blowing logic. Thanks for clear explaination.

    • @LOGICALLYYOURS
      @LOGICALLYYOURS  7 ปีที่แล้ว +2

      Thanks Sheeba for the appreciation. I hope you'd like other puzzles too :)

  • @TheDeepakkandpal
    @TheDeepakkandpal 4 ปีที่แล้ว +13

    Calculations can save you from being hanged 😂 ~ hence proved - be with mathematics

  • @CardCaptor32584
    @CardCaptor32584 2 ปีที่แล้ว

    Your guard is a nice guy. When my friend told me this riddle, he let the last prisoner be the noble sacrifice.

  • @patrickjinks
    @patrickjinks 6 ปีที่แล้ว +10

    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

  • @matitiudeforever8155
    @matitiudeforever8155 6 ปีที่แล้ว +14

    that was the best riddle i've ever come across

  • @hypercubemaster2729
    @hypercubemaster2729 4 ปีที่แล้ว +4

    I got it after leaving it alone for a day, lol. Very awesome line of logic and puzzle! Subscribed!

  • @canale2303
    @canale2303 3 ปีที่แล้ว +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 ปีที่แล้ว

      You cannot give any kind of signal, be it with volume or whatever.

  • @komalagarwal9830
    @komalagarwal9830 6 ปีที่แล้ว +2

    Superb puzzle...n superb srategy...out of box situation.. awesome

  • @hyperfairy7779
    @hyperfairy7779 7 ปีที่แล้ว +53

    do they get to keep the hats?

  • @swedishpsychopath8795
    @swedishpsychopath8795 11 หลายเดือนก่อน +3

    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.

  • @basiliobastardo255
    @basiliobastardo255 2 ปีที่แล้ว +1

    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?

  • @harnek.singh77
    @harnek.singh77 5 ปีที่แล้ว +35

    If they were tht smart thy won't be in prison 🤣🤣

    • @urbanarkoverland
      @urbanarkoverland 5 ปีที่แล้ว +3

      Wouldn’t. Oh the irony.

    • @curious_one1156
      @curious_one1156 5 ปีที่แล้ว +6

      What if they are political prisoners ?

    • @Aditya-yn5lk
      @Aditya-yn5lk 5 ปีที่แล้ว +2

      Even wikileaks owner is in prison...lol

  • @mcger5624
    @mcger5624 8 หลายเดือนก่อน +1

    great - well done mate

  • @madhesh18
    @madhesh18 4 ปีที่แล้ว +1

    Terrific strategy

  • @maxkashyap3810
    @maxkashyap3810 3 ปีที่แล้ว

    Awesome Problem. Upon this logic I sat down to program this approach. Really fascinated.

  • @dreamstory979
    @dreamstory979 2 ปีที่แล้ว +1

    Amar I have question if there are only 2 red cap then how it possible

  • @qc1okay
    @qc1okay 8 หลายเดือนก่อน

    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!"

  • @kidsgameslearning
    @kidsgameslearning 2 ปีที่แล้ว +1

    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.

  • @poornimanagaraju8534
    @poornimanagaraju8534 7 ปีที่แล้ว +17

    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 ปีที่แล้ว +3

      Thanks Poornima... solved a lot.. now its time to teach to the world :) :) :P Must subscribe :)

  • @jackpigeon2263
    @jackpigeon2263 2 ปีที่แล้ว

    Wonderful logic Amar ji. Keep rocking with questions like this.

  • @index_s580
    @index_s580 2 ปีที่แล้ว +1

    You gave a key tip to solving by precisely describing 10th person position.

  • @YEC999
    @YEC999 3 ปีที่แล้ว +1

    cool logic nicely explained - came close but what i was missing the trick with the odd and even...

  • @joshmays7058
    @joshmays7058 6 ปีที่แล้ว +3

    No way you get ten guys to do that correctly the first time!

  • @mdmubashir743
    @mdmubashir743 7 ปีที่แล้ว +6

    amazing dude.....too good..

  • @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.

  • @priyanshuchaurasiya6184
    @priyanshuchaurasiya6184 4 ปีที่แล้ว +1

    Very typicall puzzle but also an exellent solution!

  • @uberfu
    @uberfu 3 ปีที่แล้ว +1

    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.

  • @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.

  • @ammararfeen5644
    @ammararfeen5644 5 ปีที่แล้ว +2

    My Naam is also ammar and your logic so clear and high I appreciate you for giving this knowledgful videos

  • @saj157
    @saj157 7 ปีที่แล้ว +3

    Awesome!! I finally got it!! yay!!:) you’re genius.

  • @alexandredesouza3692
    @alexandredesouza3692 14 วันที่ผ่านมา

    This is how I get ready for prison life.

  • @shubham2927
    @shubham2927 2 ปีที่แล้ว

    wONDERFUL eXPLANATION sER

  • @charlesbromberick4247
    @charlesbromberick4247 3 ปีที่แล้ว

    Sounds like Schria Law to me. Thanks for the puzzles - i really like them.

  • @akhtar_Alee
    @akhtar_Alee 6 ปีที่แล้ว +2

    I will see in reflexion of jailor's glasses

  • @sorsocksfake
    @sorsocksfake ปีที่แล้ว

    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.

  • @michaelbauers8800
    @michaelbauers8800 4 ปีที่แล้ว

    I love hat puzzles

  • @piedpiper3314
    @piedpiper3314 2 ปีที่แล้ว +1

    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

  • @ottovaughnjr.9282
    @ottovaughnjr.9282 6 ปีที่แล้ว +4

    What type of jailor is that...?

  • @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.

  • @tombratcher6938
    @tombratcher6938 3 ปีที่แล้ว

    I remember getting told this and thinking... " parity?... yep, works"

  • @subhajitpal2407
    @subhajitpal2407 3 ปีที่แล้ว

    Is this puzzle's logic actually comes in any real life implementation like in computer science concepts?

  • @mohammedzubair8618
    @mohammedzubair8618 7 ปีที่แล้ว +6

    very good logic. Good way of presenting. plz continue the same

  • @dy4e02
    @dy4e02 6 ปีที่แล้ว +1

    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

  • @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.

  • @ShanmukhaPulavarthy
    @ShanmukhaPulavarthy 11 หลายเดือนก่อน

    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.

  • @NK-fx1qs
    @NK-fx1qs 3 ปีที่แล้ว

    nice thanks! these are fun to watch.

  • @vineetshetty9519
    @vineetshetty9519 3 ปีที่แล้ว +1

    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 2 ปีที่แล้ว +2

      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

  • @rnegoro1
    @rnegoro1 5 ปีที่แล้ว +7

    You can actually work it from the odd numbers too at the beginning instead of even.

  • @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.

  • @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

  • @murugankaruppaiah9537
    @murugankaruppaiah9537 4 ปีที่แล้ว +2

    I think they are studied in oxford university

  • @unbrokenriven1455
    @unbrokenriven1455 3 ปีที่แล้ว

    so how do you solve for the same problem but there are 3 different color hats?

  • @Mark-qg8hm
    @Mark-qg8hm 3 ปีที่แล้ว +4

    They should have strategies how to bum rush the jailer and overpower him, since there is just one guy.

  • @himanshusingh5056
    @himanshusingh5056 3 ปีที่แล้ว +1

    Prisoners with calculus like idea's

  • @babanike999
    @babanike999 3 ปีที่แล้ว +3

    Looks like all those prisoners were mathematicians because a much simpler approach can be that Each prisoner (when asked, starting from the 10th) can call out the colour of the hat of the prisoner standing in front of him. This way, no need to do complex parity check calculation. 😀

    • @touristtam
      @touristtam 3 ปีที่แล้ว +3

      not calling your own hat's colour would promptly send you and your compadre to the gallows.

    • @V7B817
      @V7B817 2 ปีที่แล้ว

      Imagine all of the prisoners wearing coloured caps alternatively

  • @saadmanahmed860
    @saadmanahmed860 6 ปีที่แล้ว +2

    prisoners were really discerning... would i be in such a prison where gaoler makes redemption of prisoners such a logical way...!!!!

  • @christianbolt5761
    @christianbolt5761 4 ปีที่แล้ว +1

    You can also do it with multiple colors. Try 10 colors

  • @shankaruv6367
    @shankaruv6367 5 ปีที่แล้ว +3

    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

  • @Hemalatha...
    @Hemalatha... 2 ปีที่แล้ว

    2nd would inform 1st that he is wearing red,
    3rd to 2nd as blue ,4th to 3rd as red .................

  • @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

  • @babyyoda5074
    @babyyoda5074 5 ปีที่แล้ว +7

    It's not fair
    Such intelligent prisoners should not be released from rhe jail.😂😂😂

  • @alencarfardin6650
    @alencarfardin6650 5 ปีที่แล้ว +3

    Wait, the prisoners 1 to 4 are just kids...

    • @---4690
      @---4690 4 ปีที่แล้ว

      Lol 😂😂

  • @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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      You are right sir. Thank you so much for the explanation.

  • @CarlEmilKjellstrand
    @CarlEmilKjellstrand 3 ปีที่แล้ว

    Checksums are the best :)

  • @balajik8688
    @balajik8688 3 ปีที่แล้ว

    Y do they releasing the prisoners so freely..it's not even Gandhi jayanthi now 😂

  • @hsingh-13
    @hsingh-13 3 ปีที่แล้ว

    Wow! 👍

  • @SatyendraSingh-xi7fi
    @SatyendraSingh-xi7fi 5 ปีที่แล้ว +1

    Jailar is very dengerous.

  • @HeyNug
    @HeyNug 6 ปีที่แล้ว +1

    i dont get it

  • @moonyuen0505
    @moonyuen0505 3 ปีที่แล้ว +1

    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

  • @rajivpokharel88
    @rajivpokharel88 3 ปีที่แล้ว

    didnt understand one bit...but enjoyed it anyways...xD

  • @parhisanjaya
    @parhisanjaya 6 ปีที่แล้ว +1

    There is not mentioned how many red hats and blue hats are there ..how can they think hats are 5/5 ..so your answer is wrong .

  • @bishnunepali3018
    @bishnunepali3018 4 ปีที่แล้ว

    nice...

  • @shreyamaurya6410
    @shreyamaurya6410 6 ปีที่แล้ว +2

    Gr8

  • @mayankmishra4612
    @mayankmishra4612 3 ปีที่แล้ว

    Prisoner behind can see the color of the prisoner next to him.... So he can tell thr color of hat to prisoner next to him and this way 9 of them will be right.

  • @aryanrawat5961
    @aryanrawat5961 2 ปีที่แล้ว

    Simplest tareeka: peeche wala apne aage wale ko bata de usne kaunsi pehni hai. Bas ho jaayega sab

  • @anushams9828
    @anushams9828 6 ปีที่แล้ว +1

    Nice one🙂

  • @jurrasicpark8151
    @jurrasicpark8151 3 ปีที่แล้ว +1

    I actually solved this😎

  • @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

  • @ajaykumargupta8504
    @ajaykumargupta8504 4 ปีที่แล้ว

    Awesome 👌

  • @vikashtiwari5505
    @vikashtiwari5505 6 ปีที่แล้ว +3

    Brilliant

  • @MegaArti2000
    @MegaArti2000 3 ปีที่แล้ว

    Thought he would briefly if he said anything but the color of his own hat...wtf

  • @akashmore6249
    @akashmore6249 4 ปีที่แล้ว

    nice

  • @nandhagopal8699
    @nandhagopal8699 5 ปีที่แล้ว +1

    Amazing

  • @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.

  • @thedbznerd9565
    @thedbznerd9565 6 ปีที่แล้ว +6

    Did you steal this from Ted?

  • @prashantkumargupta4996
    @prashantkumargupta4996 6 ปีที่แล้ว +6

    elegant explanation.

  • @becalmandquiet881
    @becalmandquiet881 3 ปีที่แล้ว

    Great video

  • @pochyena555
    @pochyena555 6 ปีที่แล้ว +1

    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.

  • @abhinavgupta7930
    @abhinavgupta7930 6 ปีที่แล้ว

    could not each prisoner just see their respective cap colours in jailors glasses.lol.XD

  • @grahck4391
    @grahck4391 4 ปีที่แล้ว

    They're screwed if the jailer starts with the guy in front.

    • @---4690
      @---4690 4 ปีที่แล้ว

      Lol yess😂😂😂

  • @YatharthSharma
    @YatharthSharma 4 ปีที่แล้ว +2

    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" 😄😄😄

  • @olevester
    @olevester 3 ปีที่แล้ว

    Cant they just say the guy in front's color hat?