Author : lukeg3

Longest increasing subsequence in 51 bytes

One joy of code golf is when a complex algorithm reduces to a short “magic” formula. codeglf.com hosted a challenge to find the shortest Python program to calculate the length of the longest increasing subsequence (LIS). LIS is a classic algorithmic task: given an array of numbers, what is the longest subsequence (not necessarily contiguous) […]

The 2025 Google Code Golf Championship, Part 1

I was privileged to be a part of the winning team in the NeurIPS 2025 Google Code Golf Championship, which took place August–October 2025. The goal of this competition was to solve 400 Python problems in as few bytes as possible (“code golf” refers to minimizing the length of programs). The problems consisted of grid-based […]

Scroll to top