How I Won the APL Problem Solving Competition
summary
Grand-prize entry wins by optimizing for speed and robustness rather than clever gimmicks and shows exact tools and numbers: extensive cmpx profiling, unit and performance tests, and idiomatic APL techniques. Solutions include HTML scraping with an XML parser not regex, reverse-palindrome checks that skip odd lengths, modular exponentiation by squaring mod 1,000,000, array-based cashflow present/future value, UPC encoder/decoder with full error checks, and a partition solver combining brute force, DP, branch-and-bound and Horowitz‑Sahni plus gcd reduction; matrix inverse solves the mobile balancing problem.
AI-written summary · about
chapters (11)
- 0:00Introduction and background
- 3:53APL competition overview
- 7:03Phase one problem strategies
- 10:39Phase two problem categories
- 13:29Scripting style problems
- 16:39Bioinformatics problem
- 19:03Dynamic programming in APL
- 23:13Balancing the skills problem
- 26:23Upwardly mobile tree problem
- 29:12APL in competitive programming
- 31:19Q&A session
