Closed asteinha closed 4 years ago
Current implementation fails when the hit is at index 0 and there is no noise. In that case the first and second is both 0 and the condition first > 2 * second + 40 is never reached.
Current implementation fails when the hit is at index 0 and there is no noise. In that case the first and second is both 0 and the condition first > 2 * second + 40 is never reached.