Hacker News new | ask | show | jobs
by jkafjanvnfaf 498 days ago
Nice writeup and algorithm. My first instinct would have been to take the lazy way out and just use a table with 365 entries (or 366, or both depending on the implementation), but this is a lot more elegant.