█████╗ ██████╗ ██████╗██╗ ██╗██╗██╗ ██╗███████╗
██╔══██╗██╔══██╗██╔════╝██║ ██║██║██║ ██║██╔════╝
███████║██████╔╝██║ ███████║██║██║ ██║█████╗
██╔══██║██╔══██╗██║ ██╔══██║██║╚██╗ ██╔╝██╔══╝
██║ ██║██║ ██║╚██████╗██║ ██║██║ ╚████╔╝ ███████╗
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚══════╝
███████╗███████╗██╗ ██╗███████╗██████╗
██╔════╝██╔════╝██║ ██║██╔════╝██╔══██╗
█████╗ █████╗ ██║ ██║█████╗ ██████╔╝
██╔══╝ ██╔══╝ ╚██╗ ██╔╝██╔══╝ ██╔══██╗
██║ ███████╗ ╚████╔╝ ███████╗██║ ██║
╚═╝ ╚══════╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝
Coding Engrams
Let’s say we want to compute the mode of a series of numbers, meaning that we pick the value that occurs most. This is easy enough: we sort on the amount of occurrences, assuming we have some datatype that tracks the amount of occurrences per value. However, we need to deal with the edge case of two values occurring the same amount of times. …
See archives for more ...