6
ZoidBob
7y

What's with people and the fizzbuzz problem? I don't get the meltdown tbh
What am I missing?

Comments
  • 0
    I think it tests your ability to write simple algorithms in code. There shouldn't be anything hard with it. But if there is... then there's a problem.
  • 0
    http://wiki.c2.com/?FizzBuzzTest

    There's more info on the website, but it seems to be for filtering out candidates whom skill is based purely on memory.
  • 1
    I just looked it up and it seems that there are just a bunch of different ways to code the solution, so it shows the employer how your mind solves problems and that youre not just scribbling stuff from memory
  • 0
    fizzbuzz (int yeet)
    if yeet % 3 == 0 || yeet % 5 == 0
    yeet % 3 == 0 ? Print (fizz): Print (buzz)

    Messy but oh well
  • 0
    @StacksStacks and what happens when yeet == 15? You get a wrong result
  • 0
    ```

    #!/bin/bash

    for i in {1..100} ; do

    number="${i}";

    [[ $((${i}%3)) = 0 ]] && { printf "Fizz"; number=""; } ;

    [[ $((${i}%5)) = 0 ]] && { printf "Buzz"; number=""; } ;

    echo "${number}" ;

    done

    ```

    is that the one? IMO it looks neat and works well.
  • 0
    It's interesting because it sets the bar so low that it's sitting on the floor, but apparently most developers fail it anyway. Either they write something that doesn't even run or they miss edge cases. Shocking but after having done some interviewing I'm not surprised. We do a simple dev test that tests your ability to read and implement a very basic, straightforward spec and in the last round not a single person submitted something that was on-spec.
  • 0
    I’ve had so many candidate not be able to complete FizzBuzz correctly.
Add Comment