The Interview

A mathematician, an accountant and an economist apply for the same job.
The interviewer calls in the mathematician and asks “What do two plus two equal?” The mathematician replies “Four.” The interviewer asks “Four, exactly?” The mathematician looks at the interviewer incredulously and says “Yes, four, exactly.”
Then the interviewer calls in the accountant and asks the same question “What do two plus two equal?” The accountant says “On average, four – give or take ten percent, but on average, four.”
Then the interviewer calls in the economist and poses the same question “What do two plus two equal?” The economist gets up, locks the door, closes the shades, sits down next to the interviewer and says, “What do you want it to equal”?

Advertisements

Guess the Number Game

A few months back, I managed to create a second draft of a popular number guessing game. My first draft was an elementary attempt, and one of the first JavaScript code I wrote. It was for proving I could write JavaScript code and its execution flow. I revisited the exercise and decided to use jQuery and create something more interactive and fun.

The exercise employs Binary Search Algorithm. It is one of my favourite algorithms due to its simple and logical approach. It is very useful for getting people to think in terms of binary.

The second draft can be visited here. In the third draft I’m planning on using MV* structure, in particular Backbone.js.