dario-dsa's blog

By dario-dsa, 10 years ago, In English

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.

  • Vote: I like it
  • -3
  • Vote: I do not like it

»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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.

  • »
    »
    10 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thanks, can you please explain me what are doing 62-66 line?