in js, sort by itself works by comparing strings, so the use of a - b coerces those two values into a number (less than zero, zero, or greater than zero)
a - b
This comment is hidden because it contains spoiler information about the solution
Check my solution. I wrote my thoughts in it, i didn't know sets existed in python.
Loading collection data...
in js, sort by itself works by comparing strings, so the use of
a - b
coerces those two values into a number (less than zero, zero, or greater than zero)This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Check my solution. I wrote my thoughts in it, i didn't know sets existed in python.