Infosys
Company
HR Interview
Interview
3 policemen and 3 thieves had to cross a river using a small boat. Only two can use the boat for a trip. All the 3 policemen and only 1 thief knew to ride the boat. If 2 thiefs and 1 policeman were left behind they would kill him. But none of them escaped from the policemen. How would they be able to cross the river?
Read Solution (Total 2)
-
- Let a,b,c are 3 policeman and 1,2,3 are 3 thieves (1 knows to sail the boat)
First of all a & 3 will go to other end, then b,c & 1,2 = a,3
a returns back and 1,2 will go to other end, then a,b,c = 1,2,3
1 return back and b,c will go to other end, then a,1 = b,c,2,3
b,2 will return back and 1,a will go to other end, then b,2 =a,c,1,3
c,3 will return back and b,c will go to the other end, then 2,3 = a,b,c,1
1 will return back and takes 2 with him to other end, then 3=a,b,c,1,2
1 will again return back and takes 3 with him and its over every body crossed
the river - 9 years agoHelpfull: Yes(1) No(4)
- police men p1,p2,p3 and thieves t1,t2,t3(t1 knows to sail the boat)
p1 & t1 will go to other end p1 leaves t1 there and returns back
p2 & t2 will go to other end p2 leaves t2 there and returns back
p3 & t3 will go to other end p3 leaves t3 there and returns back
p1,p2,p3=t1,t2,t3
now p1& p2 will go to other side and now t1 will returns back
t1 & p3 will cross the river
so all the policemen and thieves are cross the river - 5 years agoHelpfull: Yes(0) No(0)
Infosys Other Question