Hi, i have made solution of Stock exchange losses in PHP. All tests go, but on submitting, there is one, which is not passing. It is number 02 (Maximum Loss between the first and last values (10 6 8 4 6 2) -> -8).
I’ve tried to hardcode that input in and my program made correct output. Maybe, something is bad with STDIN for that case.