Help needed - COV2TREE

Can anyone debug my code for COV2TREE

My Solution : here

Verdict showing WA in a single test case in Sub task II

Suggest some test cases, if possible.

Thanks in advance.

1 Like

overflow of res variable

You also have an out of bounds in V inside dfs that can produce undefined behaviour

2 Likes

Thank you! :heart:

It worked. :slight_smile: