I’m having difficulties resolving a very simple problem. My solution is optimal (for sure), but I’m still getting the error **time limit exceed**.

In order to known how far I’m for the correct solution, I decided to uploaded different versions of my algorithm that only solves a portion of the test cases (an return 0 for the other test cases). In that way, I get a **wrong answer** response which tells me how many time took my algorithm for resolve the selected test cases:

- First test: the algorithm resolves the first half of the test cases, the
*Time*is 0.04 - Second test: the algorithm resolves the second half of the test cases, the
*Time*is 0.04 - Third test: the algorithm resolves the 90% of the test cases, the
*Time***is still**0.04

If the *Time limit* is 1 second, then how is that I’m getting a “time limit exceed” error, considering that my algorithm seems to solve the test case in, at most, 0.05 seconds?