10054 - The Necklace
Moderator: Board moderators
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 10054 - The Necklace
Try running your code on the sample input.
Check input and AC output for thousands of problems on uDebug!
Re: 10054 - The Necklace
Here's a test case that tripped me up, even though the others posted here worked.
Code: Select all
1
6
1 2
2 3
3 4
4 5
5 1
3 3
Re: 10054 - The Necklace
I got AC when I check if there is any odd degree node but get WA when I don't check this..
Can you give me a test case for such a scenario?
Can you give me a test case for such a scenario?