TCS
Company
There are 3 buckets of 8,5 and 3 liter...out of whicg only 8 liter bucket is fullyfill.... u have to exact 4-4 lit liquid in 8 and 5 liter bucket by using only these buckets in minimum no of steps ?
Read Solution (Total 6)
-
- the correct answer is seven steps
explain:-
8(lit bucket) 5(lit bucket) 3(lit bucket)
initialy-8 0 0
1) 3 5 0
2) 3 2 3
3) 6 2 0
4) 6 0 2
5) 1 5 2
6) 1 4 3
7) 4 4 0
- 12 years agoHelpfull: Yes(24) No(3)
- (2^n)-1 is formula
2^3 -1=7 steps - 12 years agoHelpfull: Yes(14) No(2)
- for this kind of question ...
formula is
2^(no of bucket) -1= will give u minimum no of steps
(2^3 -1) = 7
- 12 years agoHelpfull: Yes(8) No(1)
- @dhana sri ,can u explain this formula....how we use it??????
- 12 years agoHelpfull: Yes(2) No(3)
- can be done in 7 steps...
- 12 years agoHelpfull: Yes(0) No(0)
- guys read the question carefully initially 8lt bucket is filled so
b1 b2 b3
3 5 0
6 2 0
6 0 2
1 5 2
1 4 3 (here fill the gap in b3 with one lt of b2)
4 4 0
so 6 steps - 12 years agoHelpfull: Yes(0) No(0)
TCS Other Question