Add README
This commit is contained in:
@@ -0,0 +1,21 @@
|
|||||||
|
# River Crossing
|
||||||
|
|
||||||
|
## Task
|
||||||
|
|
||||||
|
A farmer has five animals on one side. He needs to get all animals to the other
|
||||||
|
side of the river. Unfortunately, he only has two spaces available on his boat
|
||||||
|
and some animals cannot be left on their own. Find a series of boat crossings to
|
||||||
|
get all animals to the other side.
|
||||||
|
|
||||||
|
## Animals
|
||||||
|
|
||||||
|
* 2 Wolves
|
||||||
|
* 1 Fox
|
||||||
|
* 1 Chicken
|
||||||
|
* 1 Worm
|
||||||
|
|
||||||
|
## Constraints
|
||||||
|
|
||||||
|
* Wolves eat foxes.
|
||||||
|
* Foxes eat chickens.
|
||||||
|
* Chickens eat worms.
|
||||||
Reference in New Issue
Block a user