Installing Emacs from source (macOS 10.14)

Information about installing Emacs from source on macOS seems to be surprisingly sparse, so putting it all here together for easy reference…

Minimum Palindrome Partitions

A cut is defined as a slice of a string that partitions a string into two. Given a string, return the minimum number of cuts required to…

k-th Largest Number from a List of Digits

Given a list of digits (possibly containing duplicates) from 0-9, and a number k, find the k-th largest number that can be formed from these…

Balanced augmented interval trees

Wrote a Go implementation of an interval tree. This particular one is using the augmented style, as outlined here. It is also balanced. The…

Iromeku

I wrote a Python port of this Stack Overflow answer, which is a way of extracting a colour palette from an image. I had previously used a…

A Redis recipe for lists of recency

A nifty recipe for maintaining a list by recency. For example, a list of recently viewed page ids, maintained per user. When inserting a new…