Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Typical programming interview questions.. Parent comment
"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.
"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.