Solutions to various problems on the Internet, including:
Language | Build Status | Code Quality | Test Coverage |
---|---|---|---|
C# | |||
C++ | |||
Kotlin | |||
Lua | |||
Python | |||
Ruby | |||
Scala |
I use this repository to track solutions I have come up with for various programming puzzle sites. Solutions are sorted into different directories based on language, and then further separated by site and problem. If I've solved several problems with a particular language, there will usually be advanced features such as test suites and libraries.
Warning
I know this goes without saying, but these are solutions. You should really take a stab at the problems themselves before looking at this code.
I originally intended to use Project Euler as a way to learn new languages. After sitting on that strategy for some time and seeing how it worked as the problems became more difficult, I realized I'm better off using one language really, really well and learnings its ins-and-outs -- hence, most of the solutions here are first implemented in Ruby.
Now that I have a few more problems under my belt, I have started writing solutions in other languages. Most of the time this starts out as a straight translation from one language to another, but it often means I can become familiar with a new language without needing to first understand the math, and it also can sometimes lead to using a particular language's feature to solve a problem in a different way.