All challenges
Algorithm challenge · DSA
Fizz Buzz
Difficulty
easy
Time
~20m
Format
Single
Grading
Auto-graded
#dsa#python#javascript#typescript#go#java#cpp#rust
Mission file // read carefullyeasy
Return an array of strings for 1..n: "Fizz" for multiples of 3, "Buzz" for multiples of 5, "FizzBuzz" for multiples of both, otherwise the number as a string.
Build with
fizzBuzz(n: int) → string[]PythonJavaScriptTypeScriptGoJavaC++Rust
4 tests · 1 hidden
Auto-graded on submit
Start challenge
Sign in to save your progress.