Project Euler is Awesome
Learning to program is hard damn work. Luckily, today I found an awesome site that helps make it more enjoyable. While I’ve been using lynda.com and w3schools to pick up the basics, today I stumbled upon projecteuler.net, a site that offers hundreds of problems that can be solved with programs that take less than one minute to run.
The first problem (and the easiest problem) is this: find the sum of all the numbers below 1000 that are divisible by either three or five.
This is a pretty easy problem from a programming standpoint. The logic is simple, and there are a few different ways to go about it. The best part is that once you get the correct answer, you receive access to a forum where other people share their own solutions. My solution, for example, was rather inefficient (naturally). Others were able to solve it in one line of code, whereas mine took 9 (different languages are also a factor here). However, I was able to solve the problem in just a few minutes using PHP, which is something fairly new to me.
While I can’t give you the answer (go solve it yourself), I can tell you that the process of solving a real problem makes learning much easier than simply hearing about the concepts and then trying to invent scenarios where they are used.
-
loganabbott liked this
-
30daysatatime posted this