Browse by Tags

Euler Problem 14: Learn to Memoize
This is going to be fun. It’s a bit of LINQ, a bit of academic Computer Science, and a bit of meteorology. Euler Problem 14 concerns a sequence referred to as hailstorm numbers. Hailstorm number...
Long time, no Euler (or YAEPS # 13)
Well, it’s been a long time since I’ve taken the time to solve and blog about one of the Euler problems.  It was time to pick this up again. Problem 13 says: Work out the first 10 digits of the sum...
When Cast<T> doesn’t Cast to T
A friend asked me about some issues he was having using Enumerable.Cast<T>(). In his mind, it just wasn’t working. Like so many problems, it was working correctly, just not the way he expected. It...
Book Review: Essential LINQ
During my recent vacation, I read the final print version of Essential LINQ , by Charlie Calvert and Dinesh Kulkarni. Normally, I try to answer the question, “Who should read this book?” That answer eluded...
Extension Methods and Null Arguments
A little while ago, I did a DNR TV on C# 3.0 . During that, I talked about preserving null semantics when  you write extension methods.  I made the point that you should never test if the first...
Euler Problem 10
Patrick posted his solution earlier this week. I figure it was time to add mine. Also, Octavio Hernandez pointed out in the comments to problem 8 that he had discussed similar code constructs in his blog...
A Functional Programming Q & A
I received this question in email from one of my readers, and I thought it would be of general interest: I find myself with two arrays of the same size and I want to create a third that combines each element...
Project Euler: Problem 1
I am starting a new series. A friend recently pointed me at the Project Euler problems. You can see the project here: http://projecteuler.net/ As I finish them, I'll post an explanation of the problem...
Looking Inside C# Closures
If you're like me, you understand new language features better when you see what the new language features generate for you. Closures in C# are no different. There's quite a bit that goes on under...

Search

Go

Blog Group Links

Nascar style badges