Fizz Buzz - Coding Interview Question

Pubblicato il: 20 agosto 2020
sul canale di: Team AlgoDaily
223
9

Fizz Buzz is a classic interview question that apparently many engineering candidates can't solve! Let's cover it today.

We're given a number in the form of an integer n.

Write a function that returns the string representation of all numbers from 1 to n based on the following rules:

If it's a multiple of 3, represent it as "fizz".

If it's a multiple of 5, represent it as "buzz".

If it's a multiple of both 3 and 5, represent it as "fizzbuzz".

If it's neither, just return the number itself.



Try to solve this problem at https://algodaily.com/challenges/fizz...



Thank you to Fesliyan Studios for background music.


In questa pagina del sito puoi guardare il video online Fizz Buzz - Coding Interview Question della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Team AlgoDaily 20 agosto 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 223 volte e gli è piaciuto 9 spettatori. Buona visione!