Sign inSign up

carlpaton/fizzbuzz

By carlpaton

•Updated about 8 years ago

Fizz Buzz

Image
0

149

carlpaton/fizzbuzz repository overview

Build Status

⁠What is FizzBuzz?

A popular interview question is the "FizzBuzz test", its based on a children's game where you count from 1 to 100 and for multiples of 3 say 'Fizz', multiples of 5 say "Buzz", if both say 'FizzBuzz' else say the number, example 8.

https://carlpaton.co.za/docker-fizzbuzz-image/⁠

⁠Translated into to code domain

"Write a program that prints the numbers from 1 to 100. But for multiples of three print 'Fizz' instead of the number and for the multiples of five print 'Buzz'. For numbers which are multiples of both three and five print 'FizzBuzz'."

⁠Source Code

This code is MIT and can be downloaded at https://github.com/charleyza/FizzBuzz⁠

Dockerfile to build from cloud.docker.com ~ https://github.com/charleyza/FizzBuzz/blob/master/Dockerfile⁠

env_file_name.env file for injection ~ https://github.com/charleyza/FizzBuzz/blob/master/env_file_name.env⁠

fizzbuzz.sh shell script to pull the image and spin up a new container - https://github.com/charleyza/FizzBuzz/blob/master/fizzbuzz.sh⁠

Tag summary

Content type

Image

Digest

Size

143 MB

Last updated

about 8 years ago

docker pull carlpaton/fizzbuzz:v1.1.0