You can count on me.

I recently had an interview (July 2012) where I was given a problem and asked to write the pseudo code for it on paper, the interviewers would come back and we would review it. I choked and actually couldn’t come up with a solution at the time for this problem.

The Problem:

There is a counter that counts to 1 000 000 from the beginning of the month and by the end of the month it will reach 1 000 000, say if you visited the 23rd it would reflect the right number. Using javaScript, which of course is client side, not server. At the time it seemed like that was no problem at all but, probably due to nerves, I was blanking on answers, and coming up with solutions that seemed to not make sense.

This is literally just for me to show that I could in fact do it. Although I am doing it per day and it is only going to 10 000. It is not the most elegant solution, but it is a solution.