ironymaiden: (banana)
ironymaiden ([personal profile] ironymaiden) wrote2020-04-15 10:48 pm
Entry tags:

kind of a serious question

why do people fail at FizzBuzz?*

do they just not remember what modulo does?

or do they get tripped up trying to make it as elegant as they can on the first pass?

something else?



*a coding exercise developed for interviews: print numbers from 1 - 100. if number is divisible by 3, print fizz instead of the number. if number is divisible by 5, print buzz instead of the number. if number is divisible by 15, print fizzbuzz instead of the number.
phosfate: Ouroboros painting closeup (Default)

[personal profile] phosfate 2020-04-16 01:40 pm (UTC)(link)
flexagon: (Default)

[personal profile] flexagon 2020-04-17 02:00 pm (UTC)(link)
It's not just a coding exercise; it's also a game you can play sitting/standing in a circle with other people. I say "one", the person to the right of me says "two", but you know what happens at the special numbers. I initially thought you were asking why people mess THAT up and... it's actually pretty easy to mess that up, especially on sadistic mode where you're doing it as a circus warmup and doing squats with every count.