this will throw an index out of bounds exception if the array is just 1 element
Any solution that contains sorting the values is horrible in terms of performance and should be avoided.
<a href=https://www.codewars.com/kumite/585f1df56d36a5ee6e000268?sel=585f1df56d36a5ee6e000268> F# translation kumited
This comment is hidden because it contains spoiler information about the solution
Csharp Translation kumited !!!