The LeetCode Beginner's Guide


Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

412. Fizz Buzz

FizzBuzz is a childhood game that iterates over a range of numbers and uses simple logic to decide whether to say a "Fizz," "Buzz," or a number. Through this problem, you will learn to convert that logic into code, and you will be introduced to frequently used operations like modulo and string concatenation. We encourage you to try solving 412. Fizz Buzz on your own first, then return here to watch the video solution.

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content