“It’s rewarding. It feels good to come up with a solution, and just to in general practice how you approach solving problems.”
During his visit, he was kind enough to give us a great walkthrough of his solution. He started by talking about his original naive solution, and then about how he optimized it. It’s really interesting to see the code’s evolution from its (still great!) beginnings to the expressive, readable, and concise solution that you can see at solution #191. Watch his explanation below!
We’ll post the next two solutions when our other winners visit us later this year, so stay tuned!