Interview Preparation Exam  >  Interview Preparation Notes  >  Puzzles for Interview  >  Farmer, Goat, Wolf and Cabbage

Farmer, Goat, Wolf and Cabbage | Puzzles for Interview - Interview Preparation PDF Download

Introduction 

The farmer wants to cross the river with his goat, wolf, and cabbage but there is only one boat available which can support only two objects at a time. Moreover, he cannot leave the goat and wolf alone or the wolf will eat the goat, and he cannot leave the goat and cabbage alone or the goat will eat the cabbage. So, what is the solution to this problem?

Problem Statement

How the Farmer Can Cross the River with His Belongings?

Solution

Step 1: Taking the goat on the other side
The farmer will take the goat on the other side and return back alone. So, on one side, we have the farmer, wolf, and cabbage, and on the other side, we have the goat.

Step 2: Taking the wolf on the other side
Next, he will take the wolf along, drop him on the other side, and return with the goat. So, on one side, we have the farmer, cabbage, and goat, and on the other side, we have the wolf.

Step 3: Taking the cabbage on the other side

Now, he takes the cabbage along and returns alone. So, on one side, we have the farmer and goat, and on the other side, we have the wolf and cabbage.

Step 4: Taking the goat on the other side
Finally, he crosses the river with the goat and succeeds in taking all his belongings with him.

Conclusion

The farmer successfully crossed the river with all his belongings by taking them one by one, ensuring that no two objects that cannot be left alone together are left on one side.

The document Farmer, Goat, Wolf and Cabbage | Puzzles for Interview - Interview Preparation is a part of the Interview Preparation Course Puzzles for Interview.
All you need of Interview Preparation at this link: Interview Preparation
109 docs

Top Courses for Interview Preparation

109 docs
Download as PDF
Explore Courses for Interview Preparation exam

Top Courses for Interview Preparation

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Sample Paper

,

Summary

,

study material

,

Farmer

,

Free

,

Wolf and Cabbage | Puzzles for Interview - Interview Preparation

,

Goat

,

Wolf and Cabbage | Puzzles for Interview - Interview Preparation

,

Goat

,

Objective type Questions

,

ppt

,

MCQs

,

Farmer

,

Wolf and Cabbage | Puzzles for Interview - Interview Preparation

,

Semester Notes

,

Extra Questions

,

Goat

,

video lectures

,

Viva Questions

,

pdf

,

practice quizzes

,

Important questions

,

Exam

,

Previous Year Questions with Solutions

,

mock tests for examination

,

past year papers

,

shortcuts and tricks

,

Farmer

;