Skip to content

The "Fizz-Buzz test" is an interview question designed to help filter out the 99.5% of programming job candidates who can't seem to program their way out of a wet paper bag. The text of the programming assignment is as follows: "Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number a…

License

Notifications You must be signed in to change notification settings

sharpninja/FizzBuzz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The FizzBuzz Test Collection

The "Fizz-Buzz test" is an interview question designed to help filter out the 99.5% of programming job candidates who can't seem to program their way out of a wet paper bag. The text of the programming assignment is as follows:

"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"." - FizzBuzz Test

Solutions

Submit Your Solution!

Create a Pull Request with your solution. Be sure to specify the following in your PR:

  • Language
  • Compiler/SDK Required to Build
    • Include the specific OS and repository to obtain the Compiler/SDK from. Linux or Windows accepted.
  • Script to Perform the Build

Be practical or creative, but limit your solution to a single source file, please.

NEW

There are now manifest files you can include in your submission so that your FizzBuzz solution will be run from the main script.

test.json For Compiled Solutions

{
    "$schema": "../test_schema.json",
    "location": "/src/C",
    "nameShort": "C",
    "nameLong": "C",
    "buildCommand": "wsl",
    "buildCommandParameters": "./linux_build.sh",
    "buildCommandParametersArray": [ ],
    "executeCommand": "wsl",
    "executeCommandParameters": "",
    "executeCommandParameters": [ "./bin/linux/fizzbuzz" ],
    "preBuild": ""
}
Parameters can be passed as a single string, an array of strings, or both simultaneously.

test.json Fields

  • location - Relative path from the root of the project to the working directory of your solution.
  • nameShort - A (very) short name for your solution with no spaces.
  • nameLong - A descriptive name for your solution, which may have spaces.
  • buildCommand - The command to execute in the shell to build your solution.
  • buildCommandParameters - The parameters to pass to your buildCommand.
  • executeCommand - The command to execute in the shell to run your solution.
  • executeCommandParameters - The parameters to pass to your executeCommand.
  • preBuild - A command to execute before building your solution.

Place this file in the first child directory of /src in your solution.

test_nobuild.json For Scripted Solutions

{
    "$schema": "../test_schema.json",
    "location": "/src/Ruby",
    "nameShort": "Ruby",
    "nameLong": "Ruby",
    "command": "wsl",
    "commandParmaters": "",
    "commandParametersArray": ["ruby", "./fizz_buzz.rb"],
    "preExecute": ""
}
Parameters can be passed as a single string, an array of strings, or both simultaneously.

test_nobuild.json Fields

  • location - Relative path from the root of the project to the working directory of your solution.
  • nameShort - A (very) short name for your solution with no spaces.
  • nameLong - A descriptive name for your solution, which may have spaces.
  • command - The command to execute in the shell to run your solution.
  • commandParameters - The parameters to pass to your executeCommand.
  • preExecute - A command to execute before running your solution.

Place this file in the first child directory of /src in your solution.


1 - Pattern-Lang is still concept only/

About

The "Fizz-Buzz test" is an interview question designed to help filter out the 99.5% of programming job candidates who can't seem to program their way out of a wet paper bag. The text of the programming assignment is as follows: "Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number a…

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

  • PowerShell 41.5%
  • C# 22.1%
  • Assembly 14.6%
  • Java 3.4%
  • F# 2.9%
  • C 2.9%
  • Other 12.6%