There 2 bucket of 3L & 5L. How to measure 4L? (SAS Interview question logical)
First method
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.
Second 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
Nice One!
ReplyDelete