Comment
Comment by jkafjanvnfaf
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.
Be the first to share your thoughts.