I love programming puzzles - you get to stretch your coder muscles :-) Anyhow I really liked the first question in the 2008 Google Treasure Hunt - the Robot puzzle. Writing code to solve it was an nice little challenge as there's a couple of interesting real-world problems in there - especially if you write the code in C/C++…

I thought I'd done pretty well until a collegue of mine pointed out that there was a, ahem, tangential way of solving it…

Google Treasure Hunt.