A programming challenge, popularized by Jeff Atwood, that prints the numbers from 1 to 100, where multiples of three print "Fizz," multiples of five print "Buzz," and multiples of both three and five print "FizzBuzz."

learn more… | top users | synonyms

0
votes
2answers
61 views

Fizzbuzz in C for console

I imagine I get a minuscule performance improvement by doing the %3 as a branch off the %5 rather than the other way round or as an if '%15'. Am I correct about that? (I know there is no practical ...
4
votes
1answer
106 views

Printing fizzy lines

Challenge Given a test case print out a FizzBuzz Series. Specifications The first argument is a path to a file. Each line includes a test case. Each test case is comprised of three spaced ...
3
votes
1answer
79 views

Finding the multiple of 3 and 5

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 ...
1
vote
1answer
57 views

Structured, No Heap FizzBuzz

Here was my first, simple C fizzbuzz: ...
3
votes
0answers
60 views

Over-engineered fizzbuzz

I've got this fizzbuzz project I am using for a blog series, among other things. In this version, the fizzbuzz function is fed from a Fibonacci generator. I'm particularly concerned with the ...
1
vote
2answers
65 views

Simplest way to write “FizzBuzz” in Rust

Can you write an a simpler Rust fizzbuzz program than I have? Use my output or the spec: Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of ...
3
votes
0answers
84 views

FizzBuzz… with style (js, jquery, html, css) (and questions…)

I discovered the FizzBuzz test while looking up something else on stackoverflow, so I decided to try it and see what I would come up with. I'm kind of new to jquery and js, so I'm looking for a ...
34
votes
7answers
12k views

Interview coding test: Fizz Buzz

I was recently given a coding test to complete for a potential client. It was a FizzBuzz-type of thing with a two-hour time limit. I had a request to write basic FizzBuzz, then add a special case, ...
12
votes
5answers
3k views

Caffeine-Driven FizzBuzz

I have been given following problem to solve: If the integer is divisible by 3, return the string "Java". If the integer is divisible by 3 and divisible by 4, return the string "Coffee" If the ...
3
votes
1answer
75 views

Beginner FizzBuzz solution

Is this a bad solution to the FizzBuzz thing? I decided to make it print "Fizz Buzz" for the numbers divisible by 3 and 5 just for practice/understanding. ...
4
votes
2answers
78 views

FizzBuzz in ToyVM

Since I have my own virtual machine and an assembler for it, I decided to test it with a FizzBuzz implementation. I have this: fizzbuzz.toy ...
3
votes
2answers
115 views

Tail recursive FizzBuzz in Common Lisp

I solved FizzBuzz using tail recursion. Is it efficient enough? ...
4
votes
1answer
104 views

FizzBuzz without hard-coded logic checks

I'm a self-taught (on the job) programmer, always looking for ways to expand my skills. Seeing all the FizzBuzz examples with hard-coded logic checks made my head hurt, so I thought I'd try my hand at ...
2
votes
2answers
102 views

Fizz Buzz in Haskell

Pretty straightforward, I implemented the popular fizz buzz challenge in Haskell. ...
17
votes
8answers
4k views

First solution to FizzBuzz

I'm a first year college student, Computer Science major. This is my crack at the FizzBuzz interview question in Java. What kind of improvements could I make? ...
4
votes
1answer
89 views

FizzBuzzWoof in F#

I'm learning F#, and have challenged myself to write a good functional implementation of FizzBuzzWoof. (The difference from "standard" FizzBuzz is that any number that either is divisible by or ...
6
votes
2answers
103 views

Parameterized FizzBuzz

This is a FizzBuzz program, designed to take parameter inputs for start and ending numbers, as well as a "fizz" number and a "buzz" number. The program then outputs the numbers one per line. If the ...
1
vote
1answer
46 views

FizzBuzz in the MIPS ISA

The title pretty much explains it. This is the first program I've written in assembly, so any criticism, either on programming style or saving instructions, would be appreciated. ...
10
votes
1answer
90 views

FizzBuzz: A PowerShell Story

After reading way too much into what fizzbuzz was I though PowerShell could easily have its way with this. ...
4
votes
2answers
67 views

FizzBuzz functional implementation

I was playing around with ES6 arrow functions, currying and partial application and I decided to try a functional implementation of the FizzBuzz problem: ...
8
votes
1answer
169 views

Such code, Much wow, very FizzBuzz

So, I've written FizzBuzz for a dialect of JavaScript called Dogescript. It has the same functionality as JavaScript, it simply changes some of the syntax points: [A few from the language spec] <...
21
votes
4answers
2k views

1, 2, Fizz, 4, Buzz: FizzBuzz

I just recently started working on python (interesting language, actually), and, as I always do when I learn a new language (with the exception of BrainFuck, that's too hard), I write a FizzBuzz ...
6
votes
2answers
80 views

Data-structure exploration

On my quest to learn Ruby I figured exploring the proper usage of different data-structures would be invaluable, including strings, arrays and hashes. I decided to build a hash containing the numbers ...
6
votes
3answers
96 views

Badger's FizzBuzz

I love the badger's song (YouTube), so I wrote a FizzBuzz about it. The thing is, I've been writing Javascript for years but I'm still not sure about the best practices. So FizzBuzz seemed a simple ...
9
votes
2answers
320 views

F#zzBuzz: Learning the easy way

So I made a quick programme in F# to do FizzBuzz, I'm trying to learn more languages, so I figured I'd do something functional for a change. (Haskell is also on the list.) FizzBuzz is pretty self-...
6
votes
3answers
137 views

Fizzbuzz in COBOL, Verbose dinosaur style

I was long a professional in COBOL, but noone ever dared comment my style. As the FizzBuzz seems fashion here, I made one. Verbose, of course, we're speaking about COBOL. I know I could have made in ...
19
votes
1answer
228 views

You have no respect for logic

Inspired by Hosch250, TopinFrassi, Legato and the recent milestone of having our 100th fizzbuzz question on Code Review I decided to add an ArnoldC FizzBuzz to the collection. I haven't found any ...
7
votes
1answer
122 views

FizzBuzz in Scratch

Before you close vote: Yes, Scratch questions are okay. Link to project on Scratch For the hundredth fizzbuzz question, I'd thought I'd spruce it up a bit and post something new. So, first ...
4
votes
2answers
79 views

FizzBuzz in T-SQL

I've written a simple FizzBuzz in TSQL using some IF loops. Here's a SEDE link to run it in your browser. ...
9
votes
3answers
991 views

FizzBuzz in VBA

FizzBuzz in VBA. Takes start and end numbers as arguments. Will handle any pair of integers to +- 2 Billion or so, determine whether the sequence is increasing or decreasing and output numbers to the ...
8
votes
1answer
76 views

Haskell CodeEval FizzBuzz

CodeEval FizzBuzz Quick Description: Take 1 command line argument of a file-path. This file will contain test cases formatted as such 3 space separated numbers per line. For numbers <...
5
votes
2answers
296 views

Functional, recursive FizzBuzz in JavaScript

I was talking to a coworker about over engineering things, which somehow lead to me over engineering the hell out of fizzbuzz. I went for a functional recursive solution in JavaScript. What do you ...
3
votes
1answer
53 views

Positive and negative FizzBuzz

I want to eliminate code duplication in my Fizz-Buzz like program. Any ideas? ...
6
votes
4answers
2k views

FizzBuzz in Python using a class

I recently read the book clean code by Robert C. Martin and I'm trying to apply his style of writing methods to the FizzBuzz programming example. So far I have two "public" methods called: ...
1
vote
0answers
334 views

“Partial solution” on Code Eval for Clojure FizzBuzz

I'm just getting started on the site CodeEval, and I submitted my first solution today. What I don't understand is why it's marking my (working) answer as only a "partial solution". The site doesn't ...
3
votes
2answers
286 views

Most efficient FizzBuzz solution in Ruby

I would appreciate any feedback concerning my analysis of the most efficient FizzBuzz solution programmed in Ruby. I submit that a Case-statement solution is more efficient than utilizing a ...
5
votes
1answer
165 views

FizzBuzz in JavaScript using Ramda

Just getting up to speed in Ramda, I have implemented this: ...
15
votes
1answer
123 views

Musical Fizzbuzz

I wrote some code using ChucK : Strongly-timed, Concurrent, and On-the-fly Music Programming Language and would like a review. I broke down the logic into a number of classes, all of which are shown ...
5
votes
2answers
661 views

FizzBuzz for CodeEval

I'm a beginner programmer and decided to try some coding challenges. I found CodeEval and attempted the first challenge, FizzBuzz. However upon submitting my code I found that my submission only ...
2
votes
1answer
75 views

Who wants a FizzBuzz?

I have been playing around with the Io language, and this is my second toy, after the yes program that is just ...
3
votes
2answers
265 views

A better FizzBuzz

Is there any way I can make this FizzBuzz better? ...
10
votes
3answers
129 views

FizzBuzz in accordance with standards

I wrote FizzBuzz. My aim is to use C# Code Standards correctly, and write flexible code. How can I improve my solution according to code standards? How can it be better in general? ...
19
votes
2answers
230 views

Commodore-FizzBuzz

I felt nostalgic recently, and decided to install a Commodore-64 emulator. C-64 BASIC 2.0 is the first language I ever programmed in... some 20 years ago (yes, C-64 was already well beyond deprecated ...
5
votes
2answers
185 views

FizzBuzz in Swift 2

I saw this question: Is this FizzBuzz Swift-y? and I couldn't resist the temptation to attempt a Swift2 implementation: ...
14
votes
1answer
134 views

Embedded FizzBuzz

Recently, I have started to enter the realms of embedded systems programming. And, as my first major project, I thought I'd do the obvious: FizzBuzz. However, this is a little different: this is a ...
8
votes
2answers
654 views

Fizz having an argument with Buzz

For my current project I need to validate responses. The requests will be send from multiple different shell scripts and should be controlled from another script. I'd never targeted a ...
2
votes
2answers
95 views

Idiomatic Ruby FizzBuzz

Can anyone offer any criticism on the following at a simple FizzBuzz in terms of Ruby idioms or otherwise? ...
8
votes
2answers
226 views

Is my implementation of FizzBuzz overkill?

I am doing FizzBuzz on a take home test (in Unity). I am sure this is just a competency check, but I went ahead and followed some coding conventions such as using constant fields, dependency ...
7
votes
1answer
119 views

Extensible FizzBuzz in Ruby

The title says it all. This is yet another FizzBuzz implementation where you can specify the words you want to use, though it autoselects the divisors as the first n primes other than 2, rather than ...
14
votes
2answers
212 views

FizzBuzzLizardSpock

I decided that since I was learning AngularJS and Bootstrap, I'd be remiss not to post a FizzBuzz, but FizzBuzz bores me, so I've extended it. My version of FizzBuzz is configurable, and allows you ...