Kalido Interview Question
Software Engineer / DevelopersCountry: India
Interview Type: In-Person
1. Fill 3L bucket FULL.
2. Transfer this water to 5L bucket. It now has 3L.
3. Fill 3L bucket FULL again.
4. Transfer to 5L bucket till it fills completely. Now 3L bucket has 1L.
5. Throw away 5L of water.
6. Transfer 1L water from 3L to 5L
7. Fill 3L bucket FULL again.
8. Transfer to 5L bucket to get 4L in the bucket.
its too complicated...
the easy one..
1.fill 5 lt., bucket.
2.Take out 3 lt. from it using another bucket of 3 lt.
3.5-3=2 lt. left in 5 lt. bucket
4.Empty the 3 lt. bucket and transfer this 2 lt. in 3 lt. bucket.
5.now in last fill the 5 lt. bucket full and fill the 3 lt. bucket
left in 5 lt.bucket=5-1=4
:)
5 fill -> 3 mein dalo--> 5 mein 2 reh jaayega--> 3 khaali karke usme 5 kaa 2 dal do---> ab 5 poora bhar do---> empty 1 into 3
1. Fill 3L bucket FULL.
2. Transfer this water to 5L bucket. It now has 3L.
3. Fill 3L bucket FULL again.
4. Transfer to 5L bucket till it fills completely. Now 3L bucket has 1L.
5. Throw away 5L of water.
6. Transfer 1L water from 3L to 5L
7. Fill 3L bucket FULL again.
8. Transfer to 5L bucket to get 4L in the bucket.
Without wasting the water.. here is a solution:
1. Fill 3L bucket FULL.
2. Transfer this water to 5L bucket. It now has 3L.
3. Fill 3L bucket FULL again.
4. Transfer to 5L bucket till it fills completely. Now 3L bucket has 1L.
5. Pour the remaining 1L to 4L bucket.
6. Fill 3L bucket FULL again and pour to 4L Bucket.
first pour 5 ltr bucket water in 3 ltr bucket then 2 ltr remains in the 5 ltr bucket. Empty the 3 ltr bucket and pour that remaining 3 ltr water in it. and again fill 5 ltr bucket and pour 1 ltr water in the 3 ltr bucket which has currently 2 ltr. so in 5 ltr bucket 4 ltr is remains.
2 ans:
pour 3 ltr in 5 ltr bucket
now there is 3 ltr in 5 ltr bucket
again pour 3 ltr bucket water in 5ltr then 1 ltr remains in 3 ltr
empty the 5 ltr bucket and then pour the 1 ltr of 3 ltr bucket
now 5 ltr bucket has 1 ltr
pour 3 ltr bucket in it
Now 5 ltr bucket has 4 ltr
take half of water from each i.e. 1.5 from 3 lit and 2.5 from 5 lit will result into 4lit water with u. simple n easy,...
two buckets
3L and 5L bucket
3L bucket fill full in 5L bucket and check in 5L bucket in total 3L water and same process and check in 5L bucket in 5L water and in 3L bucket in 1L water after that empty 5L bucket and add 3L bucket in 1L water and again fill full 3L bucket in 5L bucket so total in 5L bucket in 4L water
1. Fill 3L bucket FULL.
2. Transfer this water to 5L bucket. It now has 3L.
3. Fill 3L bucket FULL again.
4. Transfer to 5L bucket till it fills completely. Now 3L bucket has 1L.
5. Throw away 5L of water.
6. Transfer 1L water from 3L to 5L
7. Fill 3L bucket FULL again.
8. Transfer to 5L bucket to get 4L in the bucket.
- Anonymous October 11, 2011