How I Won the APL Problem Solving Competition
summary
Winning entry in the 14th APL Problem Solving Competition implements a fill function that builds labeled rectangular subspaces by computing index vectors with ravel, monotic iota and encode to perform a single indexed assignment, and a ddn function that parses format strings into Dyalog date numbers by building per-year constraint matrices of 365/366 columns and masking to find matching days. Approach leverages prior kdb+/q experience and runs about three orders of magnitude faster than the next correct solution.
AI-written summary · about
