Блог пользователя Nimazare

Автор Nimazare, история, 5 лет назад, По-английски

Memory limit and detect that ?

i get memory from this problem and i don't understand why .

help me to understand how detect memory of any problem and this problem

problem : my submission

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
5 лет назад, # |
Rev. 3   Проголосовать: нравится +4 Проголосовать: не нравится

The most likely culprit is your find_par method. Are you sure it always terminates?

If my hunch is correct, you will get AC if you check whether two nodes are already in same set before union.

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    thank you . your hunch is correct , my nodes are go out of the range of my array so for that i get MEMORY LIMIT .