github.com
C# solution 1
Python solution 2 (you’ll need to run it to find out the surprise, the code is just vanilla Python)
C solution 1
Reply on news.ycombinator.com