Help in Spoj problem

Правка en2, от kanisht_09, 2020-09-03 15:51:00

Please can someone help me this problem :

https://www.spoj.com/problems/BUGLIFE/

I am getting wrong answer when I m changing the color explicitly i.e before calling dfs here is the code : Your text to link here...

And i got AC when I send the color along with dfs function Your text to link here...

if u look at both the codes dont u think they are equivalent? If not please tell me which edge case am i missing? Thanks in advance :)

Теги dfs, #bipartite, graphs

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский kanisht_09 2020-09-03 15:51:00 85
en1 Английский kanisht_09 2020-09-03 15:48:31 549 Initial revision (published)