Understanding the Problem
Get an overview of the problem in this chapter and try to understand it.
We'll cover the following
Problem
A farmer has a fox, a duck, and a sack of corn, and they need to get all of them across a river from one bank to another. However, they can only carry one item at a time in the boat. They also need to be careful because if they leave the fox with the duck, the fox will eat it. If they leave the duck with the sack of corn, the duck will eat the corn.
Get hands-on with 1400+ tech skills courses.