Project Euler

Project Euler is a set of mathmatically-oriented open challenges for developers.  I started working my way through these the other day with a bent of using C# and LINQ as much as possible.

I’ve shared my source on my public GitHub

For example: Problem #4 “Find the largest palindrome made from the product of two 3-digit numbers.”

Use of LINQ to express the cartesian join between the sets of 3 digit numbers dramatically simplifies the amount of code written.  While the code is somewhat inefficient – I don’t dedupe reflexive pairs of numbers between sets – it is quite elegant.


About stephbu

Architect, Cyber-brickie, Father, Cook, Financier, Taxi Service
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

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

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

Google photo

You are commenting using your Google 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