Skip to content

Commit bd881c6

Browse files
author
Zoran Pandovski
committed
Add puzzles, add 99 bottles and einstein puzzles
1 parent 716addf commit bd881c6

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

puzzles/99_Bottles/README.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# 99 Bottles of Beer #
2+
3+
## Puzzle: ##
4+
5+
You must print the lyric of the song as follows:
6+
7+
```
8+
99 bottles of beer on the wall, 99 bottles of beer.
9+
Take one down and pass it around, 98 bottles of beer on the wall.
10+
98 bottles of beer on the wall, 98 bottles of beer.
11+
Take one down and pass it around, 97 bottles of beer on the wall.
12+
...
13+
...
14+
...
15+
2 bottles of beer on the wall, 2 bottles of beer.
16+
Take one down and pass it around, 1 bottle of beer on the wall.
17+
1 bottle of beer on the wall, 1 bottle of beer.
18+
Take one down and pass it around, no more bottles of beer on the wall.
19+
No more bottles of beer on the wall, no more bottles of beer.
20+
Go to the store and buy some more, 99 bottles of beer on the wall.
21+
```
22+

puzzles/Einstein_Puzzle/README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#Einstein puzzle
2+
3+
Variations of this riddle appear on the net from time to time. It is sometimes attributed to Albert Einstein and it is claimed that 98% of the people are incapable of solving it. Some commentators suggest that Einstein created such puzzles not to test out intelligence but to get rid of all the students who wanted him as an advisor. It is not likely that there is any truth to these stories. Whereever this comes from, it is a nice riddle.
4+
5+
Let us assume that there are five houses of different colors next to each other on the same road. In each house lives a man of a different nationality. Every man has his favorite drink, his favorite brand of cigarettes, and keeps pets of a particular kind.
6+
```
7+
The Englishman lives in the red house.
8+
The Swede keeps dogs.
9+
The Dane drinks tea.
10+
The green house is just to the left of the white one.
11+
The owner of the green house drinks coffee.
12+
The Pall Mall smoker keeps birds.
13+
The owner of the yellow house smokes Dunhills.
14+
The man in the center house drinks milk.
15+
The Norwegian lives in the first house.
16+
The Blend smoker has a neighbor who keeps cats.
17+
The man who smokes Blue Masters drinks bier.
18+
The man who keeps horses lives next to the Dunhill smoker.
19+
The German smokes Prince.
20+
The Norwegian lives next to the blue house.
21+
The Blend smoker has a neighbor who drinks water.
22+
```
23+
The question to be answered is: Who keeps fish?

puzzles/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Puzzle
2+
A puzzle is a game, problem, or toy that tests a person's ingenuity or knowledge. In a puzzle, the solver is expected to put pieces together in a logical way, in order to arrive at the correct solution of the puzzle. There are different genres of puzzles, such as crossword puzzles, word-search puzzles, number puzzles, or logic puzzles.
3+
4+
Puzzles are often created to be a form of entertainment but they can also arise from serious mathematical or logistical problems. In such cases, their solution may be a significant contribution to mathematical research.[

0 commit comments

Comments
 (0)