ironymaiden: (banana)
[personal profile] ironymaiden
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.

Date: 2020-04-16 01:40 pm (UTC)

Date: 2020-04-17 02:00 pm (UTC)
flexagon: (Default)
From: [personal profile] flexagon
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.

Profile

ironymaiden: (Default)
ironymaiden

November 2024

S M T W T F S
     12
3456789
10 111213141516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 25th, 2025 10:49 am
Powered by Dreamwidth Studios