Skip to content

Instantly share code, notes, and snippets.

@RoelVdP
Created December 10, 2022 05:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RoelVdP/d060235a23fcebdf14199acbc42aa81f to your computer and use it in GitHub Desktop.
Save RoelVdP/d060235a23fcebdf14199acbc42aa81f to your computer and use it in GitHub Desktop.
Einstein's Riddle
There are five houses, each painted a different color. In each house lives a person with a different nationality.
These five owners drink a certain type of beverage, smoke a certain brand of cigar, and keep a certain pet.
No owners have the same pet, smoke the same cigar, or drink the same beverage.
The question is, who owns the fish?
Here are the clues:
The Brit lives in the red house
The Swede keeps dogs as pets
The Dane drinks tea
The green house is on the left of the white house
The green house’s owner drinks coffee
The person who smokes Pall Mall rears birds
The owner of the yellow house smokes Dunhill
The man living in the center house drinks milk
The Norwegian lives in the first house
The man who smokes blends lives next to the one who keeps cats
The man who keeps horses lives next to the man who smokes Dunhill
The owner who smokes BlueMaster drinks beer
The German smokes Prince
The Norwegian lives next to the blue house
The man who smokes blend has a neighbor who drinks water
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment