I changed the reference solution which seemed to be buggy, and your solution passes now. Please verify and mark the issue as resolved if the problem does not occur anymore.
The F# random test is wrong apparently. My code passes all the manual tests, but fails on the random. I added a printfn instruction to show what is the input and it's a big quantity of numbers.
It's happening for me as well (F#). It passes all the tests except from the random one. I added a printfn instruction to see what is happening with the random tests, and it prints a pretty big list of values.
Could be related to the .NET version which is pretty old. Any plans to update it?
This comment is hidden because it contains spoiler information about the solution
Scala translation
Good problem!
Nice, thanks for that @hobovsky. Indeed, it's passing now.
I changed the reference solution which seemed to be buggy, and your solution passes now. Please verify and mark the issue as resolved if the problem does not occur anymore.
Should be fixed.
Could you check again?
The F# random test is wrong apparently. My code passes all the manual tests, but fails on the random. I added a printfn instruction to show what is the input and it's a big quantity of numbers.
It's happening for me as well (F#). It passes all the tests except from the random one. I added a printfn instruction to see what is happening with the random tests, and it prints a pretty big list of values.