Interview: solution to this riddle in programming
Clash Royale CLAN TAG #URR8PPP Interview: solution to this riddle in programming 3 men walk into a bar , where they are blindfolded and given a hat each from a set of 3 blue and 3 red hats. Now the blindfolds are taken off and they are asked to identify the colour of their hat. The 1st person sees the other two and is unable to determine that color of his hat, the 2nd person sees the other two and is also unable to determine the colour of his hat. The last person tells them the colour without taking a look at the other two. What colour hat is the last person wearing? We have to solve this riddle using coding. Can someone help please? I have no idea what tags to use, and if this is even the right place to post this question. I am really sorry for any inconvenience caused. Can you solve the riddle without programming? Some information seems to be missing. E.g. the explicit statement that the three men can see each others hats and the remaining hats. The third ...