Submit and testCase giving different outputs for my algorithm

image
Its the second time today that I implement an algorightm. When I submit it fails for a given input. However, when I use that failed input as my testCase, my algorithm works and shows the right answer.

When I click in submit it shows a different answer than the testCase, for the same input.

Comments (1)