4 ms·
These are a lot of fun to do, especially in a new language you want to play with. However they are as much an exercise of your math skills (mostly basic number
by bradleyjg 13y ago
These are a lot of fun to do, especially in a new language you want to play with. However they are as much an exercise of your math skills (mostly basic number theory and combinatorics) as programming. One thing I'd suggest is that you pick an algorithm reference and stick with it, if you google anything too specific you will come across one of the many sites where people have blogged about thier solutions.