I'm trying this challenge in bash (for the achievement of course ) and it works fine when in editor (even on the large number of horses), but when I submit it doesn't pass all tests.
I'm assuming it's not timeout/performance related since the non-passing tests are
Shorter difference on the first 2 horses (100 pts)
Shorter difference on the last 2 horses (100 pts)
Only 2 horses (100 pts)
And if the last one is what it says (only two horses) then performance shouldn't be a problem. I have tried building my own testcases with things that might look like those three failed tests, but it seems to work fine (in editor). Any idea ?
[EDIT] : Oh well... It seems like it did matter anyway. I decided to work on optimization for a bit before I got this issue fixed, and got my program to run waaaaay faster (could'nt really measure, but really faster), and now it does pass all tests both in the editor and when submiting. Weird.