Hacker News new | ask | show | jobs
by AnimalMuppet 1296 days ago
That's both amazing and disturbing. If you ask me to write FizzBuzz, I can do that with my eyes closed. If you asked me to write FizzBuzz using a B-Tree, I wouldn't have the faintest idea how to do it.

By the way, after they write FizzBuzz, ask them to modify it so that it prints "Rawr" or something if it's divisible by 7. If they printed "FizzBuzz" if it was divisible by 15, do they change their approach? If not, keep adding more strings for more prime factors until they do, or until they melt.

1 comments

For me the question would be what to print: do I print "Rawr" for e.g. 105 or do I print "FizzBuzz" now? What do we prioritize? Am I missing something?
You would print "FizzBuzzRawr".