Hi, I have problem with understanding the solution for really good problem Water on spoj from Poland. On each filed you have to put 10^5 liters of water and see how it go and use BFS. But I have problem with understanding the BFS call, which cell will go first and in which order. Can anyone help figure it out. Thanks.
If you're talking about this problem I suggest you read the following post if you haven't. The problem "Volume" is pretty much the same as the problem "WATER" on SPOJ.
Thanks, can you please explain me what are doing 62-66 line?