Implementation and use cases for computer science algorithms

22 25,565 2,268
articles words lines of code

In this article I explore functools.cmp_to_key and propose a possible implementation.

Today I learned that the hash of an integer is the integer itself, except for -1. The hash of -1 is -2.