An open API service indexing awesome lists of open source software.

https://github.com/m-thompson-code/fizz-buzz


https://github.com/m-thompson-code/fizz-buzz

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# FizzBuzz Demo and Solution

[Interactive Demo](https://m-thompson-code.github.io/fizz-buzz/)

Check out my [dev.to post](https://dev.to/mthompsoncode/solving-fizzbuzz-challenge-in-under-150-lines-of-code-341c) to why interviewers still use FizzBuzz.

## FizzBuzz

FizzBuzz is a well-known, simple coding assignment that is commonly used as an entry, technical whiteboard exercise in interviews.

Exercise: Write a function that takes an ordered Array of numbers: 1 through 100 and outputs an Array where each value is based on the input Array:

[Check out my suggested solution](https://github.com/m-thompson-code/fizz-buzz/blob/main/src/fizz-buzz/fizz-buzz.ts)

[Look at the tests](https://github.com/m-thompson-code/fizz-buzz/blob/main/src/fizz-buzz/fizz-buzz.spec.ts)