Solving “Who owns the Zebra” programmatically?
Edit: this puzzle is also known as "Einstein's Riddle" The Who owns the Zebra (you can try the online version here ) is an example of a classic set of puzzles and I bet that most people on Stack Overflow can solve it with pen and paper. But what would a programmatic solution look like? Based on the clues listed below... There are five houses. Each house has its own unique color. All house owners are of different nationalities. They all have different pets. They all drink different drinks. They all smoke different cigarettes. The English man lives in the red house. The Swede has a dog. The Dane