Hi,
It seems very strange to me while solving this question in beginner section Snakes, Mongooses and the Ultimate Election. Here are the links of my solutions that are been accepted and rejected.
The only difference between two of them is that in the failed one, the sizeof the array is 105 and the passed one it is 1000.
Even the constraints said:
1 ≤ T ≤ 100
1 ≤ |s| ≤ 100
So I think that solution should be acceptable if I choose 105 size
Any hint what I am missing…
P.S. Its a .c file that I have uploaded. So I request to jump to the end of the file where you will find the relevant code for this problem…