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

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

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
  • Проголосовать: не нравится

»
8 лет назад, скрыть # |
← 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.