kind of a serious question
Apr. 15th, 2020 10:48 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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.
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.
no subject
Date: 2020-04-16 01:40 pm (UTC)Have a banana.
no subject
Date: 2020-04-17 02:00 pm (UTC)