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

1
vote
1answer
19 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. ...
9
votes
1answer
57 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
55 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: ...
7
votes
1answer
139 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] ...
20
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 ...
7
votes
2answers
73 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
90 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
312 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 ...
6
votes
3answers
86 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 ...
17
votes
1answer
198 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 ...
6
votes
1answer
101 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
67 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
947 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
62 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
112 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
50 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: ...
0
votes
0answers
86 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
232 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
117 views

FizzBuzz in JavaScript using Ramda

Just getting up to speed in Ramda, I have implemented this: ...
15
votes
1answer
103 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
479 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
73 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
178 views

A better FizzBuzz

Is there any way I can make this FizzBuzz better? ...
10
votes
3answers
117 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? ...
18
votes
2answers
226 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
120 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: ...
13
votes
1answer
117 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
620 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
88 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
168 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
78 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
202 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 ...
6
votes
2answers
91 views

FizzBuzzWoofFooBar - follow-up

I took all your suggestions to heart and I think it improved the code a lot. The Map got it's own typedef: ...
6
votes
2answers
181 views

FizzBuzz-like Assignment

I have an assignment for my Java programming class that is kind of an expanded FizzBuzz-like question: Write a program that iterates through numbers from 0 to 113 using a loop. Print the ...
17
votes
1answer
279 views

Ultimate FizzBuzz

Swift's SequenceType is a useful means of generating a sequence of values, and it makes it particularly useful iterate over these values. I don't really have much ...
12
votes
1answer
249 views

FizzBuzzWoofFooBar

My C++ was starting to get rusty and I never touched some of the newer features. Reason enough to try something simple and make it overly complicated: FizzBuzz with bonus features. For now we'll call ...
3
votes
2answers
200 views

FIZZ BUZZ -challenge program with adjustable intervals

This is again a solution to the codeEval challenge #1. It was accepted by codeEval, but please let me know if I can improve it anyway somehow? ...
4
votes
2answers
93 views

Reducing memory usage for FizzBuzz in R

I've been trying all night to get my fizzbuzz to use below 20 MB of RAM but I can't seem to get it much smaller than this. ...
6
votes
1answer
93 views

General Fizzbuzz

I'm learning Rust now and created a program to solve the task General Fizzbuzz on Rosetta Code. For example, given: 20 3 Fizz 5 Buzz 7 Baxx where the first line ...
4
votes
2answers
60 views

FizzBuzz Kickoff

My first FizzBuzz question (well, I asked, then deleted, one previously), and my very first VB.NET question. ...
3
votes
3answers
193 views

Java FizzString

I am testing what knowledge I have with the FizzBuzz tests in Java. This is the one I just completed: Given a string str, if the string starts with "f" return "Fizz". If the string ends with "b" ...
2
votes
2answers
114 views

Improving the efficiency of my FizzBuzz algorithm [closed]

I worked on an exercise from codewars, which is a variation of the popular fizzbuzz game. (If the link doesn't work, you may need to reload the page.) In this variation, I'm supposed to find the sum ...
5
votes
1answer
178 views

Fizzbuzz in Python

I'm new to Python and wondering what can be improved with the following super novice program - in terms of the solution and code style etc. test_fizzbuzz.py ...
10
votes
2answers
186 views

FizzBuzz Challenge

This bit of code is a small game to see how long you play a game of FizzBuzz without messing up. Code: The top of the code: ...
4
votes
1answer
233 views

FizzBuzz from a file

This was found on CodeEval. Challenge: Write a program that prints out the final series of numbers where those divisible by X, Y and both are replaced by “F” for fizz, “B” for buzz and “FB” for fizz ...
3
votes
2answers
294 views

FizzBuzz-type program that reads/writes to Excel

I'm new to Groovy, and coming from PHP it's been a rough transition. The code below works. However, I would appreciate feedback on how better to write it and follow good practice with Groovy. I ...
16
votes
5answers
3k views

Linq me a FizzBuzz

I got this requirement recently: Write some code that prints out the following for a contiguous range of numbers: the number 'fizz' for numbers that are multiples of 3 'buzz' for numbers ...
8
votes
2answers
313 views

FizzBuzz from a casual rubyist

As a casual Rubyist I am mainly interested, how ideomatic my solution is. ...
18
votes
2answers
1k views

Writing FizzBuzz like this makes me feel like a small child

For the sake of full disclosure, this was written with bananas, not apples. The doctor may not be kept away. With AppleScript highlighting: For Copy&Pasting: ...