4 ms·
Argh. I should know what FizzBuzz is before I write one. I've updated the implementation in my post to be... not wrong. (It's a little different from yours, th
by billjings 13y ago
Argh. I should know what FizzBuzz is before I write one. I've updated the implementation in my post to be... not wrong. (It's a little different from yours, though.)
- nonchalance 13y agoI hope it's shorter :) 60 chars: !($1%3){$2="Fizz"}!($1%5){$2=$2 "Buzz"}!$2{$2=$1}{print $2}
- billjings 13y agoNice. Using $2 as an auto-clearing global is a neat little hack!