CodeSprint - Fill the tank

How to approach the problem Fill the Tank ?

1 Like

Though we could not solve this during the contest, got this link from pulkit goel after the contest. The solution is very well explained there in the first answer.

3 Likes

Thanks for the link!