By rlamarch
via dustindiaz.com
Published: Jul 10 2008 / 18:30
I’ve titled this post as a “Programming” brain teaser because ideally you could solve it in any language. For the sake of the exercise, I’m going to show sample code in JavaScript, but feel free to use your language of choice. But first and foremost, the reason I’m writing about this is because I ran into a logic problem last week which I thought I would be able to solve in two seconds. Sadly it wasn’t the case so I’d like to share that same problem.
SaveShareSend
Tags: games, javascript
Add your comment