3 ms·
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 wo
by AnimalMuppet 4y 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.
- deleted 4y ago[deleted]
- randomluck040 4y agoFor 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?
- AnimalMuppet 4y agoYou would print "FizzBuzzRawr".