logoalt Hacker News

Formally verifying Advent of Code using Dijkstra's program construction

25 pointsby seafoamtealtoday at 6:39 PM2 commentsview on HN

Comments

Joker_vDtoday at 10:08 PM

That's a lot of manual effort to save just a tiny bit of thinking. The first digit is the largest digit among the first N-1 digits. The second digit is the largest digit to the right of the first digit up to and including the Nth digit. That's it.

show 1 reply