See On Github

Wikipedia Description

The zebra puzzle is a well-known logic puzzle. It is often called Einstein's Puzzle or Einstein's Riddle because it is said to have been invented by Albert Einstein as a boy. It is often claimed that only 2% of the population can solve it. The puzzle is also sometimes attributed to Lewis Carroll. However, there is no known evidence for Einstein's or Carroll's authorship and the Life International puzzle cited below mentions brands of cigarette, such as Kools, that did not exist during Carroll's lifetime or Einstein's boyhood. There are several versions. The one below is from the first known publication in Life International magazine on December 17, 1962. The March 25, 1963, issue contained the solution below, and the names of several hundred solvers from around the world. Now, who drinks water? Who owns the zebra? In the interest of clarity, it must be added that each of the five houses is painted a different color, and their inhabitants are of different national extractions, own different pets, drink different beverages and smoke different brands of American cigarets [ sic ]. One other thing: in statement 6, right means your right. https://en.wikipedia.org/wiki/Zebra_Puzzle

Tags
einstein, einstein, puzzle

Implementations