skip to content
$
ashik
@dev
writing
stack
contact
rss
~/blog
/ tags /
algorithms
Engineering notes about algorithms
Articles, implementation notes, and lessons from projects involving algorithms.
cat ~/writing/algorithms
1 posts
2025.05.14
My Greedy Algorithm Said No. It Was Wrong.
A small packing function I wrote for a ledger cleanup job, why its greedy shortcut misses exact answers far more often than I expected, and the short dynamic programming fix.
algorithms
typescript
dynamic-programming
10 min
->