I’m on ur github, solvin ur Eulers

There’s two things I’ve recently started getting back into. The first of these is Project Euler. For those of you allergic to clicking links, Project Euler is a series of maths problems which contributors solve with programming. For example, the first question is “Add all the natural numbers below one thousand that are multiples of 3 or 5.“.

Any language or method is valid so long as you generate the correct answer (barring the method of looking up the answer elsewhere) but the focus most people take is to do it as fast as possible and in as few lines of code possible. There’s even a bunch of people solving the problems in assembly code. New mind please, mine just blew.

It’s a great test of your problem solving skills and a great way to learn new things about your chosen programming language. Do you know how to use BigIntegers or reverse a string in Java? I sure as hell didn’t, nor would I have normally looked it up. Learning!

If you’re at all interested (and not allergic to clicking links) you can find it here. It’s probably about time I showed off some source code.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.