| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
Create a Pull Request with your solution. Be sure to specify the following in your PR:
Be practical or creative, but limit your solution to a single source file, please.
There are now manifest files you can include in your submission so that your FizzBuzz solution will be run from the main script.
{
"$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": ""
}Place this file in the first child directory of /src in your solution.
{
"$schema": "../test_schema.json",
"location": "/src/Ruby",
"nameShort": "Ruby",
"nameLong": "Ruby",
"command": "wsl",
"commandParmaters": "",
"commandParametersArray": ["ruby", "./fizz_buzz.rb"],
"preExecute": ""
}Place this file in the first child directory of /src in your solution.
1 - Pattern-Lang is still concept only/
2 - Prints the sequence in PLA+ (single colour) on a Klipper printer (256×256 mm bed). Run from the Klipper console as FIZZBUZZ N=100. src/GCode/sim/simulate.py replays that call through Klippy batch mode and renders src/GCode/fizzbuzz_preview.png. run_all.ps1 skips the hash check: there is no host klipper command, and a toolpath cannot hash-match FizzBuzz.txt.
3 - Runs on a Homespring interpreter, such as hsrun from https://github.com/jneem/homespring (OCaml; build from source). The program is newline-sensitive, so it must keep LF line endings (a CRLF checkout makes it output nothing). run_all.ps1 skips it: hsrun is not on PATH, and hsrun prints a tree dump before the program output, so stdout cannot hash-match FizzBuzz.txt.
| Back | FazBrowse Home | New Git URL |