Skip to content

panel/fizzbuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FizzBuzz 2.0

This is a repo that houses multiple implementations of the age old interview question FizzBuzz. The idea is to take a relatively simple problem with an extremely testable output and try to apply new, crazy, innovative or just weird solutions to it. This is a playground to try out that new technique, pattern or library and share code and solutions with other engineers.

Mechanics

  1. Every implementation is in its own module.
  2. An implementation module must export a function with an arity of 0
  3. The exported function must return an array

Acceptatce Criteria

For all integers between 1 and 100 inclusive, when the integer is divisible by 3, print 'Fizz'. When the interger is divisible by 5, print 'Buzz'. When the integer is divisible by both 3 and 5, print 'FizzBuzz'. When none of the previous statements are true, print an empty line.

Definitions

  • Print: push to the return array
  • empty line: an empty string "printed" (ie. pushed to the return array)

Adding An Implementation

  1. Create a new folder with named after a key aspect of your implementation
  2. Have an index.js file that exports a function with arity of 0 and returns your solution array.
  3. In ./fizzbuzz.test.js add your implemenation according to the example below:
const canonical = require('./canonical');
buildSuite('Canonical', canonical);

Questions?

Reach out to @paul.nelson or to the #frontend-cop channel on slack.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors