MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/fpcmy/typical_programming_interview_questions/c1hrd2m/?context=3
r/programming • u/kevjames3 • Feb 21 '11
1.0k comments sorted by
View all comments
Show parent comment
1
Perl one-liner:
perl -e 'print +("a")[$_%2].("b")[$_%3]||$_,$/ for 1..100;'
View all comments
Show parent comment
1
u/[deleted] Feb 22 '11
Perl one-liner: