News for hackers. Stuff that matters.
Re:Typical programming interview questions. by lkozma on Monday February 21, 2011 @09:04AM (#2245409)
The problem arises when you are asked to provide further (possibly infinite nr) elements of the sequence: the first would still compress nicely as

"a(i)=i*10+1."

yours would be "a(3)=pi, a(4)=zebra, a(5)=cheetah, a(6)=akrcqfztaf a(7)=666" etc.

But I agree, if the question is just "what is the next element?" and so far only 3 are given, your answer is as good as anything else.

There are no comments on this comment yet.