WA in the problem HRDSEQ (Nov. Long Challenge)

Problem Link-CodeChef: Practical coding for everyone
Can anyone tell me why i got WA due to line 30 in the for loop.
I only replaced n with v.size() [which is the size of the vector] .n and v.size() are same.(Focus on line 30)

AC solution vs WA solution
AC solution - CodeChef: Practical coding for everyone vs WA solution- CodeChef: Practical coding for everyone

Not for the testcase:

1
1

(at line 30, n=1 , but v.size()=2).

1 Like

@ssjgz,Thanks for the testcase i was looking for.

1 Like