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…