Fine Radar
The News Hub

Puzzle – Five Friends – GeeksforGeeks

Improve Article

Save Article

Like Article

Improve Article

Save Article

Like Article

Five friends are standing in a line. Each of them is wearing either a red shirt or a green shirt. What is the order of the friends from left to right, and what color shirt is each person wearing? Here are the clues:

  • The person on the left is wearing a green shirt.
  • The person on the right is wearing a red shirt.
  • The person in the middle is wearing a green shirt.
  • The second person from the left is wearing a red shirt.
  • The second person from the right is wearing a green shirt.

Solution:

  • We know that there are only two colors of shirts: red and green. We also know the color of the shirt worn by the person on the left (green) and the person on the right (red). Let’s call the five friends A, B, C, D, and E, in order from left to right.
  • We know that the person in the middle is wearing a green shirt, so B must be wearing a green shirt. We also know that the second person from the left is wearing a red shirt, so A must be wearing a red shirt. The second person from the right is wearing a green shirt, so D must be wearing a green shirt.

That leaves us with two possible solutions: either C is wearing a red shirt and E is wearing a green shirt, or C is wearing a green shirt and E is wearing a red shirt. However, we know that the person on the left is wearing a green shirt, so the only solution that works is:

A (red), B (green), C (red), D (green), E (red)

Therefore, the order of the friends from left to right, and the color of the shirt worn by each person, is:

Puzzle: Five Friends 

A (red), B (green), C (red), D (green), and E (red).

Last Updated :
24 Apr, 2023

Like Article

Save Article

 

Stay connected with us on social media platform for instant update click here to join our  Twitter, & Facebook We are now on Telegram. Click here to join our channel (@TechiUpdate) and stay updated with the latest Technology headlines. For all the latest Technology News Click Here 

Read original article here

Denial of responsibility! FineRadar is an automatic aggregator around the global media. All the content are available free on Internet. We have just arranged it in one platform for educational purpose only. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials on our website, please contact us by email – [email protected]. The content will be deleted within 24 hours.
Leave A Reply

Your email address will not be published.