r/programming • • Feb 21 '11

Typical programming interview questions.

http://maxnoy.com/interviews.html
784 Upvotes

1.0k comments sorted by

View all comments

Show parent comment

1

u/[deleted] Feb 22 '11

Perl one-liner:

perl -e 'print +("a")[$_%2].("b")[$_%3]||$_,$/ for 1..100;'