From scratch backtracking solution to the Wolf, Sheep, Cabbage, and Farmer (River Crossing) Problem using C++
The problem is to drive all the passengers/things to the other side.
● Wolf is not allowed to stay with the sheep neither the farmer.
● Sheep is not allowed to stay with the cabbage.
● Only two passengers/things can enter the boat.