Programming Challenge: Nth Fibonacci Number I did a quick Google search for "favorite whiteboard interview problems" and came up with a few interesting possibilities. The one I've chosen here is Nth
Your boss has asked you to import a bunch of someone else's data into your perfect, precious, pristine database. Catch is, their data is hot garbage. What do you do? The challenge You
Today's challenge: given a number of digits, print the sum of all numbers that can be expressed using all such digits.
Scary name, simple concept. The symmetric difference of two sets is the items of each set not present in the other set. Once again, however, the fact that a problem is simple has no bearing on how often we may or may not see it in real world situations.
Once upon a time, computers were slow and disks were small. Every kilobyte—nay, every byte!—was precious, and a thing to be hoarded and safeguarded against the awful ravages of time and bloat. In those days, a great many stupid things were done in the name of efficiency. Here is one.
How much more RAM does your system need? We all know the only correct answer to this question is "all of it," but let's curtail our goals for a moment and think about how much we can actually use.
Ninety percent of what we do is putting data on a server. The other ninety percent is wondering where the hell it went.
I whine a lot about the kinds of challenges that get posted elsewhere on the internet. I call them math riddles, or comp sci riddles; it depends on the exact content of the challenge. Point is I hate them.