

1·
9 hours agoI have enjoyed writing solutions in TXR Lisp for some Project Euler problems recently, so that’s what I intend using here. It has quite an extensive standard library that comes in handy when solving short competition-style programming problems.

TXR
The
'hist-sort'function call does most of the work here, creating an association list of (id . freq) pairs in decreasing order of frequency: