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...](http://p.ip.fi/pOT6) ↵
↵
And i got AC when I send the color along with dfs function↵
: ![ [Your text to link here...](http://p.ip.fi/3hM4)↵
↵
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 :slight_smile:![ ](https://www.spoj.com/problems/BUGLIFE/)
↵
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...](http://p.ip.fi/pOT6) ↵
↵
And i got AC when I send the color along with dfs function↵
↵
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 :