@Amrit: You only have 2 and 3 litre jars. You are trying to get 4
litres into one of them. There is no 4 litre jar, nor any other vessel
into which you can capture the 4 litres.

Dave

On Sep 17, 6:15 am, amrit harry <dabbcomput...@gmail.com> wrote:
> http://www.spoj.pl/problems/POUR1/
> hw the 2nd given test is correct.
>
> 2
> 3
> 4
> first we fill 3 littre jar with water and put into 4 littre jar den
> again fill 3 littre and pour it in 2 littre remaining water in jar is
> 1 littre put it into 4 littre and we can measure 4 littre of water den
> why answer is -1...?

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to