You are viewing a single comment's thread. Return to all comments →
Possible in 5 step.
You Miss this condition you give chocolate bars to all but chosen one. so you wont able to give chocolates to all at once.
They should really bold this in the question. I didn't realize this making the problem seem very hard for me.
In second step, U have added 3, but addition of 1, 2 and 5 is ony possible
logic is about making equal not zero.So in 2 5 5 5 5 5.If we reduce 3 from all 5 we left with each having 2 chocolate and that's what we want equal chocolates.
what's woring in it?
We need to add to all except one element. You are adding to just one element.