How to solve Fizz Buzz with an easy explanation

Опубликовано: 11 Июль 2022
на канале: 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


Смотрите видео How to solve Fizz Buzz with an easy explanation онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Coding With Adam 11 Июль 2022. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 4,147 раз и оно понравилось 47 посетителям.