«« Next » « Previous
«« Next » « Previous

Link Details

Vote early, vote often! When you help pick the links, you'll like DZone better. Login and vote now.
Link 93521 thumbnail

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.
  • 7
  • 0
  • 1142
  • 509

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (0)