How to solve Fizz Buzz with an easy explanation

Опубликовано: 16 Январь 2025
на канале: Coding With Adam
4,147
47

In this video we solve a common interview question Fizz Buzz. After this video you will understand the problem and how to solve to it. We will solve fizz buzz using 2 different solutions. We will use JavaScript however the same concepts apply to many other languages(.Net C#, Java, Python, TypeScript)

Interesting fact Fizz Buzz is also a drinking game.

GitHub:
https://github.com/CodingWith-Adam/fi...

Problem Statement:
Print numbers 1 to n (or store in an array)
If the number is divisible by 3 print “Fizz”
If the number is divisible by 5 print “Buzz”
If the number is divisible by 3 and 5 print “FizzBuzz”
If none of the above conditions are true print the number

Chapters
00:00 Problem description
00:34 Example
01:33 Setup
02:12 Solution 1
06:49 Solution 2

#coding #codinginterview #programming #leetcode