score:2

Accepted answer

The problem is that you're reading strings from the TSV file and not converting them to numbers. This means that "10" will be less than "9" (because "1" comes before "9"). To fix, simply convert the strings to numbers using +, in particular, use +d.y instead of d.y.


Related Query