Thursday, August 7, 2008

What my peers do

Many of my colleagues are fresh from college. With the zeal and enthusiasm they bring to the workplace, it is real fun, any day at work. One of them is not satisfied with his job, and is preparing for interviews and aptitude tests. Though I am good (I believe so atleast), I was bowled with his this question:

"How to remove the duplicates in a sorted array and return the number of unique elements in linear time and constant space..."

For once, I was not sure, if it was a technical question from one of those data structure concepts, or an aptitude quiz, or a jibe taken at me.

These lads sure are smart.