jump to navigation

Using FizzBuzz to Find Developers who Grok Coding January 24, 2007

Posted by Imran Ghory in job interviews, Software development.
trackback

On occasion you meet a developer who seems like a solid programmer. They know their theory, they know their language. They can have a reasonable conversation about programming. But once it comes down to actually producing code they just don’t seem to be able to do it well.

You would probably think they’re a good developer if you’ld never seen them code. This is why you have to ask people to write code for you if you really want to see how good they are. It doesn’t matter if their CV looks great or they talk a great talk. If they can’t write code well you probably don’t want them on your team.

After a fair bit of trial and error I’ve come to discover that people who struggle to code don’t just struggle on big problems, or even smallish problems (i.e. write a implementation of a linked list). They struggle with tiny problems.

So I set out to develop questions that can identify this kind of developer and came up with a class of questions I call “FizzBuzz Questions” named after a game children often play (or are made to play) in schools in the UK.

In this game a group of children sit around in a group and say each number in sequence, except if the number is a multiple of three (in which case they say “Fizz”) or five (when they say “Buzz”). If a number is a multiple of both three and five they have to say “Fizz-Buzz”.

An example of a Fizz-Buzz question is the following:

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”.

Most good programmers should be able to write out on paper a program which does this in a under a couple of minutes.

Want to know something scary ? – the majority of comp sci graduates can’t. I’ve also seen self-proclaimed senior programmers take more than 10-15 minutes to write a solution.

I’m not saying these people can’t write good code, but to do so they’ll take a lot longer to ship it. And in a business environment that’s exactly what you don’t want.

This sort of question won’t identify great programmers, but it will identify the weak ones. And that’s definitely a step in the right direction.

Comments»

Monkeyget's avatar 1. Monkeyget - January 24, 2007

I have asked a fizzbuzz question recently. The position was for a .NET developer.
I asked a candidate who claimed to have “one year of experience in .NET” to create the simplest thing I could think of: an application that takes two number and displays the sum of them.
It took five minuts and a bit of my help just to create a new project, as much time to create the visual aspect of the window (drag and drop 2 textbox and a button!) and in the end it didn’t even compiled.

Actually I don’t think asking a “Fizz-Buzz” question is a good thing and I wouldn’t recommend on doing it. I only did it because I knew the candidate wasn’t worth it and wanted to demonstrate it to the boss which had no technical knowledge and therefore couldn’t understand that not knowing what an interface is and not being able to describe what a class and an object are, is a big no-no.
As you said, you still don’t know if he can write good code. You only know that he/she can write the most basic code but you lost some precious time for the interview. Is it worth it? Maybe asking to design and write something more complicate but not that complicate would be better.

Every company worth a damn and caring about who they are hiring : http://weblog.raganwald.com/2006/07/hiring-juggler_02.html

Johnny's avatar Johnny - December 24, 2012

The problem:

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”.

A solution doing exactly what was specified in the order it was specified, and avoiding excessive division (no modulo 15 test):

for( int i=1; i<=100; ++i ){
bool modThree = ( i % 3 ? true : false );
bool modFive = ( i % 5 ? true : false );
if( !modThree && !modFive ){
print i;
}else{
if( modThree ) print "Fizz";
if( modFive ) print "Buzz";
}
}

The booleans/ternary are just for readability but could of course also be solved with ints and "== 0" checks.

Johnny's avatar Johnny - December 24, 2012

The problem:

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”.

A solution doing exactly what was specified in the order it was specified, and avoiding excessive division (no modulo 15 test):

for( int i=1; i<=100; ++i ){
.bool modThree = ( i % 3 == 0 ? true : false );
.bool modFive = ( i % 5 == 0 ? true : false );
.if( !modThree && !modFive ){
..print i;
.}else{
..if( modThree ) print "Fizz";
..if( modFive ) print "Buzz";
.}
}

The booleans/ternary are just for readability but could of course also be solved with ints as follows (note how hard to read it becomes when you throw away the booleans and have to resort to either ugly "== 0" checks or (even worse) implicit checks below where you are treating the integers like booleans):

for( int i=1; i<=100; ++i ){
.int modThree = i % 3;
.int modFive = i % 5;
.if( modThree && modFive ){
..print i; // neither divisible by 3 nor 5
.}else{
..if( !modThree ) print "Fizz";
..if( !modFive ) print "Buzz";
.}
}

Awtar Singh's avatar Awtar Singh - May 2, 2018

This code is wrong.

In statement if( !modThree && !modFive ){ … You will have to use OR and not AND

Yeo Fatogoma's avatar Yeo Fatogoma - July 27, 2018

Solution

for(i=1;i<=100;i++){
if((i%3===0)&&(i%5===0)){
console.log("FizzBuzz");
}
else if(i%3===0){
console.log("Fizz");
}
else if(i%5===0){
console.log("Buzz");
}
else{
console.log("i");
}
}

yeo fatogoma (@YFatogoma)'s avatar yeo fatogoma (@YFatogoma) - July 27, 2018

Solution

for(i=1;i<=100;i++){
if((i%3===0)&&(i%5===0)){
console.log("FizzBuzz");
}
else if(i%3===0){
console.log("Fizz");
}
else if(i%5===0){
console.log("Buzz");
}
else{
console.log("i");
}
}

Gib's avatar Gib - August 24, 2013

//I would write something lke this
public class FizzBuzz {
public static void main(String[] args) {
for(int i=1;i<=100;i++) {
if(i%3==0) {
System.out.println("Fizz");
continue;
}
else if(i%5==0) {
System.out.println("Buzz");
continue;
}
else if(i%3==0&&i%5==0){
System.out.println("FizzBuzz");
continue;
}
System.out.println(i);
}
}
}

elmysterio's avatar elmysterio - August 28, 2013

This does not work. You will never get FizzBuzz printed.

Tom Guilleaume's avatar Tom Guilleaume - December 24, 2013

Am I the only one that would use two independent if statements?


if (i % 3 == 0){
echo ‘Fizz’;
}
if (i % 5 == 0){
echo ‘Buzz’;
}

So if both are true, it will print “FizzBuzz” and augment the two strings….

Michael Andrew's avatar Michael Andrew - February 23, 2016

Funny thing is, you’d fail the test. You’re checking for 3 and 5 individually before you check for both. It should only check for 3 and 5 after it has checked that it isn’t both. That program will never reach the “FizzBuzz, and will print out “Fizz” everywhere it should have said “FizzBuzz”

Gayan's avatar Gayan - March 26, 2016

Tom Guilleaume – You got the correct answer. It is simple and working !

Steve's avatar Steve - April 16, 2016

Tom Guilleaume – Where do you print the number if both conditions are false?

Tim Myers's avatar Tim Myers - November 20, 2016

You have to put the

else if(i%3==0&&i%5==0){

line first

Awtar Singh's avatar Awtar Singh - May 2, 2018

// I will keep it simple and under 5 minutes code

for( i=1;i<=100;i++){

if(i%3 == 0) {
print(‘Fizz’);
}
if(i%5 == 0) {
print(‘Buzz’);
}
if(!(i%3 == 0 || i%5 == 0)) {
print i;
}
}

DSK's avatar DSK - December 14, 2018

you dont have to check for fizzbuzz first just check each once and concatenate the string together

int num = 100;
string f = “fizz”;
string b = “buzz”;
string result = “”;
for (int i = 1; i <= num; i++)
{
if (i % 3 == 0)
{
result += f;
}
if (i % 5 == 0)
{
result += b;
}

Console.WriteLine(result == "" ? i.ToString() : result);
result = "";
}
Console.Read();

Lionel Barret's avatar 2. Lionel Barret - January 24, 2007

Indeed, such an abysmal level of coding skill is simply unbelievable…
I am speechless…

Frankly, i have never seen candidate so unskilled, but in France, comp.sci is really math heavy and I suppose that’s a good filter.

But still…

Jacob's avatar 3. Jacob - January 24, 2007

Want another good filter? This surprised me, but turns out to be a good indication of whether someone has actually ever programmed before.

Ask: show me (on paper, but better on a whiteboard) how you would swap the values of two variables.

If they don’t *start* with creating a third variable, you can pretty much write that person off. I’ve found that I can cut a third to half my (admittedly at that point unscreened) applicants with that question alone.

Derek Clarke's avatar Derek Clarke - July 5, 2009

There’s an algorithm to do that without a third variable.

int a = 5;
int b = 13;
a = a+b;
b = a-b; //b now has original value of a
a = a-b; //a now has original value of b

Dave's avatar Dave - July 14, 2009

But a third variable doesn’t bring in extra testing & debugging costs when a or b get close to MAX_INT.

Waldemar Sauer's avatar Waldemar Sauer - July 22, 2009

MAX_INT is not relevant. If a and b are > MAX_INT/2, then a=a+b will cause an add carry. The final a=a-b will cause a subtract borrow. In both cases, the carry and borrow bits are discarded. Derek’s solution is still good.

Dave D's avatar Dave D - November 5, 2009

A better algorithm without a third variable just uses xor. No max_int problems would occur then:

a ^= b;
b ^= a;
a ^= b;

No third variable and the values are swapped.

Szymon's avatar Szymon - January 7, 2010

Or even shorter way of doing this in C:

a ^= b ^= a ^= b;

Wojski's avatar Wojski - January 7, 2010

I don’t see the point in avoiding the third variable.. Compiler will do it’s optimizations and the result will be same in both cases but the person who will look into your code later will have to brain what’s that trick with add and sub for… Isn’t it right?

Tom's avatar Tom - January 23, 2010

This is one of the “super smart” bit tricks that fails mysteriously under some non-obvious or unanticipated conditions. Proposing such a thing should disqualify an applicant right away.

In particular the variant proposed by Dave D is well-known for its catastrophic failure if A == B. Derek’s version isn’t free of issues either.

Such “smart” tricks cost software companies many thousands of dollars every year because someone has to waste days or weeks debugging only to find out that a random null-pointer crash at some entirely unrelated place or a totally impossible miscalculation has its root in a “optimized super smart” piece of shit code which not only is less readable and runs much slower than straight code, but also is non-portable and has non-obvious or unpredictable or undefined behaviours

Roberto Simoni's avatar Roberto Simoni - March 29, 2010

And the “readability”?

CJ's avatar CJ - August 16, 2010

I think that Jacob’s comment still stands. Programming is a write-once read-many activity, and unless you get some serious performance gains (and only if performance is critical), you don’t want to hire someone that habitually goes for these types of solutions first. Just because there is a way to do it (and in this case an incorrect, unsafe way that requires additional bounds testing) doesn’t mean that you should.

Dan Quellhorst's avatar Dan Quellhorst - September 18, 2010

In ruby with no 3rd variable:
a=5
b=13
a,b=b,a

Kam's avatar Kam - December 21, 2010

anyone who proposes such a solution had BETTER be talking about running out of registers… If you propose the HARD way, know when to use it!

Barry's avatar Barry - March 10, 2011

Tom – Why does Dave D’s (or Szymon’s) fail “catastrophically” if A == B? Suppose a and b are both 100.

a ^= b (a is now 0)
b ^= a (b ^= 0, so b remains unchanged at 100)
a ^= b (a = 0 ^ 100, so a = 100)

Swap succeeds! In any case you can check for equality first:

(a ^ b) && (a ^= b ^= a ^= b)

Reza's avatar Reza - April 4, 2011

the question was to swap 2 variables. can’t assume (i wouldn’t assume) the variables are holding integers; e.g. a and b could be strings or objects. so, clever algo, but the question remains good and the right answer has a 3rd variable.

eee_eff's avatar eee_eff - April 9, 2011

You have actually created a third variable, although you haven’t explicitly identified it as such (a+b)

Sanjeev Tripurari's avatar Sanjeev Tripurari - May 9, 2011

I dont say its brainy for choosing a candidate who swaps without third variable.
Think logical, do we really need to do this way.

Its a puzzle, if you talk about programming, the clean way is use the third variable, and good indentation and comments.

Think big problems, if the candidate tries more than one method he sure will write better as he thinks possibilities.

If you get all your answers right in one go, may be he is good in puzzle or had practiced similar.

Alex's avatar Alex - September 25, 2012

I don’t see any specification anywhere that two variables are of integral type. What if they are strings? Floating points? Structures? This hacky-tricky way of swapping two integers is nothing more than puzzle. Such solution does not improve performance, not readability.

patrickschluter57's avatar patrickschluter57 - April 3, 2013

@szymon. Your line a ^= b ^= a ^= b; is undefined behavior. There’s no sequence point between the assigning operators, which means the compiler can update the vars in any order it pleases.
@Derek Clarke
signed overflow is also undefined behaviour. There are several embedded processors where it can fail.
@Tom The catastrophic failure of the xor swap is not when the vars are equals, but when one uses the XORswap in a function with pointers and the pointers are aliases to the same var. Then the variable is zeroed instead of being unchanged.
The XOR swap has furthermore another flaw, they are interdepend instructions and can not benefit from out-of-order execution, the variant with a variable can be issued to 2 pipelines and will internally only have the effect of renaming 2 hardware register.

deminthon's avatar deminthon - April 6, 2013

“MAX_INT is not relevant. If a and b are > MAX_INT/2, then a=a+b will cause an add carry. ”

You hope … but the C standard doesn’t define the result.

deminthon's avatar deminthon - April 6, 2013

“In particular the variant proposed by Dave D is well-known for its catastrophic failure if A == B. ”

Utter rot. I would never hire anyone who thinks that could fail, as they have no mathematical intuition. If a == b, then
a ^= b -> a = 0
b^= a -> no change
a^= b -> a = b

deminthon's avatar deminthon - April 6, 2013

“Your line a ^= b ^= a ^= b; is undefined behavior. There’s no sequence point between the assigning operators”

You, like Tom, have no idea what you’re talking about. This is equivalent to a = a ^ (b = b ^ (a = a ^ b)) … it’s entirely well defined.

Chris Kerlin's avatar Chris Kerlin - April 30, 2013

But all solutions require some kind of additional anonymous storage, whether it is a register, accumulator, stack or data structure.

In perl (as with ruby, Dan) there’s this:

($a, $b) = ($b, $a);

And here’s another:

my $a = ‘water’;
my $b = ‘wine’;

$a = { a => $a, b => $b };
$b = $a->{a};
$a = $a->{b};

andrewclarkeau's avatar andrewclarkeau - June 13, 2013

You people thinking the comment about A == B are not quite understanding. That’s not a C-language == but the writer was trying to suggest that A IS B – you know, effectively aliases whatever language you are using and how that might happen.

Let me illustrate in plain old C. The fault happens with the +/- solution or the xor solution. The fault happens whether you use C++ references or just plain old pointers.

void swap(int *a, int *b) {
*a ^= *b;
*b ^= *a;
*a ^= *b;
}

int x = 10, y = 20;
swap(&x, &y);
printf(“%d %d\n”, x, y);
swap(&x, &x);
printf(“%d\n”, x); /* Oh CRAP */

If you think the use of my swap answer is contrived, consider using the swap function to move things around in an array. I’m sure you’ll be able to come up with a case where [i] and [j] might catastrophically meet in the middle…

andrewclarkeau's avatar andrewclarkeau - June 13, 2013

Damn, noticed a grammatical error. How do you edit these comments? No? too bad… And how do I do markup??

Also, I should point out that if you don’t even use a specific swap() function but write the code inline, your a’s and b’s could easily be

A[i] ^= A[j];
A[j] ^= A[i];
A[i] ^= A[j];

and if ever i and j happen to occupy the same space at the same time you’ll have an Oh CRAP moment again.

Summary: smart-arse solutions will bite you in the bum.

Do you think I qualify for this mythical job the original article was about?

Sam's avatar Sam - October 13, 2013

“You, like Tom, have no idea what you’re talking about. This is equivalent to a = a ^ (b = b ^ (a = a ^ b)) … it’s entirely well defined.”

Still undefined behavior. Parenthesis and simple assignments are not sequence points.

jose's avatar jose - November 5, 2013

This laptop only has 8Gb RAM, God knows I might run out of memory if I use one more variable.

Clinton's avatar Clinton - July 24, 2009

He didn’t say those variables contained integers, or in what language. For all you know they’re DateTime values in C# or blessed references in Perl.

Celestine's avatar Celestine - November 3, 2009

Was going 2 point that out… Are all variables integer for heaven’s sake? Even if they were, neat codes are highly appreciated.

Edgar Klerks's avatar Edgar Klerks - January 11, 2010

If it a list, I can do this too, haskell code:

import Data.List

(-:) ::(Eq a) => [a] -> [a] -> [a]
a -: b = filter (\x -> x `notElem` b) a

swap :: (Eq a) => ([a],[a]) -> ([a],[a])
swap (a,b) = ((a ++ b) -: a, (a ++ b) -: b)

*Main> swap ([4,1],[2,5])
([2,5],[4,1])

Haakon's avatar Haakon - December 8, 2009

You can do this in Python without the third variable.
I can’t remember the syntax, and I’m not a CS major yet, but this might just be because they think in Python.

Also, FizzBuzz in swi-prolog, because the world has too little prolog:

%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(100):-
write(100).
fizzbuzz(X):-
X < 100,
is(Var3, mod(X,3)),
is(Var5, mod(X,5)),
;(
(
==(Var3, 0),
==(Var5, 0),
write('Fizz Buzz'),
nl
)
,
(
;(
(
==(Var3,0),
write('Fizz'),
nl
)
,
(
;(
(
==(Var5,0),
write('Buzz'),
nl
)
,
(
write(X),
nl
)
)
)
)
)
),
is(Y, +(X,1)),
fizzbuzz(Y).

If anyone has any improvements to offer, send me a mail or something. 😀

Narayan Ramchandani's avatar Narayan Ramchandani - December 9, 2009

Hi, Just my 2 bits on my PHP based “FizzBuzz” solution, just a little shorter. I love ternary operators.

for ($i=1;$i$val)
{
echo “[“.($key+1).”] “.$val.””;
}

Narayan Ramchandani's avatar Narayan Ramchandani - December 9, 2009

Hi, Just my 2 bits on my PHP based “FizzBuzz” solution, just a little shorter. I love ternary operators. Don’t know why the site showed only half of my code earlier.

//Program start
for ($i=1;$i$val)
{
echo “[“.($key+1).”] “.$val.””;
}
//Program end

Merwok's avatar Merwok - January 2, 2010

This is how Python does it:
a, b = b, a

tradjick's avatar tradjick - July 1, 2010

My versions
in php:

list($b,$a)=array($a,$b);

…and for fizzbang:
for ($x=1;$x<=100;$x++) echo (($f3=$x%3)?'':'fizz').(($f5=$x%5)?'':'buzz').(!(!$f3||!$f5)?$x:'');

dutiona's avatar dutiona - May 9, 2013

Hey,

Another prolog version :p

loop(N) :- N = 101.
loop(N) :- N rem 15 =:= 0, write(‘ FizzBuzz’), nl, A is N + 1, loop(A).
loop(N) :- N rem 3 =:= 0, write(‘ Fizz’), nl, A is N + 1, loop(A).
loop(N) :- N rem 5 =:= 0, write(‘ Buzz’), nl, A is N + 1, loop(A).
loop(N) :- write(N), nl, A is N + 1, loop(A).

loop(1).

Me Myself? Am a smart updated programmer Don't worry's avatar Me Myself? Am a smart updated programmer Don't worry - September 17, 2021

Here’s a simple Python3 solution:
for i in range(0,100):
if (i%3 == 0) and (i%5 != 0):
print(“Fizz…”,i)
elif (i%5 == 0) and (i%3 != 0):
print(“Buzz…”,i)
elif (i%3 == 0) and (i%5 == 0):
print(“FizzBuzz…”,i)

Yes I realise I am a bit late, and also the motto of this blog is not to answer interview questions either;.
But still as a reference

smarter and efficient programmer's avatar smarter and efficient programmer - September 17, 2021

A more efficient program @Me Myself? Am a smart updated programmer Don’t worry

for i in range(0,100):
x3 = i%3; x5 = i%5
if (x3 == 0) and (x5 != 0):
print(“Fizz…”,i)
elif (x5 == 0) and (x3 != 0):
print(“Buzz…”,i)
elif (x3 == 0) and (x5 == 0):
print(“FizzBuzz…”,i)

No need to calulate the modulus again and again…

Btw, ain’t I a smarter programmer? 😉

Brian Knoblauch's avatar Brian Knoblauch - March 9, 2010

I’m sorry that it’s not so easy for you high-level programmers. Us low-level assembly guys can usually do it without a temp variable (given the right constraints).

“xchg ax, bx”

Done. 🙂 (Does require at least one to be in a register, but hey, C guys use register vars all the time!).

ari-free's avatar ari-free - February 7, 2011

I’m not a CS graduate. I just finished chapter 6 in Starting out with C++ by Gaddis:

C++ (indenting may be off but that’s why I don’t use python…)

int main()
{
int num;
const int FIZZ=3, BUZZ=5, FIZZBUZZ=15;
// FIZZBUZZ is a multiple of FIZZ and BUZZ

for (int i=1; i <= 100; i++)
{
num = i;
if (! (i % FIZZBUZZ) )
{
cout << "FizzBuzz" << endl;
} // if (! (i % FIZZBUZZ) )

else if (! (i % FIZZ) )
{
cout << "Fizz" << endl;
} // if (! (i % FIZZ) )

else if (! (i % BUZZ) )
{
cout << "Buzz" << endl;
} // if (! (i % BUZZ) )

else
{
cout << num << endl;
} // else

} // for (i = 1; i < 100; i++)

return 0;

} // int main()

Sandro Pasquali's avatar Sandro Pasquali - March 3, 2012

What if the language used supports destructuring assignment?

Jennifer Sanders's avatar Jennifer Sanders - June 10, 2012

a,b = b,a

Python!

Doug Hoffman's avatar Doug Hoffman - October 8, 2012

a b to a to b

Forth!

Cat Enthusiast's avatar Cat Enthusiast - October 27, 2012

(\(a,b) -> (b,a))

Haskell!

Aaron Swenson's avatar Aaron Swenson - May 8, 2013

($a, $b) = ($b, $a)

Perl!

Brian's avatar Brian - June 20, 2013

One of the things that intrigues me from these clever responses is that the authors trade a temporary variable for extraneous arithmetic operations. In other words, their excessive cleverness results in less efficient code. Personally, I subscribe to the principle of making it good first (functional, readable) and then making it fast only as required.

Even using 2 temporary variables could produce code that is more efficient than these clever responses. Consider that many processors do not have memory-to-memory store instructions. If the two variables are in memory, or if function parameters are passed on the stack, the following instructions

t = a;
a = b;
b = t;

May actually be implemented as

r1 = a;
r2 = b;
a = r2;
b = r1;

I’m with Jacob and CJ on this one. I don’t need any more excessively-clever programmers on my team. I need competent engineers who write accurate, readable and maintainable code. In the end, customers don’t care about cleverness, they want something that works well.

Justin Howe's avatar Justin Howe - May 6, 2017

I’m confident that the primary reason people try to come up with exotic answers to simple programming questions during an interview is because they feel the need to impress, or “wow”, their interviewer.

They may feel somewhat insecure about the whole situation where they’re put on the spot, so they think if they appear to be the most clever, creative and brilliant mind that has walked through the interview doors, they will be a shoo-in for the job.

OTOH, folks who don’t seem to be out to impress everyone seem to come up with simple, elegant and efficient solutions that are both readable and functionally solid for all edge cases. When going into an interview, putting yourself through the added stress of trying to force a brilliant or “clever” solution to a problem will definitely work against you.

Also, it’s always a good idea to ask clarifying questions during an interview; it shows that you are a good communicator, which is important on any team, especially software development / engineering teams.

Now, the above reasons I have discussed aren’t going to apply to everyone, obviously. It’s just a pattern I’ve noticed in myself when I was a younger, less experienced software developer in college, attempting to explain my solutions and answer simple questions in my CS classes and labs. I’m fairly confident that this is a common issue among lesser experienced programmers.

Vlad's avatar Vlad - June 26, 2020

And as an end user, I want my application to not make half a minute to work just because some idiot wrote “accurate, readable and maintainable”, but at the same time, sluggish and painfully slow code just because his colleagues slept through the math-related subjects in the school.

>I don’t need any more excessively-clever programmers on my team.

And I don’t need paying money to have a half-assed job of code monkey with “at least it’s readable” justification.

Rod's avatar Rod - June 29, 2013

In ALGOL on MCP systems, you don’t need a third variable or any special tricks; you use the “swap” operator: “A :=: B;”

Chris's avatar Chris - July 2, 2013

How do you do that if the variables are strings without using a temp variable like below.

private void Swapping3(T a, T b)
{
T temp = a;
a = b;
b = temp;

Console.WriteLine(“Now: A = {0}, B = {1}”, a, b);
Console.Read();
}

Gib's avatar Gib - August 24, 2013

public class SwapNum {
public static void main(String[] args) {
int a = 40;
int b = 20;
boolean temp = (a > b) ? true : false;

System.out.println(“The numbers are :”+a+” “+b);
if(temp) {
System.out.println(“Swapped is :”+b+” “+a);
}
else System.out.println(“Swapped is :”+b+” “+a);
}
}

Eli's avatar Eli - May 6, 2015

In an interview I was specifically told to do this without creating a third variable.

Joe P.'s avatar Joe P. - May 25, 2015

In Perl:
($x,$y) = ($y,$x);

You should be able to do the same thing in any other language that has lists as a first class datatype.

Mitch Silverman's avatar 4. Mitch Silverman - January 24, 2007

I once worked at a company that did a lot of geometric computations. Our standard interview question (to be done as homework between interview 1 and interview 2) was write a function in c that would “Chord” a circle to an arbitrary level of precision. Inputs were radius and tolerance. Output was the number of sections needed to break up the circle.
In the second interview we would review the code and talk about error catching, what happens when radius is less than distol.. etc.
But the trick was when we asked for a function to do the same thing with an ellipse. We didnt want an answer – we were looking for the response
Was the candidate excited? Thoughtful? or did (s)he get that deer in the taillights look in his/her eyes?

Ben Prew's avatar 5. Ben Prew - January 24, 2007

Jacob,

There are several languages that you can do this in that don’t require a temporary variable. I know Perl supports this, and I believe Ruby does as well:

ex.

($a, $b) = ($b, $a)

I’m not sure about Python or other dynamic languages, but I believe they do.

Finally, you can do it in C as well:

void XORSwap(void *x, void *y)
{
*x ^= *y;
*y ^= *x;
*x ^= *y;
}

I’m assuming that you’re eliminating candidates who actually can’t get swap() correct. But, in several cases, not starting by creating a temporary variable is actually a good thing 🙂

Billy O'Neal's avatar Billy O'Neal - April 23, 2010

“Finally, you can do it in C as well:”
That is invalid. You can’t dereference a void pointer.

Tony's avatar Tony - November 7, 2010

That’s what I was thinking. How does the compiler know how bytes of data a void * points to?

Alex's avatar Alex - September 26, 2012

I would not be surprized if ($a,$b) = ($b,$a) internally ended up in TWO temporary variables.

gallier2's avatar gallier2 - April 3, 2013

There’s another problem with the C variant and that is what the “catastrophic failure” Tom was aluding to above. If the pointers are aliases, you wipe out the vars. If you call XORSwap(&v, &v), the result will be 0, not the value v had before.

Alexandre Vassalotti's avatar 6. Alexandre Vassalotti - January 25, 2007

“Want to know something scary ? – the majority of comp sci graduates can’t.”

That is indeed scary. I have a hard time to believe it. Maybe, the candidates were thinking it was a trick question or something like that. I don’t know.

I took me less than 1 min (I timed myself), to write the correct solution and never taken any course. Now, I’m wandering what they teach in Computer Science courses.

# Fizz-Buzz in Python
for i in range(1, 100):
if (i % 3 == 0) and (i % 5 == 0):
print “FizzBuzz”
elif i % 3 == 0:
print “Fizz”
elif i % 5 == 0:
print “Buzz”
else:
print i

# Swap in Python
a = 0
b = 1
b, a = a, b

Personally, I would ask them, as a weeder question, to write a function that sums up integers from a text file, one int per line.

Gerry's avatar Gerry - February 25, 2010

I’d ask you to write it again in a way that’s efficient and easier to maintain. 😛

Luke's avatar Luke - June 21, 2013

for x in xrange(1, 101):
to_print = ”
if x % 3 == 0:
to_print += ‘Fizz’
if x % 5 == 0:
to_print += ‘Buzz’

if not len(to_print):
to_print = x

print to_print

Conrad's avatar Conrad - March 1, 2010

Er, I believe that does not include 100 (1 to 99) 😛

Mark C's avatar markc86 - March 11, 2010

Yes, but you could say the wording is unclear, as opposed to “1 to 100 inclusive”.

Bistole's avatar Bistole - September 14, 2010

You don’t have to have the ‘print “FizzBuzz”‘ line and it’s corresponding condition, just make the elif’s into if statements.

Mark C's avatar Mark C - September 24, 2010

You know, I was thinking about this problem while reading a StackOverflow question, and realized the same thing.

blahedo's avatar blahedo - October 16, 2010

Nope, that won’t work. Or rather, if you do that, you need to add a condition to the final “else”, because the number should only print if *neither* condition applies.

L.'s avatar L. - December 1, 2011

Err . you’re fired dude .

Not understanding halfway through the problem that doing an additional (here double) check everytime is bad … fired.

mod 3 = 0 -> fizz
mod 5 = 0 -> buzz

That’s it.

Everytime it’s looped you get two checks (that sucks but unfortunately there is no better way) .
total : 200 checks

But in your case …

6 if mod3 mod 5 -> 6*2 checks
33-6 if mod 3 -> 27*3 checks
20-6 if mod 5 -> 14*4 checks
53 match nothing -> 53*4 checks

total : 12+81+56+212 checks = over 50% more for no reason.

So basically you have no logic and should not code anything because you do not understand how the machine works. at all.

And thus fail to translate “human requirements” into “logic”.

L.'s avatar L. - December 1, 2011

Meh . nothing like major fail .
add :
if(echo not empty) string.=’-‘
inside the if mod5 part
that’s another check . still faster but hey . not that much . still more logical though.

L.'s avatar L. - December 2, 2011

So if it really is fizzbuzz and not fizz-buzz . above option is like 161 less checks and much simpler anyway. sounds good to me.
{
$echo=$i;
if($i%3==0){echo $fizz;$echo=””;}
if($i%5==0){echo $buzz;$echo=””;}
echo $echo;
$i++;
}
I suspect a variable assignment has to be a few times cheaper than a check … anyone know of a good resource for that kind of information ?

qbj's avatar qbj - May 8, 2013

I feel silly replying to a one and a half year old comment! But your reply was to a three year old one, so I guess I’ll go ahead.

No, I’m sorry, you’re the one that’s fired. I’m not just saying that for dramatic effect because it’s what you said. Trying to optimize everything is such a basic mistake (ranking up with putting inheritance everywhere because it “makes everything more generic”) it is really unforgivable in an interview, even for a junior programmer. It’s a fact that’s usually covered over and over in software engineering modules. Type “premature optimization” into Google and it will helpfully suggest “is the root of all evil” for you… you don’t even need to press enter!

There are so many arguments about why you shouldn’t optimise early that I could hardly hope to fit them into this comment. I think the most important are:

1. When a program (or service, or whatever) runs too slowly, it’s almost always because of the overall design, rather than because the way the individual bits of code were written is too slow.

2. Even when 1. doesn’t apply, it’s not the case that to get a 20% speedup you need to get all the code to go 20% faster. Instead there will turn out to be one or two critical paths that need optimising.

3. Why not just optimise everything just in case? Aside from the expense (extra thought from programmers costs time and therefore money), making optimisations makes code less clear. This is the main issue: BUGS. Small chunks of code are thousands or even tens of thousands of times more likely to contain a bug than to end up being a critical slowdown. This is the case you need to target, by writing code that is as readable as possible, even if you know that you’re testing a variable unnecessarily in every loop iteration or whatever.

The thing that’s particularly funny about your post is that you’re fretting about a loop that has 100 iterations. You even carefully break down the numbers, complaining about 100 odd too many checks. This is another classic sign of a rooky: they think that 100 (or even 1000) is a big number to a computer. You’re saying this guy is fired because his program – which is presumably only meant to run once – takes a ten millionth of a second too long!?

After being so very wrong, you follow up your comment with this doozy: “So basically you have no logic and should not code anything because you do not understand how the machine works. at all.” It makes me wonder if I’ve just wasted my time replying to a troll. But there, I’ve typed it now, so I might as well hit submit.

victorbarrantes's avatar victorbarrantes - March 15, 2013

In python only one print sentence is needed:
for i in range(100):
label = ” #these are 2 single quotes
if (i + 1) % 3 == 0:
label += ‘Fizz’
if (i + 1) % 5 == 0:
label += ‘Buzz’
print(str(i+1) if label == ” else label)

Vineet Kumar's avatar 7. Vineet Kumar - January 25, 2007

I was also going to respond to Jacob’s swap question with the python unpacking example, but Ben and Alexandre beat me to it. Though Ben, in your C example, you can’t dereference a void pointer. I wouldn’t say that really falls in the FizzBuzz category, but it would be a minus point for the interviewee.

Jos'h's avatar 8. Jos'h - January 25, 2007

“””
fizzbuzz.py
josh 2007-01-25
Print integers 1 to 100. Sub ‘Fizz’ for multiples of 3, ‘Buzz’ for mult of 5.
Sub ‘FizzBuzz’ for mults of both. Written for the purpose of being silly.
“””

threes = range(0, 101, 3)
fives = range(0, 101, 5)

def check(n):
. plain = 1
. if n in threes: print “Fizz”, ; plain = 0
. if n in fives: print “Buzz”,; plain = 0
. if plain: print n,
. print

[check(i) for i in range(1, 101)]

DOko's avatar DOko - May 3, 2010

Your program doesn’t perform as per specifications.
It should print Fizz-Buzz, not FizzBuzz.

a's avatar a - June 4, 2010

re-read them

Ken's avatar Ken - August 17, 2010

Way to turn the problem into O(n^2)

Dr. Jarajski's avatar Dr. Jarajski - July 7, 2011

Your solution got me giggling like an idiot for a couple minutes.

I’m now trying to make it 0(n³) for kicks.

I’ve always been a fan of retardedly complex solutions to simple problems, maybe because so many of my class mates do this kind of thing inadvertently.

9. Geordan’s Musings » Fizz Buzz - January 25, 2007

[…] came across this post on programming.reddit.com regarding using a very simple exercise to weed out completely inept […]

Mohammed Zainal's avatar 10. Mohammed Zainal - January 25, 2007

good post,
i know little programming , learnt by trial & error , internet and books.
i do complicate things while writing my code , prolly because im not really good with math , but yet & the end i’ll find the solution .

candidates some time gets tension during the interview and that will effect the results .

p.s nice blog buddy 🙂

11. mult.ifario.us : Laziness and fizzbuzz in Haskell - January 25, 2007

[…] peeking at Reg’s solution, I can’t resist posting a fizzbuzz implementation in Haskell (because it looks stylistically like it should be written in an FP […]

flickrhoneys's avatar 12. flickrhoneys - January 25, 2007

I used to grok coding, but I’ve grown up since then 😀

Miauw's avatar 13. Miauw - January 25, 2007

“Ask: show me (on paper, but better on a whiteboard) how you would swap the values of two variables.” (Jacob)

How do you do that in functional languages with single assignment? 🙂

NPSF3000's avatar NPSF3000 - June 19, 2011

In Erlang I’d use recursion 🙂

Pseudocode:

Swap (x, y){
Swap (y, x, false)
}:

Swap (x, y, false)
{
//Continue as needed.

}

Fairly useless, but technically fulfills requirements.

Stephen.'s avatar 14. Stephen. - January 25, 2007

Ech, state variables stink. Here’s a better python solution

for i in range(1,100):
fizz = (i % 3 == 0) and “Fizz” or “”
buzz = (i % 5 == 0) and “Buzz” or “”
print “%2i %s%s” % (i,fizz,buzz)

DOko's avatar DOko - May 3, 2010

Again with the missing –

mnietek's avatar mnietek - June 17, 2010

Again you din’t read the requirements. You’ve failed

Stephen M's avatar Stephen M - September 19, 2010

As far as I can tell from the specifications (and to be honest, I think it’s pretty clear) – you do *NOT* print the number if it’s a multiple of 3 or 5! About 1/2 of the solutions here that congratulate themselves on dodging the if/elseif/elseif/else structure tend to print the number out every time around the loop, which is incorrect.

I’d far rather take the if/elseif/elseif/else guy over someone who did not read and understand the specifications properly.

Josh Rehman's avatar Josh Rehman - April 28, 2012

There is no need for complex if/else. In Java:

public class FizzBuzz {
public static void main(String[] args) {
for (int i = 1; i < 101; i++) {
boolean fizz = i % 3 == 0;
boolean buzz = i % 5 == 0;
if (fizz || buzz) {
System.out.println(i + ":" + (fizz ? "Fizz" : "") + (buzz ? "Buzz" : ""));
}
}
}
}

(This took me 4 minutes from opening Eclipse to execution)

deminthon's avatar deminthon - April 6, 2013

Josh = fail.

stupid2's avatar stupid2 - November 11, 2010

the right version: http://codepad.org/qlCgPRaS

john cromartie's avatar 15. john cromartie - January 25, 2007

Fizzbuzz in a nasty Ruby one-liner:

puts (1..100).to_a.collect { |i| i % 15 == 0 ? ‘fizzbuzz’ : (i % 5 == 0 ? ‘fizz’ : (i % 3 == 0 ? ‘buzz’ : i)) }.join(‘ ‘)

Javier Vázquez Rodriguez's avatar Javier Vázquez Rodriguez - June 13, 2010

No need to make an Array out of the Range, that makes it even nastier:

puts (1..100).collect{|i|i%3==0?i%5==0?”FizzBuzz”:”Buzz”:i%5==0?”Fizz”:i}

🙂

john cromartie's avatar 16. john cromartie - January 25, 2007

“How do you do that in functional languages with single assignment? ” (Miauw)

You wouldn’t have variables to begin with… unless it was a monad, in which case you would just do it the normal way.

Joshua's avatar 17. Joshua - January 25, 2007

Java:
public static void main(String[] args)
{
for (int i = 1; i

Jacob's avatar 18. Jacob - January 25, 2007

Ben,

I’d take anything that works. If I were interviewing for a C or Perl position, your examples would be fine. The key is to pose the question and observe them tackling it. *How* they tackle it is as important as whether they come up with the “right” answer. My example of swapping the values in two variables is a pretty trivial question, so how long it takes and their approach to doing it is the information I’m parsing, not whether they end up in the right place in the end.

sibecker's avatar 19. sibecker - January 25, 2007

Here it is in functional programming (OCaml):
“How do you do that in functional languages with single assignment? ” (Miauw)

OCaml one liner:

let fb x = (if x mod 3 = 0 then “Fizz” else “”) ^ (if x mod 5 = 0 then “Buzz” else “”) in let fb2 x = let f = fb x in if f = “” then string_of_int x else f in let rec fb_to x = let g = fb2 x in if x = 1 then g else (fb_to (x-1)) ^ “, ” ^ g in fb_to 100;;

deminthon's avatar deminthon - April 6, 2013

WC = fail.

WC's avatar 20. WC - January 25, 2007

def fizzbuzz():
for n in range(1, 101):
str = “”
if not n % 3:
str += “Fizz”
if not n % 5:
str += “Buzz”
print n, str

anon for this one's avatar 21. anon for this one - January 25, 2007

Ruby FizzBuzz in 81 bytes. (please let my next employer ask this in an interview… please)

f,b=’fizz’,’buzz’
puts((1..100).to_a.map{|i|i%15==0?f+b:(i%5==0?b:(i%3==0?f:i))})

Cale Gibbard's avatar 22. Cale Gibbard - January 25, 2007

Er, what do you mean “the majority of comp sci graduates can’t”? Do you have any data to support that?

At least where I went to uni, not just comp sci graduates, but everyone in first year mathematics had to learn to solve harder programming problems than that. By the end of second year, everyone in comp sci, and a large portion of those in any program in the mathematics faculty will have written a simple compiler. So I don’t see how this problem would be of any difficulty.

I can’t say anything about how typical my university was (in fact, I suspect it’s quite atypical, and I was there for a pure mathematics degree anyway). So sure, this is just one datapoint, but I’m curious about where your conclusions are coming from.

Billy O'Neal's avatar Billy O'Neal - April 23, 2010

I know several comp-sci students at my university that cheat.

goblinfactory's avatar 23. goblinfactory - January 25, 2007

How about overloading the assignment operator in C#?

moron4hire's avatar moron4hire - February 22, 2010

you can’t, but you can do implicit type conversions

24. Dr Jekyll & Mr Hyde » Blog Archive » FizzBuzz and bored programmers - January 25, 2007

[…] his blog, tickletux advocates the use of FizzBuzz to find developers who grok coding. However, this kind of test may also cause difficulties. What do you do if a candidate answers with […]

azman's avatar 25. azman - January 26, 2007

you’re right about comp sc student didnt rite!
even my friend with master degree in comp science cant even rite “hello world” program!!..hahahah..
nice blog

Andrew's avatar 26. Andrew - January 26, 2007

;; scheme example… though, i’m not happy

(define (fizz-buzz rng)
(let loop ((n 1))
(let ((thr (remainder n 3))
(fiv (remainder n 5)))
(cond
((and (zero? thr) (zero? fiv)) (printf “fizz-buzz~n”))
((zero? thr) (printf “fizz~n”))
((zero? fiv) (printf “buzz~n”))
(else (printf “~a~n” n)))
(if (= rng n)
n
(loop (add1 n))))))

(fizz-buzz 100)

Brian Mitchell's avatar 27. Brian Mitchell - January 26, 2007

If you’re going to golf it you might as well check if things like the repetition of values actually helps. Here is something short in ruby.

puts (1..100).map{|i|i%15==0?’FizzBuzz’:i%5==0?’Buzz’:i%3==0?’Fizz’:i}

I’ll also punish anyone on my team who writes a set of nested ternary expressions like that. It’s nice to know those things for golfing games though. 😉

macnod's avatar 28. macnod - January 26, 2007

Common Lisp:
(loop for a from 1 to 100 collect
(let ((c (zerop (mod a 3))) (d (zerop (mod a 5))))
(cond ((and c d) “FizzBuzz”)(c “Fizz”)(d “Buzz”)(t a))))

Randy's avatar 29. Randy - January 26, 2007

Why do people always insist on writing one-liners?

Yes, you may get your rocks off by writing something a litty crazy, but the guy who has to maintain your code, is going to be hating you. Just say no to one-liners. And say yes, to clear, consistent coding.

Brian Mitchell's avatar 30. Brian Mitchell - January 26, 2007

Randy, I agree but in this case it looks like it was so easy to solve that people went a little farther and started a game of golf [0].

[0] The original golfing language was perl but it has now become popular way for bored programmers to play with their skills in many different languages.

Omar Khudari's avatar 31. khudari - January 26, 2007

Dave Kaemmer came up with a similar test at Papyrus that I have been using for years.

This kind of test is too simple to measure programming skill, but it is a great predictor of who will be very productive and who will not. We found it much better than a person’s resume, for example. So my technique is to administer the test via email (with a 20 minute time limit) to every applicant after a very basic resume screen. This saves a lot of valuable engineering staff time doing interviews. Our only problem: it is really hard to find candidates we want to interview.

George's avatar 32. George - January 26, 2007

WTF is this on the Daly WTF

Jeff Staddon's avatar 33. Jeff Staddon - January 26, 2007

Maybe it’s just economics? With all the technology buzz and high salaries there’s a lot of motivation to jump on board. Especially for a young person who doesn’t really know their strengths/weaknesses. Univ I’m afraid are more interested in selling students on taking classes than on helping these kids find themselves.

All the good developers I’ve known never really choose technology—they were drawn to it as if it were some alien tractor beam. Back in my university years I tried to escape myself–I majored in history–but I couldn’t help but write Perl scripts on the side because it was so much fun! (BTW–anyone else out there majored in history??)

Brendan's avatar 34. Brendan - January 26, 2007

Apologies to Mr. Anon with his 81 bytes, but I did it in ruby in 71.

puts (1..100).map{|i|(s=(i%3==0?’Fizz’:”)+(i%5==0?’Buzz’:”))==”?i:s}

Eric's avatar 35. Eric - January 26, 2007

Re: No One Liners

I personally enjoy a challenge as a developer and one liners often provide just that. While it is probably not as helpful to folks maintaining code because it can be confusing, I would rather hire someone who will figure it out and learn something then someone who simply brushes things off as being unclear.

I am not saying folks should write everything on one line, be reducing line counts is a good way to learn details of the language along with different ways of implementing algorithms.

Brendan's avatar 36. Brendan - January 26, 2007

I would certainly not put anything like the above in production code.

However, someone who golfs successfully is someone who also knows the syntax precisely – they know when they can go without parentheses, spaces and the like.

Of course, if someone wrote something like the above in a live interview as a first pass, I don’t know whether I’d be more or less inclined to hire them. After all, I sure don’t think well like that.

Reg Braithwaite's avatar 37. Reg Braithwaite - January 26, 2007

I think it’s important to avoid overthinking the question and the answer. All you want to do is eliminate the extreme time wasters taht have no clue whatsoever.

The key is that someone solves it in fifteen minutes or less. If they want to Golf with it, or show off the fact that they just read a book about Higher Order Functions, I say don’t mark them down but don’t mark them up either.

Just invite them in for the interview. That’s the place where you can find out f they’re too clever by half, or perhaps they were bored, or are really straightforward but thought they needed to show you something special just to get the job.

http://weblog.raganwald.com/2007/01/dont-overthink-fizzbuzz.html

Alex's avatar 38. Alex - January 27, 2007

Sorry, Ben Prew, but your C solution shouldn’t even compile – I’m afraid you missed the cut for working for tickletux! 🙂

> void XORSwap(void *x, void *y)
> … dereferencing “void *” …

lev radin's avatar 39. lev radin - January 27, 2007

It seems to me weird that in blog based on PHP nobody offered way how to swap variable in PHP. Here you go:
list($a,$b) = array($b,$a);

Philip Munce's avatar 40. Philip Munce - January 27, 2007

Not a bad test. Although I sometimes wonder if a dev team needs a couple of guys who can’t code. Reason being is that unless you work for a startup most dev work is repeatative and simple like HTML wording changes. Just the thing for someone who doesn’t know how to go to google and type “how to use modulus arithmetic in “.

hairmare's avatar 41. hairmare - January 27, 2007

crappy code, but written in the time constraints. i actually get the shivers when i see courses like programming HTML on comp sci curriculas. there are also some unis where the industry links are getting to strong and thus hindering real innovation on the merits of making money and protecting IP in new inventions.

hairmare's avatar 42. hairmare - January 27, 2007

$i=1; while ($i

Steve Biko's avatar 43. Steve Biko - January 27, 2007

Jacob said: “Ask: show me (on paper, but better on a whiteboard) how you would swap the values of two variables.

If they don’t *start* with creating a third variable, you can pretty much write that person off.”

B.S. You can swap the values without a third variable using XOR:

var1 = var1 XOR var2
var2 = var2 XOR var1
var1 = var1 XOR var2

Kam's avatar Kam - December 21, 2010

ya, you can. But can yinz answer: why? [performance increase is the natural answer, on contemporary systems. bonus if you can get why on older ones…]

Reg Braithwaite's avatar 44. Reg Braithwaite - January 28, 2007

Swapping two variables:

The ‘XOR’ thingie is an old C/C++ ‘Aha!’ I’ve never met anyone who figured it out from base principles, everyone seems to have been shown it by someone else.

Nevertheless, it often comes up in C++ interviews and that may not be a bad thing: if you’re a C++ programmer and you’ve never heard of this trick, you probably don’t spend a lot of time actually hanging around other C++ programmers and trading tips (I’m talking to you Mr. “Visual C++ in 21 Days”).

All that being said, the given trick obviously only works in languages where XOR applies to the values given. This will not work with arbitrary Java objects, for example. Although the references might be CPU words, the language won’t let you XOR them or even cast the references to a primitive long.

Joshua Volz's avatar 45. Joshua Volz - January 28, 2007

IMO, it’s not the answer that matters, but the explanation of the answer that they give. If they write something like:

for i in range(1,101):
s = ”
if i % 3 == 0: s = “Fizz”
if i % 5 == 0: s += “Buzz”
if i % 3 != 0 and i % 5 != 0: print i
else: print s

But then told me, “yes, I know I am retesting i in the third clause, but I think it might make the code more understandable,” I would be okay with their answer, especially if they went on to do it in a single liner. I would also accept something like:

for i in range(1,101):
if i % 15 == 0: print “FizzBuzz”
elif i % 3 == 0: print “Fizz”
elif i % 5 == 0: print “Buzz”
else: print i

This at least shows that they realize that if something is divisible by 3 and 5, then it is also divisible by 15 (not a mind-bending fact, but at least they are changing the problem to be expressed without using “not”).

The follow-up question from the interviewer is what is important. If they give either of the previous two solutions (or something similar), and then you ask them to optimize for length of code, or execution time (aka “don’t retest”) and they understand what you want, then you are learning something about them. That’s the real goal of the interview.

The deeper question is what does it say about CS education that this is a reasonable test to give someone to find out if they know what they are doing. Anyone who can’t answer this, even under the stress of an interview, isn’t really a programmer. How could you trust someone with hundreds of thousands of lines of code, and the design of classes (usually) when they can’t do this?

Another fun solution, although convoluted:

for x in range(1,101):
a,b=x%3==0,x%5==0
print “%s%s%s”%(a and “Fizz” or ”, \
b and “Buzz” or ”, not a and not b and x or ”)

## I put the ‘\’ in there so that it wouldn’t wrap in the space alloted.

Bart Gottschalk's avatar 46. Bart Gottschalk - January 29, 2007

Here is an HTML/JavaScript implementation. I do these exercises for fun of them and because I’ve been “promoted” in my career to the point where I don’t get to write much code on the job. Doing exercises like these keeps the mind fresh and allows me to remember what it’s like to write code. Probably took about 5 minutes but that’s because I never try to remember syntax. I just look it up when I need it.

FizzBuzz

//

Tom F's avatar Tom F - June 28, 2018

This code will not look good with this narrow display width, Copy it and paste it into an editor – program or text – and expand the window so the text does not wrap:

// Fizz Buzz in Javascript in two ways, one straight forward and perhaps boring and another that’s jazzer.
// May the powers that be protect up from jazzy code?

// I’m only showing this to demonstrate quick annd dirty and straight forward but easy to read and understand
// and complex but jazzy – harder to read and understand

var outstr = ‘FizzBuzz Test: \n\nWith IFs and ELSEs\n’; // Declare and initialize the output string.

// Using nested IFs and ELSEs

for (i=1; i<=100; i++) { // loop from 1 through 100
if ((i % 3 == 0) && (i % 5 == 0)) { // Is i evenly divisable by both 3 and 5
outstr = outstr + " FizzBuzz "; // Yes. put " FizzBuzz " in the output string, with leading and trailing spaces to make it eaeier to read
}
else {
if (i % 3 == 0) { // No. Is i evenly divisible by 3
outstr = outstr + ' Fizz '; // Yes. Put ' Fizz " in the output string, again, again with leading and trailing spaces
}
else {
if (i % 5 == 0) { // No. Is i evenly divisibl by 5
outstr = outstr + ' Buzz '; // Yes. But " Buzz " in output string, again with spaces
}
else {
outstr = outstr + ' ' + i + ' '; // No. Put value of i in output string and once again with leading and trailing spaces
}
}
}
}

outstr = outstr + '\n\n' + "With Conditional Statements\n"; // add two new line characters and next output suffix in output string

// Now let's do it with nexted Conditional statements. It's jazzier and cooler but harder to read
// Even if you came back to this code, it would probably take a bit to be sure what the following statement does.
// I have no idea which method is more efficient in terms of execution speed but forsaking very easy readability
// for using niffty nested Conditional statements is stupid, no matter how many split-seconds it saves over the
// first method

for (i=1; i<=100; i++) { // loop from 1 through 10
// The next statement is three nest conditional statements which does the job, but even with extra parenthesis to set things off
// it's hard to read and understand.
outstr = outstr + (((i % 3 == 0) && (i % 5 == 0) ? ' FizzBuzz ' : ((i % 3 == 0) ? ' Fizz ' : (i % 5 == 0) ? ' Buzz ' : ' ' + i + ' ')));
}
// display the output string and comments
alert(outstr + "\n\nSame output but look at the code\n\nWhich would you rather find when you have to look at someone else's code and fix or modify part of it?" );

//*********************** END OF CODE ********************/

This is what the output looks like, it will appear in an alert popup.
————————————————–
FizzBuzz Test:

With IFs and ELSEs
1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz Fizz 22 23 Fizz Buzz 26 Fizz 28 29 FizzBuzz 31 32 Fizz 34 Buzz Fizz 37 38 Fizz Buzz 41 Fizz 43 44 FizzBuzz 46 47 Fizz 49 Buzz Fizz 52 53 Fizz Buzz 56 Fizz 58 59 FizzBuzz 61 62 Fizz 64 Buzz Fizz 67 68 Fizz Buzz 71 Fizz 73 74 FizzBuzz 76 77 Fizz 79 Buzz Fizz 82 83 Fizz Buzz 86 Fizz 88 89 FizzBuzz 91 92 Fizz 94 Buzz Fizz 97 98 Fizz Buzz

With Conditional Statements
1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz Fizz 22 23 Fizz Buzz 26 Fizz 28 29 FizzBuzz 31 32 Fizz 34 Buzz Fizz 37 38 Fizz Buzz 41 Fizz 43 44 FizzBuzz 46 47 Fizz 49 Buzz Fizz 52 53 Fizz Buzz 56 Fizz 58 59 FizzBuzz 61 62 Fizz 64 Buzz Fizz 67 68 Fizz Buzz 71 Fizz 73 74 FizzBuzz 76 77 Fizz 79 Buzz Fizz 82 83 Fizz Buzz 86 Fizz 88 89 FizzBuzz 91 92 Fizz 94 Buzz Fizz 97 98 Fizz Buzz

Same output but look at the code

Which would you rather find when you have to look at someone else's code and fix or modify part of it.
————————————————-

**************** If this comment is displayed as I see it while typing it in, the FizzBuzz entries make a diagonal partern, upper left to lower right – can you see that??

If so, someone give us the reason we see it like that – what's the distribution factor?

But, who knows what it will look like when submitted.

Tom F's avatar Tom F - June 28, 2018

No – it does show in the same format as when I was typing it in.

Bart Gottschalk's avatar 47. Bart Gottschalk - January 29, 2007

Oops. Let me try posting my JavaScript solution again:

var output = “”;

for( var i = 1; i

Tomas's avatar 48. Tomas - January 29, 2007

Java code snippet:

for(int i=1;i0?toPrint:i);
}

Indeed, we would need to create a whole java class with a main method just to run this.
what a nasty language.

Tomas's avatar 49. Tomas - January 29, 2007

Java code snippet (again):

for(int i=1;i<=100;i++) {
String toPrint=(i%3==0)?”Fizz”:””;
toPrint+=(i%5==0)?”Buzz”:””;
System.out.println(toPrint.size()>0?toPrint:i);
}

Indeed, we would need to create a whole java class with a main method just to run this.

(sorry the duplication. < and > are guilty)

Leonardo Herrera's avatar 50. Leonardo Herrera - January 30, 2007

Heh, can’t resist.

for(1..100){$t="";$t="Fizz"if!($_%3);$t.="Buzz"if!($_%5);$t||=$_;print"$t\n";}

Tom F's avatar Tom F - June 28, 2018

You left out the FizzBuzz entries for numbers that are divisible evenly by both 3 and 5.

Read the problem too quickly, did we?

A lot of people here are missing the FizzBuzz entries – lot’s of points off for not fully reading the test.

Actually, without all four types of entries – FizzBuzz if divisible by both 3 and 5, Fizz if divisible only by 3, Buzz if divisible by 5, or the number if all three tests, above, are false – you fail the test.

See my reply to comment #46 for how I approach it and why.

Mark F's avatar Mark F - August 5, 2018

No, Leonardo‘s take is correct. Perl‘s .= operator appends the additional Buzz to the existing Fuzz string.

Leonardo Herrera's avatar 51. Leonardo Herrera - January 30, 2007

…well, that was a 78 bytes solution that it is now buried under some weird CSS property. Alas.

StoneCypher's avatar 52. StoneCypher - February 1, 2007

Jacob: most experienced coders use the XOR swap trick instead of allocating a new variable when swapping two machine primitives; it’s generally slightly faster and can be done in registers on the smallest of embedded machines.

If you see someone starting by allocating a third variable, you shouldn’t be hiring them.

Kam's avatar Kam - December 21, 2010

Xor takes what, four clock cycles? Memory access takes 100, even from L1…

Seebs's avatar Seebs - December 10, 2012

I am stunned. This is… well, frankly, stupid. First, the xor swap trick is only relevant in a narrow range of languages. Secondly, it is often gotten wrong; at least one person here posted a form without sequence points, which is wrong. Another posted a form using pointers — but dereferenced void *, which is wrong, and even if you don’t, the pointer version fails if the two pointers are to the same object.

If you’re writing C, and you are trying to outsmart the compiler, you should have retired in the early 90s. Write clear code, and assume that the compiler is probably a little more clear on how the machine works than your vague recollection of what you read about a 6502 once.

Tom F's avatar Tom F - June 28, 2018

I agree with the retire part.

Why do so many of these supposed “programmers” miss the main point – KISS

Wow – your method takes four less CPU cycles – Who cares?

If presented with this test at an interview, if the interviewer wants you to code in it a jazzy, cool, neat way reducing CPU usage to a bare minimum – for me, it’s “Thank anyway, I don’t want to work for you.” as I walk out the door.

The purpose of this is to see if someone can take what is a dirt simply task and just write straight forward code to do it.

If I was the interviewer and someone went out of the way to try and dazzle me, I’d yawn and ask them if they are going to always try and dazzle me or are they going to get the job done, with good code that works, is reasonably efficient, is readable, and will be easy for someone else to pick up, understand, and modify easily if the they are hit by the proverbial truck – or if they go back to in 13 months after they wrote it.

I think regular expressions serve as a good example regarding what you can do and what you should do.

I’ve actually seen people admit that the write regular expression which they finally bang on enough to get them to work but when they go back to them in a relatively short time, they can’t understand them.

In what universe is a complicated, “I don’t know what I did there”, regular expression an advantage over straight forward code to search or change a string.

Don’t get me wrong regular expressions are great tools but I believe that you should probably break really complicated ones into several expressions and operations.

AND – comment you code!

I started full time in 1973, I’ve seen it all and when it comes down to the bottom line, getting the job done – competently and professionally – is more important than jazzy or cool code.

George's avatar 53. George - February 2, 2007

Fizzbuzz in forth

: fizz? ( s — f ) 3 mod 0= ;
: buzz? ( s — f ) 5 mod 0= ;
: num? ( s — ) dup fizz? swap buzz? or 0= ;
: ?fizz ( s — ) fizz? if .” Fizz” then ;
: ?buzz ( s — ) buzz? if .” Buzz” then ;
: ?num ( s — ) num? if . then ;
: fizzbuzz ( s — ) dup ?fizz dup ?buzz dup ?num cr ;
: fizzbuzzes ( s — ) cr 1+ 1 do i fizzbuzz loop ;
100 fizzbuzzes
bye

it is fast well factored and with dumb logic no repeated values without return values it did not take two seconds because i was just learning to think forth, but this will

David L. Paktor's avatar David L. Paktor - March 4, 2014

Hi, George.
Nice but… Your “fizzbuzz ( s — )” is actually “fizzbuzz ( s — s )”
I.e., it leaves its input param on the stack.
You need to either remove the last “dup” or tack on a “drop” (your choice depending on whether you prefer exec speed or symmetry…)
Congrats on learning to “think forth”. I recommend heavy use of stack-diagrams, especially at first. Had you used them in “: fizzbuzz”, the error would have become immediately obvious.

George's avatar 54. George - February 2, 2007

Also at the http://www.jwdt.com/~paysan/why-forth.html it says what discribes a bad programer

A few people expressed doubt if they are bad programmers, or if they shouldn’t try Forth because they might be part of what I considder “bad programmers”, so here’s a small test if you are a bad programmer. The more of the following answers you answer with “yes”, the worse you are. Don’t feel bad if you have a few “yes”, nobody’s perfect. I added also a few questions where a “no” should be quite sure:

* When you program, you wince at least once every minute, and not just because your tool crashed or displayed other bugs, but because you stare a the blank screen and don’t know what to enter.
* Extra points if you avoid this by pretenting to do “design” before coding, and you just produce tons of documents and UML diagrams without ever touching the keyboard and leaving the dirty work of implementing your designs to other people.
* When you have a problem, you invite for a meeting. The more people you invite here, the more points (and pointy hairs) you get.
* You think that a team of 10 programmers can solve tasks 10 times as complex or in one tenth of the time. Bonus points if you think 100 programmers scale as linear. Point dropped if you believe that because a set of 10 programmers contains one which is capable to outperform the average programmer by a factor of 10. Tell me how you prevent the others to mess up the job of the elite one.
* You always ask you what’s so funny about these “Dilbert” strips your coworkers put on their cubicle walls. Extra points if you follow the advices in “Dogberts top secret management handbook” when managing the dolts below you.
* You do programming for money; doing it as a hobby (for fun!) is something that only madmen do.
* You believe that programming can’t be self-taught, and titles are worth more than experience.
* You believe that your self-taught skills are better than anything you can learn at a university. Remove that point here if you believe that because you are the archcancellor of an elite university, and therefore know what you are talking about.
* You can’t grasp how this free software, or as you call it, “Lie-nuts” system came around, other than being either all lies, or created by nuts. Bonus points if you believe both.
* Your programs tend to become an unmaintainable mess of spaghetti code after 1000 lines (add bonus points if you reach that state earlier, reduce if you reach it later, “master of bloatware points” if your programs exceed 100klocs and are still maintainable). Extra points if your programs grow wild even after they have become unmaintainable.
* You didn’t know what to do with these rectangular Lego bricks when you were a child, and rather played with prefabricated toys.
* You think that one programming language (and maybe assembler) is enough to be a competent programmer. Bonus points if you believe that knowing a programming language isn’t necessary at all to be a competent programmer.
* You still believe that if you think hard enough you can produce correct non-trivial code without testing, though testing in the past always proved you wrong.

L.'s avatar L. - December 2, 2011

Awesome . Too bad you won’t get honest answers on that cuz it’s pretty much relevant.

I lost a point at “university” though .. I really cannot get my head around the idea that someone in a uni could possibly bring you something MORE important than what you learn facing real problems.

Programming imho :

1. Logic – you can’t make people logical . math n stuff improve your logic level but that’s just it.

2. Abstraction / Visualization (as in in-brain complex system rendering) – noone can teach you that either . a good deal of math.physics will surely help improve, but that’s it.

3. Resource gathering (as in, “we require additional pylons”) – this is more about knowing what tool is suitable for what (i.e. vb/access/mysql = trash, perl = parsing powa, c++/fortran = math speed, python = damn another version still, java = gay syntax ftw, etc.) and mostly have a good ability to guess if something already exists, and if the already existing option/library is too much of a piece of crap to be used – or not.

4. Translation – everyone can learn that and it’s pretty much nothing special, also called “coding” or “writing code” or stuff. Now memory will surely help on that, and that can be trained as well so yeah . important and required it is .. but it’s something anyone can do without too much training (you know, writing if then else doesn’t require much brains . avoiding those two useless checks for every loop because you want to do something different for 1st and last element of a collection … is a step in the right direction).

5. Profit !

As a summary, I believe one should never underestimate what someone or something can teach them (be it some dude or the uni), but none of these potential learning sources should be glorified to the point of causing negative points in your scoring of me.

Patrick's avatar 55. Patrick - February 5, 2007

Who says there is no ternary in python?

print “\n”.join([str(not (i%3 or i%5) and “FizzBuzz” or not i%3 and “Fizz” or not i%5 and “Buzz” or i) for i in range(1, 101)])

😉

Ralph Miner's avatar 56. Ralph Miner - February 6, 2007

How disappointing that not one of the solutions fro Fizz Buzz started with writing acceptance tests.

57. What Do Programmers Do? » Continuous Learning - February 12, 2007

[…] Imran says many programmers can’t write code: […]

Tragomaskhalos's avatar 58. Tragomaskhalos - February 13, 2007

The FizzBuzz program is a lovely little test, and I’ve now used it a couple of times myself in interviews. One guy got a “7/10” from the business folks interviewing him, had 2+ years of Java on his CV, but couldn’t do this challenge at all – I mean he took a few minutes to even get out the loop opening, and that was a weird mishmash of while and for syntax.
I’d hate interviewers to dismiss this test as being too easy – in my experience it is genuinely astonishing how many candidates are incapable of the simplest programming tasks.

Cameron Kerr's avatar 59. Cameron Kerr - February 24, 2007

Remove the leading ‘. ‘ on each line to use. Haskell is indent-sensitive

. module Main
. where
.
. main = do
. print $ map fizzbuzz [1..100]
.
. fizzbuzz x | x `mod` 15 == 0 = “FizzBuzz”
. | x `mod` 5 == 0 = “Buzz”
. | x `mod` 3 == 0 = “Fizz”
. | otherwise = show x

Cameron Kerr's avatar 60. Cameron Kerr - February 24, 2007

And it still munges the text. Check my blog for what it should look like.

Paul's avatar 61. Paul - February 24, 2007

It’s a neat little test. I submitted it as a golfing challenge here:

http://golf.shinh.org/p.rb?FizzBuzz

Best solution so far is 50B of Perl. (Unfortunately, solutions are not viewable — or even saved.)

62. Coding Horror - February 27, 2007

Why Can’t Programmers.. Program?

I was incredulous when I read this observation from Reginald Braithwaite: Like me, the author is having trouble with the fact that 199 out of 200 applicants for every programming job cant write code at all. I repeat: they…

Syarzhuk's avatar 63. Syarzhuk - February 27, 2007

QBasic is easier 🙂

10 DATA “”, “”, “Fizz”, “”, “Buzz”, “Fizz”, “”, “”, “Fizz”, “Buzz”, “”, “Fizz”, “”, “”, “FizzBuzz”
20 DIM A$(15)
30 FOR I = 1 TO 15
40 READ A$(I)
50 NEXT I
60 FOR I = 1 TO 100
70 j = I MOD 15
80 IF A$(j) “” THEN PRINT A$(j) ELSE PRINT I
90 NEXT I

Cryptnotic's avatar 64. Cryptnotic - February 27, 2007

How about this one (just for fun):

int main()
{
int i;
for (i=1; i

Cryptnotic's avatar 65. Cryptnotic - February 27, 2007

Weak. Stupid less than signs.

int main()
{
int i;
for (i=1; i<=100; i++) {
switch(i % 15) {
case 0: printf(“fizzbuzz\n”); break;
case 3:
case 6:
case 9:
case 12: printf(“fizz\n”); break;
case 5:
case 10: printf(“buzz\n”); break;
default: printf(“%d\n”, i);
}
}
}

AlxShr's avatar 66. AlxShr - February 27, 2007

PHP::

for ($i=1;$

AlxShr's avatar 67. AlxShr - February 27, 2007

for ($i=1;$<101;$i++) {
if ($i%3==0)
echo “fuzz”;
if ($i%5==0)
echo “buzz”;
if ($i%3 && $i%5)
echo $i;
}

Patrik's avatar 68. Patrik - February 27, 2007

.NET console application written in C#:

for (int i = 1; i

Patrik's avatar 69. Patrik - February 27, 2007

Hmm. There might be something wrong with posting comments with the “less than” character. Anyway, here is the .NET console application solution written in C#:

for (int i = 1; i <= 100; i++)
{
Console.WriteLine((i % 3 == 0 && i % 5 == 0) ? “FizzBuzz” : ((i % 3 == 0) ? “Fizz” : (i % 5 == 0) ? “Buzz” : i.ToString()));
}

Joseph's avatar Joseph - February 28, 2010

hey so how do you get the program to display the numbers?

Keith's avatar Keith - January 5, 2011

That’s the i:ToString() part. If you can’t follow the example, you probably need to brush up on ?: syntax.

Brent Ashley's avatar 70. Brent Ashley - February 27, 2007

fizzbuzz.sh:

echo “1\n2\nfizz\n4\nbuzz\nfizz\n7\n8\nfizz\nbuzz\n11\nfizz\n13\n14\nfizzbuzz\n16\n17\nfizz\n19\nbuzz\nfizz\n22\n23\nfizz\nbuzz\n26\nfizz\n28\n29\nfizzbuzz\n31\n32\nfizz\n34\nbuzz\nfizz\n37\n38\nfizz\nbuzz\n41\nfizz\n43\n44\nfizzbuzz\n46\n47\nfizz\n49\nbuzz\nfizz\n52\n53\nfizz\nbuzz\n56\nfizz\n58\n59\nfizzbuzz\n61\n62\nfizz\n64\nbuzz\nfizz\n67\n68\nfizz\nbuzz\n71\nfizz\n73\n74\nfizzbuzz\n76\n77\nfizz\n79\nbuzz\nfizz\n82\n83\nfizz\nbuzz\n86\nfizz\n88\n89\nfizzbuzz\n91\n92\nfizz\n94\nbuzz\nfizz\n97\n98\nfizz\nbuzz\n”

lowly programmer's avatar 71. lowly programmer - February 27, 2007

int
main(int argc,char *argv[])
{
int ii;

for(ii=0;ii++

A.D.'s avatar 72. A.D. - February 27, 2007

In T-SQL:

DECLARE @i int
SET @i = 1
WHILE (@i

Michael Letterle's avatar 73. Michael Letterle - February 27, 2007

I took a slightly different approach then Patrik, but similar:

for(int x=1; x

Michael Letterle's avatar 74. Michael Letterle - February 27, 2007

I took a slightly different approach then Patrik, but similar:

for(int x=1; x <= 100; ++x) { Console.WriteLine((x % 3 == 0 ? “Fizz” : “”) + (x % 5 == 0 ? “Buzz” : “”) + ((x % 3 != 0 && x % 5 != 0) ? x.ToString() : “”) ); }

Casual Observer's avatar 75. Casual Observer - February 27, 2007

Another observation:

If the code is only three lines long, but is still hard to read, that’s also a bad sign.

If someone else wants to read your code, the simple version is better unless you have a very good reason (such as speed) for using peculiar shortcuts. Developer time is usually more important unless you have found a bottleneck.

Verbose code >> terse code 99% of the time. Some of you are showing off. Sorry, wouldn’t want you to work on my team.

matt's avatar 76. matt - February 27, 2007

C’mon, everyone, you’re forgetting the master of all programming languages: Visual Basic for Applications (Excel in this case)! 🙂

Sub fizzbuzz()
For i = 1 To 100
If i Mod 3 = 0 Then
If i Mod 5 = 0 Then
Range(“A1”).Offset(i – 1, 0).Value = “fizzbuzz”
Else
Range(“A1”).Offset(i – 1, 0).Value = “fizz”
End If
Else
If i Mod 5 = 0 Then
Range(“A1”).Offset(i – 1, 0).Value = “buzz”
Else
Range(“A1”).Offset(i – 1, 0).Value = i
End If
End If
Next i
End Sub

chance's avatar chance - July 2, 2010

VBA would look like this, as the requirements didn’t mention any excel sheets
Sub FizBizz()

For i = 1 To 100
If i Mod 15 = 0 Then
Debug.Print (“Fizz-Buzz”)

ElseIf i Mod 5 = 0 Then
Debug.Print (“Buzz”)
ElseIf i Mod 3 = 0 Then
Debug.Print (“Fizz”)
Else
Debug.Print (i)
End If

Next i

End Sub

77. Scott Hanselman's Computer Zen - February 27, 2007

You Can’t Teach Height – Measuring Programmer Competence via FizzBuzz

medbob's avatar 78. medbob - February 27, 2007

Took about 3 – 5 minutes because I couldn’t remember if the operator was DIV or MOD….

program Project1;

{$APPTYPE CONSOLE}

uses
SysUtils;
var i : Integer;
output : String;
begin
{ TODO -oUser -cConsole Main : Insert code here }
for I := 1 to 100 do
begin
Output := ”;
//Writeln(i,i mod 3);
if (i mod 3 = 0) then
Output := ‘Fizz’;
if (i mod 5 = 0) then
if (i mod 3 = 0) then
output := ‘Fizz-Buzz’
else
output := ‘Buzz’
else
if Output = ” then
Output := IntToStr(i);

Writeln(Output);
end;
Read(i);

end.

Fratm's avatar 79. Fratm - February 27, 2007

PERL:
while ($i

gorgan's avatar 80. gorgan - February 27, 2007

You just can’t beat the clean look of perl!

print$_%3?$_%5?$_:’Buzz’:$_%5?’Fizz’:’FizzBuzz’,”\n”for 1..100;

Fratm's avatar 81. Fratm - February 27, 2007

I used an less than = but couldnt post it.. so changed it a little.

while ($i != 101)
{
if ($i%3==0) { $out= “fizz”; }
if ($i%5==0) { $out .= “buzz”; }
if ($out) {print “$out \n”} else { print “$i\n”; }
++$i;
undef ($out);
}

82. rascunho » Seção de dados do blog » links for 2007-02-27 - February 27, 2007

[…] Using FizzBuzz to Find Developers who Grok Coding « Imran On Tech 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”. (tags: tickletux.wordpress.com 2007 at_tecp Fizz Buzz FizzBuzz programming test) […]

Too Embarrassed's avatar 83. Too Embarrassed - February 27, 2007

VB 6 Immediate window:

for x = 1 To 100: Debug.Print switch(x Mod 3 = 0,”fizz”,x Mod 5 = 0,”buzz”,x Mod 15 = 0,”fizzbuzz”,True,x):next

Shabaka's avatar 84. Shabaka - February 27, 2007

These programming tests aren’t real world situations anyway. Every scientist knows that an object behaves differently under observation. Job interviews are already tense situations. Then to have to write code with someone breathing down your neck…I don’t think testing like this is a good way to screen out candidates. For one thing, if you are hiring a web developer, chances are s/he will be working online. What’s wrong with using Google? We’ve gotten to a point where we don’t have to recreate the wheel. What purpose does FizzBuzz serve in the real world? In my CompSci class, the prof said that programmers are lazy. If the problem has already been solved, whats the point so sweating about it?

Kam's avatar Kam - December 21, 2010

obaka,
this is a warmup question. anyone should slide into it, and be smiling and less stressed by the end!

Tim Balbekov's avatar 85. Tim Balbekov - February 27, 2007

I’m 15 and have never taken a programming class. Seven minutes in C:

#include “stdio.h”

int main() {
int i;
for(i = 1; i

ErnWong's avatar ErnWong - December 8, 2012

I’m 14! JavaScript: ( function FizzBuzz( undefined ) {
for ( var i = 0; i <= 100; i++ ) {
var out = undefined;
if ( i % 3 === 0 ) {
out = "Fizz";
}
if ( i % 5 === 0 ) {
//out = [(out || ""), "Buzz"].join("");
// or request for Fizz-Buzz instead:
out = [(out? out + "-" : ""), "Buzz"].join("");
}
console.log( out || i );
}
} )();

Q. Programming class?

A. Google Search.

LowJo's avatar 86. LowJo - February 27, 2007

Alright smart guys.

How about some OO? 😉

using System;

internal class Program
{
private static void Main()
{
for( int i = 1; i

Tim Balbekov's avatar 87. Tim Balbekov - February 27, 2007

#include “stdio.h”

int main() {
int i;
for(i = 1; i LESS_THAN_GETS_FILTERED 100; i++) {
if( (i % 3 == 0) && (i % 5 == 0))
printf(“FizzBuzz\n”);
else if(i % 3 == 0)
printf(“Fizz\n”);
else if(i % 5 == 0)
printf(“Buzz\n”);
else printf(“%i\n”, i);
}

return 1;
}

Eric's avatar 88. Eric - February 27, 2007

my perl version (59 chars, borrowing some ideas from previous posts):
print+($_%3?””:”Fizz”).($_%5?””:”Buzz”)||$_,”\n”for 1..100;

Andy LeClair's avatar 89. Andy LeClair - February 27, 2007

Freshman at Northeastern University. 5 minutes in Pretty Big Scheme (PLT’s MzScheme (which includes R5RS) and the HTDP.org teaching languages)

;; fizzbizz: Number -> String
;; prints out the numbers from 0 to [sub1 n], fizz on a mult. of 3,
;; bizz on 5, and fizzbizz on both
(define (fizzbizz n)
(build-list n (lambda (x)
(cond
[(and (= 0 (modulo x 3))
(= 0 (modulo x 5))) “fizzbizz”]
[(= (modulo x 3) 0) “fizz”]
[(= (modulo x 5) 0) “bizz”]
[else x]))))

Andy LeClair's avatar 90. Andy LeClair - February 27, 2007

follow that up with:

(fizzbizz 100) or up to whatever you please.

otli4nitsa and keda's avatar 91. otli4nitsa and keda - February 27, 2007

in perl… 67b 🙂 paul, how’d you do 50b? plz post the code.

for(1..100){print ” “,$_%3?$_%5?$_:’fizz’:$_%5?’buzz’:’fizzbuzz’;}

92. Ayende @ Rahien - February 27, 2007

If Program I Can’t, Programmer Am I?

If Program I Can’t, Programmer Am I?

Steve's avatar 93. Steve - February 27, 2007

>To Shabaka:
>These programming tests aren’t real world situations anyway.

You’re right. These programming tests are far simpler than real world situations. If you can’t hack a simple contrived problem like FizzBuzz, it’s very likely you can solve a real world problem.

Dan's avatar 94. Dan - February 27, 2007

Javascript…

function FizzBuzz()
{
var strAlert=””;
for(var i=1; i

Dan's avatar 95. Dan - February 27, 2007

Javascript:
(I cant believe they don’t escape your input…)

function FizzBuzz()
{
var strAlert="";
for(var i=1; i<=100; i++)
{
strAlert += (i%3==0)?"Fizz":"";
strAlert += (i%5==0)?"Buzz":"";
strAlert += (i%3!=0 && i%5!=0)?i:"";
strAlert += ", "
}
alert(strAlert.substring(0, strAlert.length-2));
}

JimGee's avatar 96. JimGee - February 27, 2007

I would happy if they can do this.

/* Comments about program go here*/
#include “stdio.h”
int main(int argc, char* argv[])
{
int i;
for(i=1; i

Don Beal's avatar 97. Don Beal - February 27, 2007

What a great post…

I have been writing code for about 20 years now, it’s amazing how in the past 10 nobody wants anything but VB for in-house stuff (mostly for TTM reasons) but this is a tremendous example of how there are a million ways to accomplish the same thing in 100 different languages.

I recently went out to dinner with a fellow consultant and we had this discussion about how new programmers know the latest .NET and nothing else and it is just pitiful how they have no foundation whatsoever. If it weren’t for Randy Birch I doubt they would ever pass a mid-term. I think that is the byproduct of making languages easier to read/write.

A lot of people can paint a house, but I wouldn’t call them all house painters.

Again, awesome thread.

JimGee's avatar 98. JimGee - February 27, 2007

‘/* Comments about program go here*/
#include “stdafx.h”
int main(int argc, char* argv[])
{
int i;
for(i=1; i

JimGee's avatar 99. JimGee - February 27, 2007

I would happy if they can do this.

/* Comments about program go here*/
#include “stdafx.h”
int main(int argc, char* argv[])
{
int i;
for(i=1; i&lt 101; i++)
{
printf(“%d “,i);
if(i % 3 ==0)
printf(“Fizz”);
if(i % 5 == 0)
printf(“Buzz”);
printf(“\n”);
}
return 0;
}

VOID's avatar 100. VOID - February 27, 2007

def FizzBuzz():
for i in range(1,101):
n=i%15
if(n==0): print “FizzBuzz”
elif(n in [3,6,9,12]):print “Fizz”
elif(n in [5,10]):print “Buzz”
else: print i

FizzBuzz()

Had to be original.

vurp's avatar vurp - May 2, 2011

out={(False, False):0, (True, False):’Fizz’, (False, True):’Buzz’, (True, True):’FizzBuzz’}
for i in range(1, 101):
out[(False, False)]=i
print out[(not i%3, not i%5)]

dumb's avatar 101. dumb - February 27, 2007

/

rob's avatar 102. rob - February 27, 2007

the real test should be to leave a coding example and have the < and > show up 😉

imdumb's avatar 103. imdumb - February 27, 2007

help me I’m dumb
/

Pat's avatar 104. Pat - February 27, 2007

I’ve done FizzBuzz in C language in 7 minutes and swap variables in 20 seconds. I think this is not bad and also not impressive. But these questions are too much hazardous. Too much synthetic to bring some guy down at the interview. Personally I’ve been two times a victim of that smart questions that I have not passed. However I consider myself as above average skilled programmer.

Steve's avatar 105. Steve - February 27, 2007

To Pat:
>Personally I’ve been two times a victim of that smart questions
>that I have not passed. However I consider myself as above
>average skilled programmer.

How do you know you’re an above average skilled programmer? There literally billions of dumb people roaming this earth who are deluded they are very intelligent though reality tells a different story. What makes you think you’re immune to being deluded about your own skills and intelligence?

Ask yourself this: Why did it take you 7 minutes to write FizzBizz? Do you type really slow? Did you have to fix bugs? Did you have to fix compiler errors? Did you know right away to use the mod operator?

Don’t you think if a person has trouble with a problem like this, they might do a poor job at solving real world problems with which the complexity of the problems are orders of magnitude more complicated?

robby's avatar 106. robby - February 27, 2007

LoL its funny cause all these guys are like bragging that they can code this program by putting the code in their comment..

BUT ITS ALL WRONG

if i = 15 it would print, FIZZBUZZ
FIZZ
BUZZ
resulting it occurring twice..
cause you have no ‘continue’ after your if statement that checks for 3 and 5

it would also make more sense to check if it is divisible by 15 rather than 3 && 5

Hopeless.. im telling your boss to outsource your job to India.

Ray's avatar 107. Ray - February 27, 2007

in IL:

.method private hidebysig static void Main(string[] args) cil managed
{
.entrypoint
// Code size 120 (0x78)
.maxstack 2
.locals init ([0] int32 i,
[1] string ‘value’,
[2] bool CS$4$0000)
IL_0000: nop
IL_0001: ldc.i4.1
IL_0002: stloc.0
IL_0003: br.s IL_0065
IL_0005: nop
IL_0006: ldloca.s i
IL_0008: call instance string [mscorlib]System.Int32::ToString()
IL_000d: stloc.1
IL_000e: ldloc.0
IL_000f: ldc.i4.3
IL_0010: rem
IL_0011: brtrue.s IL_001e
IL_0013: ldloc.0
IL_0014: ldc.i4.5
IL_0015: rem
IL_0016: ldc.i4.0
IL_0017: ceq
IL_0019: ldc.i4.0
IL_001a: ceq
IL_001c: br.s IL_001f
IL_001e: ldc.i4.1
IL_001f: stloc.2
IL_0020: ldloc.2
IL_0021: brtrue.s IL_002d
IL_0023: nop
IL_0024: ldstr “FizzBuzz”
IL_0029: stloc.1
IL_002a: nop
IL_002b: br.s IL_0059
IL_002d: ldloc.0
IL_002e: ldc.i4.3
IL_002f: rem
IL_0030: ldc.i4.0
IL_0031: ceq
IL_0033: ldc.i4.0
IL_0034: ceq
IL_0036: stloc.2
IL_0037: ldloc.2
IL_0038: brtrue.s IL_0044
IL_003a: nop
IL_003b: ldstr “Fizz”
IL_0040: stloc.1
IL_0041: nop
IL_0042: br.s IL_0059
IL_0044: ldloc.0
IL_0045: ldc.i4.5
IL_0046: rem
IL_0047: ldc.i4.0
IL_0048: ceq
IL_004a: ldc.i4.0
IL_004b: ceq
IL_004d: stloc.2
IL_004e: ldloc.2
IL_004f: brtrue.s IL_0059
IL_0051: nop
IL_0052: ldstr “Buzz”
IL_0057: stloc.1
IL_0058: nop
IL_0059: ldloc.1
IL_005a: call void [mscorlib]System.Console::WriteLine(string)
IL_005f: nop
IL_0060: nop
IL_0061: ldloc.0
IL_0062: ldc.i4.1
IL_0063: add
IL_0064: stloc.0
IL_0065: ldloc.0
IL_0066: ldc.i4.s 100
IL_0068: cgt
IL_006a: ldc.i4.0
IL_006b: ceq
IL_006d: stloc.2
IL_006e: ldloc.2
IL_006f: brtrue.s IL_0005
IL_0071: call string [mscorlib]System.Console::ReadLine()
IL_0076: pop
IL_0077: ret
} // end of method Program::Main

Daruku's avatar 108. Daruku - February 27, 2007

// c#

class FizzBuzz
{
static void Main(string[] args)
{
for (int i = 1; i

C Is A Write-Only Language's avatar 109. C Is A Write-Only Language - February 27, 2007

You suckas. In APL I can solve either problem in one character: a

I’ll take my job offer now, thanks.

DeathToSpam's avatar 110. DeathToSpam - February 27, 2007

ASP/VBScript, complete with purdy output formatting:

” & vbNewLine
Next %>

DeathToSpam's avatar 111. DeathToSpam - February 27, 2007

ASP/VBScript, complete with purdy output formatting:

Dim iLoop, bIsMultipleOfThree, bIsMultipleOfFive, sOutput

For i = 1 to 100
bIsMultipleOfThree = (i MOD 3 = 0)
bIsMultipleOfFive = (i MOD 5 = 0)

If (i ” & vbNewLine
Next

DeathToSpam's avatar 112. DeathToSpam - February 27, 2007

Tried to post, but characters got all truncated after submitting. 😦 Oh well.

Lumpio-'s avatar 113. Lumpio- - February 27, 2007

I can’t believe nobody thought of

for i in range(1, 101): print [i, “Fizz”, “Buzz”, “FizzBuzz”][int(i % 3 == 0) + int(i % 5 == 0) * 2]

Leonardo Herrera's avatar 114. Leonardo Herrera - February 28, 2007

Bah, couldn’t beat the 49 bytes mark (mine is 54 bytes).
print$_%3?$_%5?$_:””:Fizz,$_%5?””:Buzz,”\n”for 1..100;

Leonardo Herrera's avatar 115. Leonardo Herrera - February 28, 2007

(And I keep marveled at our capacity to intentionally miss the point.)

Marek Pułczyński's avatar 116. Marek Pułczyński - February 28, 2007

Just for completness – BASH oneliner (dumbly assuming modulo is as expensive as comparison)

for x in `seq 100` ; do if [ `expr $x % 15` -eq 0 ] ; then echo FizzBuzz; elif [ `expr $x % 3` -eq 0 ]; then echo Fizz; elif [ `expr $x % 5` -eq 0 ]; then echo Buzz; else echo $x; fi; done

Jason's avatar 117. Jason - February 28, 2007

A little more convoluted than the examples above in Python, but still (fairly) followable:

print ‘\n’.join([{(False, False): y[-1], (True, False): “Fizz”, (False, True): “Buzz”, (True, True): “FizzBuzz”}[y[0]] for y in [((x%3==0, x%5==0), str(x)) for x in range(1, 101)]])

118. mobmash blog » Blog Archive » links for 2007-02-28 - February 28, 2007

[…] Using FizzBuzz to Find Developers who Grok Coding « Imran On Tech (tags: programming interview) […]

bumSki's avatar 119. bumSki - February 28, 2007

// in C++
int main()
{
for (int count = 1; count

Matt's avatar 120. Matt - February 28, 2007

This is the shortest way I could think of doing it in C++. Of course, the layout is absolutely horrid (no whitespace, etc) but it’s short and it works:

#include
int main()
{
for(int i=1;i

MrMajestyk's avatar 121. MrMajestyk - February 28, 2007

For i As Integer = 1 To 100
If i Mod 3 = 0 Then
lblSolution.Text &= “Fizz” & vbCrLf
ElseIf i Mod 5 = 0 Then
lblSolution.Text &= “Buzz” & vbCrLf
ElseIf i Mod 3 = 0 And i Mod 5 = 0 Then
lblSolution.Text &= “FizzBuzz” & vbCrLf
Else
lblSolution.Text &= i & vbCrLf
End If

Next

Thomas Moitie's avatar 122. Thomas Moitie - February 28, 2007

“Want to know something scary ? – the majority of comp sci graduates can’t.”

I’m 17, self-taught at php. A language in which I came up with a solution within 1 minute. I am utterly astounded if this statement is true

Kam's avatar Kam - December 21, 2010

key words: self-taught.
If I asked you something you didn’t know, you’d LEARN IT.

someone tired of writing code but loving of doing it also's avatar 123. someone tired of writing code but loving of doing it also - February 28, 2007

after 15 years of c++ experience.
i wonder why you check three conditions for FizzBuzz thing!
one for fizz, one for buzz, and another for fizzbuzz..
wouldnt it be reasonable to use a boolean to control not to write the number. but only checking if it is a modul of 5 or 3. and after the each loop, feeding the line.

one thing is favorable, you should write a code to be extended easily in the future.

Thomas Messier's avatar 124. Thomas Messier - February 28, 2007

One test we used to administer for web developers was ask them to code a simple calendar. We gave them plenty of time, along with all the reference manuals. Lots of people couldn’t do it in 30 minutes.

Carl's avatar 125. Carl - February 28, 2007

What? No one’s tried to use C++ templates to compute FIZBUZ at compile time instead of at runtime.

Syed Muhammad's avatar 126. Syed Muhammad - February 28, 2007

programming requires a little bit of talent and some passion of PROBLEM SOLVING. probably that’s why they can’t write the code. no problem solving skills.

Procyon's avatar 127. Procyon - February 28, 2007

windows batch file:

@echo off
set count=1
:loop
set div3=%count%
set div5=%count%
:loop3
set /a div3 -= 3
if not %div3% leq 0 goto :loop3
:loop5
set /a div5 -= 5
if not %div5% leq 0 goto :loop5
if %div3%==0 (
if %div5%==0 (
echo fizzbuzz
) else (
echo fizz
)
) else (
if %div5%==0 (
echo buzz
) else (
echo %count%
)
)
set /a count += 1
if %count% lss 100 goto :loop

Unmaintainable Code's avatar 128. Unmaintainable Code - February 28, 2007

#include
int main(){int i;for(i=1;101>i;++i)printf(i%15?i%3?i%5?”%d\n”:
“Buzz\n”:”Fizz\n”:”FizzBuzz\n”,i);}

Anonymous's avatar 129. Anonymous - February 28, 2007

main(i){for(i=0;i

Matt's avatar 130. Matt - February 28, 2007

Here’s the main part of my code since my post was clipped for some reason:

std::cout

GS's avatar 131. GS - February 28, 2007

Since everyone else is posting their solution:

#FIZZBUZZ.PY
for i in range(1,101):
flag = True
num = []
if i % 3 == 0:
num.append(“Fizz”)
flag = False
if i % 5 == 0:
num.append(“Buzz”)
flag = False
num = ”.join(num)
if flag:
num = str(i)
print “%s\n” % (num),

Trey Marcus's avatar 132. Trey Marcus - February 28, 2007

I’m not at all surprised at this because the interviewer is apparently asking a person to use a piece of paper or whiteboard to write a computer program. This is a completely foreign environment for most programmers I know and under the stress of an interview I am not at all surprised that most programmers would have trouble with such a task.

If you want to know if a person can architect a solution to a FizzBuzz style problem then I think its fine to ask them how they might go about solving it. Asking someone to write a computer program on a piece of paper seems a bit assinine and I think such interview tactics say far more about the interviewer than the interviewee.

If you want to test a person’s programming abilities… great. Give him a computer and a problem and leave him to work as he normally would to find a problem even if its just a few minutes.

Kam's avatar Kam - December 21, 2010

Doesn’t anyone learn to code without the compiler anymore? Egads! Part of my debugging regimen is to READ THE CODE. I catch more bugs that way…

[and the point isn’t to get the syntax right, but to show problem solving ability.]

Trey Marcus's avatar Trey Marcus - March 3, 2011

A friend googled me, found this page, and asked me about my comment, which led me here. It is in fact my name, yet I have no recollection of ever writing this comment, so I thought I would comment on the comment that I may or may not have written:

I interviewed for a position in 2000 when I knew Java much better than C++, and I was asked to solve a problem on a Writeboard in C++. I did it, but was unsure of the syntax to use in C++ for an abstract function- so I wrote [abstract] and said whatever that’s called in C++. (It’s “virtual”.) I got the job, and was asked a few months later to interview two other people the same way on the writeboard. Neither of them, both of whom were C++ OOP “experts” according to their resumes, could even start writing basic code, let alone get far enough to write a virtual function. So I disagree with “Trey Marcus”: There certainly is a time and a place for paper and writeboard coding tests, if the test is conceptual based and simple enough.

133. Bob On Development » The Crisis of Programmer Competence - February 28, 2007

[…] In fact some interviewers have taken to screening all applicants early with some trivial programming problem like the FizzBuzz Question. […]

shoebappa's avatar 134. shoebappa - February 28, 2007

Jacob, I’d seen the opposite question, to swap two variables without using a third…

$x = 5;
$y = 11;

$x = $x + $y; // 5+11 = 16
$y = $x – $y; // 16-11 = 5
$x = $x – $y; // 16-5 = 11

guess it only works with numbers, but using a third variable is the obvious solution, it’s unfortunate that you could weed anyone out with that question…

Jason's avatar 135. Jason - February 28, 2007

Common Lisp, format-style:
(loop for i from 1 to 100
do (format t “~A ~:[~;Fizz~]~:[~;Buzz~]~%” i (zerop (mod i 3)) (zerop mod i 5))))

Pascal Bourguignon's avatar Pascal Bourguignon - September 17, 2012

Doesn’t answer the specs.
Try:

(loop for n from 1 to 100 do (format t “~[~[FizzBuzz~:;Fizz~]~*~:;~[Buzz~*~:;~D~]~]~%” (mod n 3) (mod n 5) n))

test's avatar 136. test - February 28, 2007
test's avatar 137. test - February 28, 2007

< >

Exec's avatar 138. Exec - February 28, 2007

XSL version
=======

<?xml version=”1.0″ encoding=”UTF-8″?>
<xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform” xmlns:fo=”http://www.w3.org/1999/XSL/Format”>

<xsl:template match=”/”>
<xsl:call-template name=”fizzLogic”>
<xsl:with-param name=”iCount” select=”‘1′”/>
</xsl:call-template>
</xsl:template>

<xsl:template name=”fizzLogic”>
<xsl:param name=”iCount”/>

<xsl:if test=”$iCount &lt; 101″>
<xsl:choose>
<xsl:when test=”$iCount mod 3=0 and $iCount mod 5 = 0″>FizzBuzz</xsl:when>
<xsl:when test=”$iCount mod 3=0″>Fizz</xsl:when>
<xsl:when test=”$iCount mod 5=0″>Buzz</xsl:when>
<xsl:otherwise><xsl:value-of select=”$iCount”/></xsl:otherwise>
</xsl:choose>

<xsl:call-template name=”fizzLogic”>
<xsl:with-param name=”iCount” select=”$iCount+1″/>
</xsl:call-template>

</xsl:if>
</xsl:template>

</xsl:stylesheet>

139. The Mu » Blog Archive » Programmers that can’t program - February 28, 2007

[…] an aside, I gave the FizzBuzz problem a shot too.  I included my result below (it took me almost twenty minutes because I […]

Sougent's avatar 140. Sougent - February 28, 2007

I’m waiting for the solution in COBOL…….

Vincent McNabb's avatar 141. Vincent McNabb - February 28, 2007

In JavaScript:

for(i = 1; i < 101; i++) {
  if(i%3==0) document.write("Fizz");
  if(i%5==0) document.write("Buzz");
  if(!((i%3==0)|(i%5==0))) document.write(i);
  document.write("<br>");
}

Basic

for i = 1 to 100
  if i mod 3 = 0 then print "Fizz"
  if i mod 5 = 0 then print "Buzz"
  if i mod 3 > 0 and i mod 5 > 0 then print str$(i)
next

Thomas Chapin's avatar 142. Thomas Chapin - February 28, 2007

I wonder if you replace the lesser than symbol with the html escaped version, it will work? Testing now: <

Thomas Chapin's avatar 143. Thomas Chapin - February 28, 2007

Ok. Cool. It looks like that worked.

Here’s my version done in javascript:

<script>

for(i=1; i<101; i++){

   if(i%15==0){
      document.write(“FizzBuzz<BR>”);
   }else if(i%5==0){
      document.write(“Buzz<BR>”);
   //
   }else if(i%3==0){
      document.write(“Fizz<BR>”);
   }else{
      document.write(i+”<BR>”);
   }

}

</script>

Thomas Chapin's avatar 144. Thomas Chapin - February 28, 2007

whoops I left two slashes in there on accident (I was going to put comments in there but decided to remove them)

Ian's avatar 145. Ian - February 28, 2007

“I’m waiting for the solution in COBOL…”

something like (I don’t have a compiler to hand and it’s been a while):

PERFORM VARYING Count FROM 0 BY 1 UNTIL Count > 99
COMPUTE Three-Mod = FUNCTION MOD (Count, 3).
COMPUTE Five-Mod = FUNCTION MOD (Count, 5).
IF Three-Mod = 0 AND Five-Mod = 0 THEN
DISPLAY “FizzBuzz”
ELSE
IF Three-Mod = 0 THEN
DISPLAY “Fizz”
ELSE
IF Five-Mod = 0 THEN
DISPLAY “Buzz”
ELSE
DISPLAY Count
END-IF
END-IF
END-PERFORM

But as the nested IF’s suck, with an EVALUATE something like this:

PERFORM VARYING Count FROM 0 BY 1 UNTIL Count > 99
COMPUTE Three-Mod = FUNCTION MOD (Count, 3).
COMPUTE Five-Mod = FUNCTION MOD (Count, 5).
EVALUATE Three-Mod ALSO Five-Mod
WHEN 0 ALSO 0 DISPLAY “FizzBuzz”
WHEN 0 ALSO >0 DISPLAY “Fizz”
WHEN >0 ALSO 0 DISPLAY “Buzz”
WHEN >0 ALSO >0 DISPLAY Count
END-EVALUATE
END-PERFORM

flickrhoneys's avatar 146. flickrhoneys - February 28, 2007

Grok coding is one of my many hobbys, but i need someone to explain it to me 😦

Fahd Mirza's avatar 147. Fahd Mirza - February 28, 2007

Reading this thread was a splendid education

eric's avatar 148. eric - February 28, 2007

indeed scary

that FizzBuzz problem should take 1-2 minutes max for an experienced developer.

Any more directly presents hesitance and a lack of skill. Unable for someone to answer it should mean that they chose a wrong path and should never have become developers.

eric's avatar 149. eric - February 28, 2007

I cannot help noticing how simple this program is, and how many people have posted their solutions here, (trying of course to give a quick and clever minimalistic solution)

I haven’t read all the replies above me, and I am not surprised to found at least 3 solutions which do not work.

Not to name any but some solutions above print “Fizz Buzz FizzBuzz” when they find multiples of 3 and 5.

Being quick and rushing are not the same thing.

Alex's avatar 150. Alex - February 28, 2007

Can’t forget C# with a little LINQ…

foreach (string s in Sequence.Range(1,100).Select<int,object>(i => ((i%15)==0) ? “FizzBuzz” : ((i%3)==0) ? “Fizz” : ((i%5)==0) ? “Buzz” : i.ToString())) Console.WriteLine(s);

Ross Hawkins's avatar 151. Ross Hawkins - February 28, 2007

IBM Lotus Notes @Function FizzBuzz

@For(n := 1; n <= 100; n := n + 1; output := output + @If(@Modulo( n ; 3 ) = 0 & @Modulo( n ; 5 ) = 0; “FizzBuzz”;@Modulo( n ; 3 ) = 0; “Fizz”; @Modulo( n ; 5 ) = 0; “Buzz” ; @Text(n) ));output;

or

@For(n := 1; n <= 100; n := n + 1;tmp := @If(@Modulo( n ; 3 ) = 0; “Fizz”; “”);tmp := tmp + @If(@Modulo( n ; 5 ) = 0; “Buzz”; “”);output := output + @If(@Length(tmp) =0; @Text(n); tmp ));output

Add a @Newline in there for readability if you wish. The great thing about the IBM/Lotus solution is that there’s hardly anyone out there who’s going to bother to test it.

Yuri's avatar 152. Yuri - February 28, 2007

Someone wrote:

def FizzBuzz():
for i in range(1,101):
n=i%15
if(n==0): print “FizzBuzz”
elif(n in [3,6,9,12]):print “Fizz”
elif(n in [5,10]):print “Buzz”
else: print i

FizzBuzz()

Had to be original.

Hehe, nice!

153. Reality Me » And they call themselves programmers… - February 28, 2007

[…] he made a very good post asking "Why can’t programmers.. Program?" He referenced Imran on Tech who uses a simple problem to figure out if his prospective candidates can code. Imran also has good […]

154. News Flash: Tech Interviews Don’t Work at mark++ - February 28, 2007

[…] Imram […]

155. The Mu » Blog Archive » Blogosphere abuzz over FizzBuzz - February 28, 2007

[…] of traffic was created by Imran’s original post, Reg Braithwaite’s comment, and Jeff Atwood’s followup. All over the blogosphere, eager […]

Unknown's avatar 156. silentflute » Programmers can’t program? - February 28, 2007

[…] Using FizzBuzz to Find Developers who Grok Coding […]

157. slimCODE, aka Martin Plante : Comment reconnaître un bon développeur - February 28, 2007

[…] à un poste de développeur est recommencé depuis un billet de Imran qui se sent obligé de mettre la barre très basse lors d’entrevues. Il propose l’implémentation d’un jeu d’enfant appelé FizzBuzz (tout bon […]

Dilbert's avatar 158. Dilbert - February 28, 2007

There is some major flaws in this testing approach with any corporate programmer. First of all, you didn’t give him any time to discuss the requirements with analysts and end users, nor did you present him with use cases, workflows, or activity diagrams. You didn’t bother to explain unit test plans or QA bug tracking, nor did you even have the courtesy of scheduling five meetings to review specs, user interfaces, budgets, or schedules! You are also going to need to provide 45 minutes of time for the programmer to check his daily e-mail from his 5 supervisors who want to know what he is doing. AND YOU WONDER WHY THEY FAIL THE TEST???!!!

anon's avatar 159. anon - March 1, 2007

Didn’t know about the MOD operator, so had to try a different method:

Sub FizzBuzz()

t3 = 0
t5 = 0

For i = 1 To 100

t3 = t3 + 1
t5 = t5 + 1
Number = False

If t3 = 3 And t5 5 Then
Cells(i, 5) = “Fizz”
t3 = 0
Number = True
End If

If t5 = 5 And t3 3 Then
Cells(i, 5) = “Buzz”
t5 = 0
Number = True
End If

If t3 = 3 And t5 = 5 Then
t3 = 0
t5 = 0
Cells(i, 5) = “FizzBuzz”
Number = True
End If

If Number = False Then
Cells(i, 5).Value = i
End If
Next

End Sub

Nick's avatar 160. Nick - March 1, 2007

In Prolog…

start :- fizz_buzz(1,100).

fizz_buzz(Lo,Hi) :-
Lo <= Hi ,
output(Lo) ,
Next is Lo+1 ,
FizzBuzz(Next,Hi).
FizzBuzz.

output( N ) :-
R3 is N mod 3 ,
R5 is N mod 5 ,
text( R3 , R5 , N , T ) ,
write(T) ,
nl.

text( 0 , 0 , N , N ).
text( _ , 0 , _ , ‘Fizz’ ).
text( 0 , _ , _ , ‘Buzz’ ).
text( _ , _ , _ , ‘FizzBuzz’ ).

161. The FizzBuzz Fizz And Weak Programmers on iface thoughts - March 1, 2007

[…] rightly points out that a lot of programmers, who talk well about programming, cannot actually code. Jeff Atwood follows up with his views on it. My experience has been a little different, when I got […]

162. Solving FizzBuzz Problem | FuCoder.com - March 1, 2007

[…] quoted Irman’s FizzBuzz question, a trivial programming problem but surprisingly has stumbled many job applicants. Here is the […]

Pete's avatar 163. Pete - March 1, 2007

I’m not really much of a programmer, but here’s my Fizzbuzz in C++:

#include
using namespace std;

int main(){
int x=0;
do {
x++;
cout

Pete's avatar 164. Pete - March 1, 2007

^that broke….

#include
using namespace std;

int main(){
int x=0;
do {
x++;
cout

Pete's avatar 165. Pete - March 1, 2007

……

Scorpyosis's avatar 166. Scorpyosis - March 1, 2007

You will never hire me, in spite of I can swap two variables (a,b)without creating a third variable :
a = a + b
b = a – b
a = a – b

>>> In respond to this comment :
3. Jacob – January 24, 2007
Want another good filter? This surprised me, but turns out to be a good indication of whether someone has actually ever programmed before.

Ask: show me (on paper, but better on a whiteboard) how you would swap the values of two variables.

If they don’t *start* with creating a third variable, you can pretty much write that person off. I’ve found that I can cut a third to half my (admittedly at that point unscreened) applicants with that question alone.

Don's avatar 167. Don - March 1, 2007

“Dilbert (Feb 28)”, funny point, don’t forget to mention the one guy that is neither engineer nor developer somehow getting involved and insisting on changing the scope of the project every third minute.

;-?

168. A ver si no sabemos programar… « Para bellum - March 1, 2007

[…] autor al que se refiere es Imran, que está rechazando a montañas de programadores que no saben escribir un simple programa. Después de unas cuantas pruebas y errores descubrí que a las personas que se pelean con el […]

Mike Nolan's avatar 169. Mike Nolan - March 1, 2007

81 characters in PHP but I’m sure it can be reduced a little:

for($i=1;$i

Dave's avatar 170. Dave - March 1, 2007

— in oracle plsql
begin
dbms_output.enable;
for i in 1..100
loop
if mod(i,3)=0
then dbms_output.put_line(‘Fizz’);
elsif mod(i,5) =0
then dbms_output.put_line(‘Bizz’);
elsif mod(i,3)=0 and mod(i,5)=0
then dbms_output.put_line(‘FizzBizz’);
else
dbms_output.put_line(i);
end if;
end loop;
end;

Dave's avatar 171. Dave - March 1, 2007

— correction…plsql
begin
dbms_output.enable;
for i in 1..100
loop
if mod(i,3)=0 and mod(i,5)=0
then dbms_output.put_line(‘FizzBizz’);
elsif mod(i,3)=0
then dbms_output.put_line(‘Fizz’);
elsif mod(i,5) =0
then dbms_output.put_line(‘Bizz’);
else
dbms_output.put_line(i);
end if;
end loop;
end;

Kisara's avatar 172. Kisara - March 1, 2007

The sad part about this is that it took me about 3 minutes to write.

And I’m 12.

C.F.'s avatar 173. C.F. - March 2, 2007

What about this?

public class FizzBuzz {

static final int MAX_NUM = 100;

public static void main(String[] args) {

String str;

for(int i = 1; i

steve's avatar 174. steve - March 2, 2007

My first python program. I have been wanting to learn Python so I thought I would install it and try FizzBuzz on for size. I see some other Python examples but this one is a little different. How bad is it?

for x in range(1, 101): # needs to be 101 to include 100 in the loop
out = “” # set reset output
if x%3 == 0: # x evenly divisible by 3
out = ‘Fizz’ # yes
if x%5 == 0: # x evenly divisible by 5
out = out + ‘Buzz’ # yes
if out == “”: # is out null
print x # yes print x
else:
print out # no print out

Brian Adkins's avatar 175. Brian Adkins - March 2, 2007

68 bytes in Ruby

1.upto(100){|i|puts”FizzBuzz#{i}”[i%3==0?0:i%5==0?4:8,i%15==0?8:4]}

176. Scott Hanselman's Computer Zen - Hanselminutes Podcast 53 - Hiring and Interviewing Engineers - March 2, 2007

[…] Using FizzBuzz to Find Developers who Grok Coding (mgx) Don’t Overthink FizzBuzz (mh0) On Interviewing Programmers (mh3) Why Can’t Programmers.. Program? (mgy) Programming Jokes compiled by Raganwald (mh1) The Guerrilla Guide to Interviewing (version 3.0) (mh4) You Can’t Teach Height – Measuring Programmer Competence via FizzBuzz (mgz) What Great .NET Developers Ought To Know (More .NET Interview Questions) (mh2) […]

Brian Adkins's avatar 177. Brian Adkins - March 2, 2007

Oh man, shaved off 3 bytes 🙂

1.upto(100){|i|puts”FizzBuzz#{i}”[i%3

Brian Adkins's avatar 178. Brian Adkins - March 2, 2007

1.upto(100){|i|puts”FizzBuzz#{i}”[i%3<1?0:i%5<1?4:8,i%15<1?8:4]}

James's avatar 179. James - March 2, 2007

Response.Write(“1”)
Response.Write(vbcrlf)
Response.Write(“2”)
Response.Write(vbcrlf)
Response.Write(“Fizz”)
Response.Write(vbcrlf)
Response.Write(“4”)
Response.Write(vbcrlf)
Response.Write(“Buzz”)
Response.Write(vbcrlf)
Response.Write(“Fizz”)
Response.Write(vbcrlf)
Response.Write(“7”)
Response.Write(vbcrlf)
Response.Write(“8”)
Response.Write(vbcrlf)
Response.Write(“Fizz”)
etc.

Spacecadet's avatar 180. Spacecadet - March 2, 2007

Having read almost every comment on this story I’d probably sack the lot of you.
Where’s the input parameters?
Where’s the modularity?
What happens if in 6 months time the requirements change to 4 and 7 being the fizzbuzz numbers?
What happens when the program needs to be used by the french team who need le fizz le buzz?
What happens when the program is up-scaled to cover 0-1000

manman man's avatar manman man - September 3, 2010

This would be over-engineering a solution to an obvious interview test question, and missing the point. I wouldn’t be impressed if I saw your OTT answer…

Marillionfan's avatar 181. Marillionfan - March 2, 2007

And I wouldnt hire any of you in the first place.

Wasting my companies time on a technical pissing contest.

You’re Fired.

Brian Adkins's avatar 182. Brian Adkins - March 2, 2007

Ok, down to 64 bytes in Ruby, but I think I’ve reached an impasse 😦

1.upto(?d){|i|puts”FizzBuzz#{i}”[i%3<1?0:i%5<1?4:8,i%15<1?8:4]}

Bruce's avatar 183. Bruce - March 2, 2007

you guys are such nerds. perhaps this sort of question makes sense for grad, but to be honest, it’s useless. show me the data on “passing silly programming questions to good engineers”. Sure they need to understand software, but this sort of micro-rubbish is somewhat irrelevant, certainly in terms of the people I’d hire.

Jake Cohen's avatar 184. Jake Cohen - March 2, 2007

@SpaceCadet,

You forgot to ask if it’s Y10K compliant, in how many languages its documentation is available, and whether it supports TWAIN-compliant scanners.

murty's avatar 185. murty - March 2, 2007

I think these are all good observations but we need to keep in mind that we may encounter a programmer who is smarter than us.

Take for example, Jacob’s test – swap the value of 2 variables. He expects the programmer to start with a 3rd variable but one can achieve the desired result without a 3rd variable.

a = 11;
b= 12;

a = a XOR b; //a = 7
b = a XOR b; // b = 11
a = a XOR b; // a = 12

Besides, software engineering is much more than programming. And you all know that.

Mark Miller's avatar 186. Mark Miller - March 3, 2007

I’ve been surprised in the past at what I hear people who interview for programing positions can’t do. I found this through Giles Bowkett’s blog, and he’s right. If you can’t solve FizzBuzz in a few seconds in your head, you’re not that great. In fact, if memory serves me I think I solved a programming problem like this when I was in high school 20 years ago. To heck with a CS degree. This is elementary stuff.

It is possible for programmers to overthink themselves into a hole, when in fact the problem is very simple. I’ve done it in the past. The few times I did it in an interview was when I was young and naive, and I was trying to impress the interviewer… So that could explain some of the times when it took 15 minutes for someone. Still, do you want to hire someone who overthinks problems?

Try this one on for size. When I got out of college with a CS degree I interviewed at a small company. They asked me this question:

Write a C program that takes an integer and converts it to a string, without using printf(), or any printf() variant. I might’ve been able to use printf() to output the result string. puts() works too. The integer had at least 2 or 3 digits in it, and was pre-assigned to an int variable. I had the solution coded and running in about 5 minutes. They told me that several people they interviewed could not solve it at all.

If anyone wants to try it in other languages, be my guest. The key to the problem is to not use library functions to solve it, only operators native to the language.

I’ve had problems posed to me at interviews that were harder than this, which stumped me, using higher math, or I just didn’t understand the question.

Mark Miller's avatar 187. Mark Miller - March 3, 2007

Referring to the C problem I posed:

No fair using itoa() either!

spacecadet's avatar 188. spacecadet - March 3, 2007

@Jake Cohen
I detected a hint of sarcasm in your reply.

The point I’m trying to make is, I don’t care if it take a programmer 5 minutes or an hour to come up with the solution. What I want to know is, will the programmer apply some professionalism to the problem. Will he take into account changing requirements, will he make sure that basic changes can be made without the need for someone to go digging through code.
Its one thing being some geek hacker, its something else completely to be a professional about your job and to try and engineer your solution in a manner that is fit for the task which the problem solver may not have even seen coming. As a professional YOU are supposed to be experienced, YOU should be able to see how your solution may be needed for many other similar queries. YOU should be able to see past the obvious question asked.
As far as I’m concerned, the geek hackers have their use, but, if comparing building an apartment block to building software, everyone who has posted here has very good experience of laying bricks but no appreciation of how the building needs to be actually used by real people.

Shawn's avatar 189. Shawn - March 3, 2007

Just for nostalgia:

10 i=1
20 IF i 0 THEN
100 PRINT i;
110 ENDIF
120 PRINT
130 i = i + 1
140 GOTO 20
150 ENDIF
160 END

Shawn's avatar 190. Shawn - March 3, 2007

It didn’t automatically filter the text, so I’ll try one more time with escape characters:

10 i=1
20 IF i < 101 THEN
30 IF i MOD 3 < 1 THEN
40 PRINT “Fizz”;
50 ENDIF
60 IF i MOD 5 < 1 THEN
70 PRINT “Buzz”;
80 ENDIF
90 IF i MOD 15 > 0 THEN
100 PRINT i;
110 ENDIF
120 PRINT
130 i = i + 1
140 GOTO 20
150 ENDIF
160 END

Shawn's avatar 191. Shawn - March 3, 2007

Also, for fun:

Interviewee: I know how to programm in FB, do mind if I use that?
Interviewer: Go ahead.

start=1
end=100
fizz=3
buzz=5

Sam's avatar 192. Sam - March 3, 2007

Forth is under represented. So I’m going to post another Forth example that is even smaller than the first posting.

: eitherFizzBuzz dup 15 mod 0= if .” fizzbuzz” rdrop then ;
: orFizz dup 3 mod 0= if .” fizz” rdrop then ;
: orBuzz dup 5 mod 0= if .” buzz” rdrop then ;
: orNot dup . ;
: result eitherFizzBuzz orFizz orBuzz orNot ;
: fizzbuzz 1 begin dup 16 < while dup result cr 1+ repeat drop ;

Sam's avatar 193. Sam - March 3, 2007

let’s try coping the right version into the box this time. 😦

: fizzbuzz 1 begin dup 101 %lt; while dup result cr 1+ repeat drop ;

pef's avatar 194. pef - March 4, 2007

XSLT2:

pef's avatar 195. pef - March 4, 2007

<xsl:for-each select=”1 to 100″>
<br/><xsl:value-of select=”if (not(. mod 15)) then ‘FizzBuzz’ else if (not(. mod 5)) then ‘Buzz’ else if (not(. mod 3)) then ‘Fizz’ else .”/>
</xsl:for-each>

196. OJ’s rants » Blog Archive » Why Can’t Programmers Program? - March 4, 2007

[…] come from, and how they get here, it’s no wonder that I have such an opinion. Have a read of this article to see the kinds of problems that computer science students are unable to solve. From the […]

Ken's avatar 197. Ken - March 4, 2007

I was able to golf the ruby down by 3 characters 🙂

1.upto(?d){|i|p"#{[i%3<1?:Fizz:n=”,i%5<1?:Buzz:n&&=i]}"}

Ken's avatar 198. Ken - March 4, 2007

Oops that’s 6 characters shorter using p, which is cheating a bit (quotes in output and all that). It’s 3 shorter if I had pasted the right one, using puts.

JJ's avatar 199. JJ - March 4, 2007

The reason why people can’t even program is, they are not even given a chance. You finish school and no one wants to hire you. 2 years pass and then employers expect you to program, when was the last time you did that?

I think people should be hired because they have merit, ambition, hard workers, eager to learn etc… Because you can hire computer geeks, only to find that their troubles worth more than their programming skills and how long will you put up with the troubles?

Kam's avatar Kam - December 21, 2010

2 years past, you ain’t doin’ something open source, and you still think you should get hired? Go find another career.

Jase!'s avatar 200. Jase! - March 4, 2007

C++

#include
int main(int argc, char** argv)
{
for(i = 1; i

Jase!'s avatar 201. Jase! - March 4, 2007

#include
int main(int argc, char** argv)
{
for(i = 1; i

Jase!'s avatar 202. Jase! - March 4, 2007

#include
int main( int argc, char** argv)
{
for(i=1; i

203. FizzBuzz, Enterprise Edition « Quoted For Truth - March 4, 2007

[…] Those of you who have been keeping up with the programming blogosphere have probably heard of FizzBuzz by now. Well, in the spirit of this, I decided to create my own overly complicated FizzBuzz: […]

Enigma's avatar 204. Enigma - March 5, 2007

Here is a compilable COBOL version. The COMPUTE verb was strictly avoided for full verbosity, so used the DIVIDE verb instead. Also, it uses Level 88s instead of EVALUATE. Adds some code to display the number in C-style format for the golf server contest.

http://www.fileden.com/files/2007/3/4/851496/fizzbuzz-contest-2.cob

Compiles on the OpenCOBOL.org compiler.

205. Will’s Blog - FizzBuzz and Problem Finding - March 5, 2007

[…] I followed a series of links to get to Jeff Atwood’s post on Why Can’t Programmers.. Program?  Jeff references, in turn, a post by Imran on Using FizzBuzz to Find Developers who Grok Coding. […]

206. The Chances Are Nil » FizzBusted - March 5, 2007

[…] there has been a lot of buzz about FizzBuzz but Giles Bowkett in  his post FizzBuzters hit the nail right on the head: Keep in mind, FizzBuzz […]

kyu's avatar 207. kyu - March 5, 2007

@ Jacob I can do it without using a 3rd variable and in only 3 lines (your *How fast they do it* issue)

X=2, Y=5

x=x+y \* x=7 *\
y=x-y \* y=2 *\
x=x-y \* x=5 *\

x=5, y=2 (Hence done…)

But you would just turn me down if i presented you with this solution.

how the hell is the interviewee supposed you want him to use a 3rd variable if he knows a better way of doing it? He is supposed to read your mind?

Anyway, sorry for the disturbamce.

geebutbut's avatar 208. geebutbut - March 6, 2007

#include
int main()
{
printf(“%d\n”, 1);
printf(“%d\n”, 2);
printf(“Fizz\n”);
printf(“%d\n”, 4);
printf(“Buzz\n”);
printf(“Fizz\n”);
printf(“%d\n”, 7);
printf(“%d\n”, 8);
printf(“Fizz\n”);
printf(“Buzz\n”);
printf(“%d\n”, 11);
printf(“Fizz\n”);
printf(“%d\n”, 13);
printf(“%d\n”, 14);
printf(“FizzBuzz\n”);
printf(“%d\n”, 16);
printf(“%d\n”, 17);
printf(“Fizz\n”);
printf(“%d\n”, 19);
printf(“Buzz\n”);
printf(“Fizz\n”);
printf(“%d\n”, 22);
printf(“%d\n”, 23);
printf(“Fizz\n”);
printf(“Buzz\n”);
printf(“%d\n”, 26);
printf(“Fizz\n”);
printf(“%d\n”, 28);
printf(“%d\n”, 29);
printf(“FizzBuzz\n”);
printf(“%d\n”, 31);
printf(“%d\n”, 32);
printf(“Fizz\n”);
printf(“%d\n”, 34);
printf(“Buzz\n”);
printf(“Fizz\n”);
printf(“%d\n”, 37);
printf(“%d\n”, 38);
printf(“Fizz\n”);
printf(“Buzz\n”);
printf(“%d\n”, 41);
printf(“Fizz\n”);
printf(“%d\n”, 43);
printf(“%d\n”, 44);
printf(“FizzBuzz\n”);
printf(“%d\n”, 46);
printf(“%d\n”, 47);
printf(“Fizz\n”);
printf(“%d\n”, 49);
printf(“Buzz\n”);
printf(“Fizz\n”);
printf(“%d\n”, 52);
printf(“%d\n”, 53);
printf(“Fizz\n”);
printf(“Buzz\n”);
printf(“%d\n”, 56);
printf(“Fizz\n”);
printf(“%d\n”, 58);
printf(“%d\n”, 59);
printf(“FizzBuzz\n”);
printf(“%d\n”, 61);
printf(“%d\n”, 62);
printf(“Fizz\n”);
printf(“%d\n”, 64);
printf(“Buzz\n”);
printf(“Fizz\n”);
printf(“%d\n”, 67);
printf(“%d\n”, 68);
printf(“Fizz\n”);
printf(“Buzz\n”);
printf(“%d\n”, 71);
printf(“Fizz\n”);
printf(“%d\n”, 73);
printf(“%d\n”, 74);
printf(“FizzBuzz\n”);
printf(“%d\n”, 76);
printf(“%d\n”, 77);
printf(“Fizz\n”);
printf(“%d\n”, 79);
printf(“Buzz\n”);
printf(“Fizz\n”);
printf(“%d\n”, 82);
printf(“%d\n”, 83);
printf(“Fizz\n”);
printf(“Buzz\n”);
printf(“%d\n”, 86);
printf(“Fizz\n”);
printf(“%d\n”, 88);
printf(“%d\n”, 89);
printf(“FizzBuzz\n”);
printf(“%d\n”, 91);
printf(“%d\n”, 92);
printf(“Fizz\n”);
printf(“%d\n”, 94);
printf(“Buzz\n”);
printf(“Fizz\n”);
printf(“%d\n”, 97);
printf(“%d\n”, 98);
printf(“Fizz\n”);
printf(“Buzz\n”);
return 0;
}

marx's avatar marx - October 6, 2010

hahahahhahahahhahahhahahaha

Devon Sean McCullough's avatar 209. Devon Sean McCullough - March 6, 2007

; Common Lisp & Emacs Lisp both:

(do ((i 1 (1+ i)))
((> i 100))
(print
(if (zerop (mod i 5))
(if (zerop (mod i 3)) ‘FizzBuzz ‘Buzz)
(if (zerop (mod i 3)) ‘Fizz i))))

; Common Lisp only:
(loop for i from 1 to 100 do (format t “~[~[FizzBuzz~:;Buzz~]~:;~[Fizz~:;~D~]~]~&” (mod i 5) (mod i 3) i))

; Emacs Lisp only:
(do ((i 1 (1+ i)))
((> i 100))
(princ (format (aref [“%d\n” “Fizz\n” “Buzz\n” “FizzBuzz\n”]
(+ (if (zerop (mod i 3)) 1 0)
(if (zerop (mod i 5)) 2 0)))
i)))

; TECO … ha ha, that way lies madness!

Devon Sean McCullough's avatar 210. Devon Sean McCullough - March 6, 2007

; Common Lisp & Emacs Lisp both:

(do ((i 1 (1+ i)))
((> i 100))
(print
(if (zerop (mod i 5))
(if (zerop (mod i 3)) ‘FizzBuzz ‘Buzz)
(if (zerop (mod i 3)) ‘Fizz i))))

; Common Lisp only:
(loop for i from 1 to 100 do (format t “~[~[FizzBuzz~:;Buzz~]~:;~[Fizz~:;~D~]~]~&” (mod i 5) (mod i 3) i))

; Emacs Lisp only:
(do ((i 1 (1+ i)))
((> i 100))
(princ (format (aref [“%d\n” “Fizz\n” “Buzz\n” “FizzBuzz\n”]
(+ (if (zerop (mod i 3)) 1 0)
(if (zerop (mod i 5)) 2 0)))
i)))

; TECO … ha ha, that way lies madness!

Devon Sean McCullough's avatar 211. Devon Sean McCullough - March 6, 2007

no indent
two indents

Devon Sean McCullough's avatar 212. Devon Sean McCullough - March 6, 2007

no indent
  two &nbsp;

Devon Sean McCullough's avatar 213. Devon Sean McCullough - March 6, 2007

no indent
  one &nbsp; and one space

Devon Sean McCullough's avatar 214. Devon Sean McCullough - March 6, 2007

 ; Common Lisp & Emacs Lisp both:
 
 (do ((i 1 (1+ i)))
  ((> i 100))
  (print
  (if (zerop (mod i 5))
  (if (zerop (mod i 3)) ‘FizzBuzz ‘Buzz)
  (if (zerop (mod i 3)) ‘Fizz i))))
 
 ; Common Lisp only:
 (loop for i from 1 to 100 do (format t “~[~[FizzBuzz~:;Buzz~]~:;~[Fizz~:;~D~]~]~&” (mod i 5) (mod i 3) i))
 
 ; Emacs Lisp only:
 (do ((i 1 (1+ i)))
  ((> i 100))
  (princ (format (aref [“%d\n” “Fizz\n” “Buzz\n” “FizzBuzz\n”]
  (+ (if (zerop (mod i 3)) 1 0)
  (if (zerop (mod i 5)) 2 0)))
  i)))
 
 ; TECO … ha ha, that way lies madness!

Devon Sean McCullough's avatar 215. Devon Sean McCullough - March 6, 2007

; Common Lisp & Emacs Lisp both:

(do ((i 1 (1+ i)))
    ((> i 100))
  (print
   (if (zerop (mod i 5))
       (if (zerop (mod i 3)) ‘FizzBuzz ‘Buzz)
     (if (zerop (mod i 3)) ‘Fizz i))))

; Common Lisp only:
(loop for i from 1 to 100 do (format t “~[~[FizzBuzz~:;Buzz~]~:;~[Fizz~:;~D~]~]~&” (mod i 5) (mod i 3) i))

; Emacs Lisp only:
(do ((i 1 (1+ i)))
    ((> i 100))
  (princ (format (aref [“%d\n” “Fizz\n” “Buzz\n” “FizzBuzz\n”]
                       (+ (if (zerop (mod i 3)) 1 0)
                          (if (zerop (mod i 5)) 2 0)))
                 i)))

; TECO … ha ha, that way lies madness!

Devon Sean McCullough's avatar 216. Devon Sean McCullough - March 6, 2007

What will it take to convince them to respect fixed-width &LT

Devon Sean McCullough's avatar 217. Devon Sean McCullough - March 6, 2007

What will it take to convince them to respect fixed-width <PRE>formatted text?
If TCP were specified the way XML is, we’d still be using Kermit.

Devon Sean McCullough's avatar 218. Devon Sean McCullough - March 6, 2007

Sure would be nice to have a preview or a way to flush the initial losing attempts, like everyone else has. How hard can it be to render indentation? Even in a variable width context it is mighty easy to keep track of a line’s worth of overhanging character widths and line ’em up. Let ’em define, say, &isp; seeing as how &nbsp; does the wrong thing already and <PRE> gets hosed by every blog and mail agent… rendered, as in a glue factory, the stench ruins property values many miles downwind.

Huh, that was fun. Hiring is costlier and harder than firing but I’m not sure stupid programming tricks are much help, how well they learn matters more than what they know.

Steven Woods's avatar 219. Steven Woods - March 6, 2007

ASP Solution:

“)
Else
If I Mod 3 = 0 Then
Response.Write(“Fizz “)
Else
If I Mod 5 = 0 Then
Response.Write(“Buzz “)
Else
Response.Write(i & ” “)
End If
End If
End If
Next
%>

Steven Woods's avatar 220. Steven Woods - March 6, 2007

bah, it killed my code:

Try again!

<%
For i = 1 To 100

If I Mod 3 = 0 And I Mod 5 = 0 Then
Response.Write(“FizzBuzz<br /> “)
Else
If I Mod 3 = 0 Then
Response.Write(“Fizz<br /> “)
Else
If I Mod 5 = 0 Then
Response.Write(“Buzz<br /> “)
Else
Response.Write(i & “<br /> “)
End If
End If
End If
Next
%>

Hans Bezemer's avatar 221. Hans Bezemer - March 6, 2007

Tiny, may be hard to comprehend, but a touch of originality?? This is done with 4tH (a forth dialect):

: zap dup 0 .r ; : fizz .” Fizz” ; : buzz .” Buzz” ; : fizzbuzz fizz buzz ;
create foo ‘ zap , ‘ fizz , ‘ buzz , ‘ fizzbuzz ,
:this foo does> >r dup 3 mod 0= 2* over 5 mod 0= + cells r> + @c execute drop ;
: bar 101 1 do i foo space loop ; bar

Oliodu's avatar 222. Oliodu - March 6, 2007

[‘FizzBuzz’ if (i%15==0) else (‘Fizz’ if (i%3==0) else (‘Buzz’ if (i%5==5) else i)) for i in range(1,101)]

Oliodu's avatar 223. Oliodu - March 6, 2007

Sorry, a typo in previous post. Here is the right one. (Python, if you have to ask)

print [‘FizzBuzz’ if (i%15==0) else (‘Fizz’ if (i%3==0) else (‘Buzz’ if (i%5==0) else i)) for i in range(1,101)]

Why do any one need to do this in multiple lines?

stevec's avatar 224. stevec - March 6, 2007

I noticed almost all the fizzbuzz solutions use mod instead of addition or subtraction. I guess code size, not clock cycles is the priority for most.

zepto's avatar 225. zepto - March 7, 2007

I’ve noticed this too, and from an efficiency standpoint, doing 100+ division or modulo operations would really be frowned upon. maybe it should be changed to solve fizzbuzz without modulo.

zepto's avatar 226. zepto - March 7, 2007

looking further, we can see a pattern between
positive natural multiples of 1 (n)
multiples of 3 (t)
and multiples of five (f)
1+2(1) = 3+2(1)= 5
2+2(2) = 6+2(2)= 10
3+2(3) = 9+2(3)= 15
n = 1,2…etc
t = n + 2(n)
f = t + 2(n)
maybe someone can come up with a super elegant solution using that

Wayne's avatar 227. Wayne - March 7, 2007

Fools

228. FizzBuzz « danseagrave - March 7, 2007

[…] Just a quick pointer over to more discussion of the FizzBuzz […]

Michael Pohoreski's avatar 229. Michael Pohoreski - March 7, 2007

Divisions are slow, especially on embedded devices.

int i3 = 2;
int i5 = 4;

const int N = 100;
for( int i = 1; i

Michael Pohoreski's avatar 230. Michael Pohoreski - March 7, 2007

int i3 = 2;
int i5 = 4;

const int N = 100;
for( int i = 1; i < N; i++ )
{
if ((i3 == 0) || (i5 == 0))
{
if (i3 == 0)
{
printf( “fizz” );
i3 = 3;
}
if (i5 == 0)
{
printf( “buzz” );
i5 = 5;
}
printf( “\n” );
}
else
{
printf( “%d “, i );
}
i3–;
i5–;
}

Michael Pohoreski's avatar 231. Michael Pohoreski - March 7, 2007

int OUTPUT_BASE = 10;
char * Print( const int n )
{
int x = n;
bool bNegative = false;
if (x < 0)
{
bNegative = true;
x = -x; // abs|x|
}

// 2^32 = 10 digits
// 1 char for null term, 1 char for, total min = 12 chars
const int MAX_DIGITS = 16;
static char sBuf[ MAX_DIGITS ];

char *pText = sBuf + MAX_DIGITS;
*–pText = 0;

while (x >= 0)
{
int nDigit = (x % OUTPUT_BASE);
*–pText = (‘0’ + nDigit);
x -= nDigit;
x /= OUTPUT_BASE;

if (x == 0)
{
break;
}
}

if (bNegative)
{
*–pText = ‘-‘;
}

return pText;
}

Michael Pohoreski's avatar 232. Michael Pohoreski - March 7, 2007

Guess the double minus sign got munched when converted to html.
i.e.
* – – pText = 0;

Ed Courtenay's avatar 233. Ed Courtenay - March 7, 2007

Equally, a completely over-engineered solution can be just as bad! Take this C# version as an example:

using System;

namespace FizzBuzz
{
internal class Program
{
private static void Main()
{
IFormatProvider formatProvider = new FizzBuzzFormatter();

for (int i = 1; i

Ed Courtenay's avatar 234. Ed Courtenay - March 7, 2007

Attempt #2

using System;

namespace FizzBuzz
{
internal class Program
{
private static void Main()
{
IFormatProvider formatProvider = new FizzBuzzFormatter();

for (int i = 1; i < = 100; i++)
Console.WriteLine(String.Format(formatProvider, “{0:FB}”, i));

Console.ReadLine();
}
}

internal class FizzBuzzFormatter : ICustomFormatter, IFormatProvider
{
public string Format(string format, object arg, IFormatProvider formatProvider)
{
if (format == null)
return String.Format(“{0}”, arg);

if (format.StartsWith(“FB”) && arg is int)
{
int val = (int) arg;
bool mod3 = val%3 == 0;
bool mod5 = val%5 == 0;

if (!mod3 && !mod5)
return arg.ToString();

string s = String.Empty;

if (mod3)
s += “Fizz”;

if (mod5)
s += “Buzz”;

return s;
}

return String.Format(“{0:” + format + “}”, arg);
}

public object GetFormat(Type formatType)
{
if (formatType == typeof (ICustomFormatter))
return this;
else
return null;
}
}
}

Richard's avatar 235. Richard - March 7, 2007

Jacob wrote (weighing in at Number 3):

Ask: show me (on paper, but better on a whiteboard) how you would swap the values of two variables.

If they don’t *start* with creating a third variable, you can pretty much write that person off. I’ve found that I can cut a third to half my (admittedly at that point unscreened) applicants with that question alone.

OT but one other way if they are numbers, (similary to XOR trick):
b = a + b
a = b – a
b = b – a

L.'s avatar L. - January 10, 2012

Somehow anything can be a number … Not sure when double conversion can be smarter than actually just using the third variable .. looks a lot like fail in the end.

Nigel Ainscoe's avatar 236. Nigel Ainscoe - March 7, 2007

Not seen a FoxPro example so:

for ln = 1 to 100
do case
case mod(ln,5) = 0 and mod(ln/3) = 0
? ‘FizzBuzz’

case mod(ln,5) = 0
? ‘Buzz’

case mod(ln/3) = 0
? ‘Fizz’

otherwise
? ln
endcase
next ln

Nigel Ainscoe's avatar 237. Nigel Ainscoe - March 7, 2007

It stole my formatting!!

stevec's avatar 238. stevec - March 8, 2007

There are some pretty clever programmers here who have left me with some questions. Those using XOR, are you XORing the value or a pointer to the value? For those using addition/subtraction to swap, I’ll assume you only intend this for numeric values and that you probably also assumed the type would not change over the lifespan of the program (interview). But what happens if the summation overflows? Is it numerically stable for floating point values?

larsx2's avatar 239. larsx2 - March 10, 2007

I just wanted to put something :P, sorry if u think that my code is not good..

# on Ruby

x = 0
while x

larsx2's avatar 240. larsx2 - March 10, 2007

I just wanted to put something :P, sorry if u think that my code is not good..
XD
# on Ruby

x = 0
while x

241. Blog by Aji Issac Mathew aka AjiNIMC » Hmm… - 199 out of 200 programmers can’t program - March 10, 2007

[…] Using FizzBuzz to Find Developers who Grok Coding – […]

Mondo's avatar 242. Mondo - March 10, 2007

This thread is a parody. A quick scan of the suggested answers reveals almost no correct responses. Did you people even read the question?

243. Chasing Mugiwara » Blog Archive » Fizz Buzz - March 11, 2007

[…] was a discussion some time ago about the lack of quality programmers applying for jobs and that even asking applicants to create basic code could sadly filter out most […]

244. The FizzBuzz Test For Developers « Rhonda Tipton’s WebLog - March 11, 2007

[…] Topics-]Using FizzBuzz to Find DevelopersWhy Can’t Programmers.. Program?Measuring Programmer Competence via FizzBuzz […]

245. FizzBuzz.rb - March 12, 2007

[…] my FizzBuzz solution: […]

Jonas Gorauskas's avatar 246. Jonas Gorauskas - March 12, 2007

In C#:

public static void Main()
{
  Console.WriteLine("FIZZBUZZ:\n");
  for (int i = 1; i
    if ((i%3==0) && (i%5==0)) {
      WL("FizzBuzz");
    } else if (i%3==0) {
      WL("Fizz");
    } else if (i%5==0) {
      WL("Buzz");
    } else {
      WL(i.ToString());
    }
  }
  Console.ReadLine();
}

smog's avatar 247. smog - March 12, 2007

ruby (58):
1.upto(?d){|i|puts”FizzBuzz”[4&a=i*i%3*5,9-a-i**4%5]||i}

python (60):
for i in range(1,101):print”FizzBuzz”[i*i%3*4:8–i**4%5]or i

smog's avatar 248. smog - March 12, 2007

Oops, I left out a crucial – sign in the python one:

for i in range(1,101):print”FizzBuzz”[i*i%3*4:8–-i**4%5]or i

-i**4%5 always returns 4 if i is not a multiple of 5 (0 elsewise)
(If you leave out the – it returns 1)

249. Hexten » Blog Archive » FizzBuzz in 6502 assembler - March 12, 2007

[…] FizzBuzz is an extremely basic competence test for programmers. So I thought I’d write a version extremely in BASIC. Here it is in BBC Basic’s embedded 6502 assembler. For added geek points I used a 6502 emulator written in Perl to develop it on. […]

Andy Armstrong's avatar 250. Andy Armstrong - March 12, 2007

Here it is in BBC Basic’s embedded 6502 assembler. For added geek points I used a 6502 emulator written in Perl to develop it on.

10 REM FizzBuzz in 6502 assembler
20 DIM code% 1000
30 OSWRCH = &FFEE
40 OSNEWL = &FFE7
50 work = &70
60 DIM FizzM 4 : $FizzM = “zziF”
70 DIM BuzzM 4 : $BuzzM = “zzuB”
80 FOR pass% = 0 TO 3 STEP 3
90 P%=code%
100 [opt pass%
110
120 .FizzBuzz LDA #1
130 LDX #3
140 LDY #5
150 .FB1 SEC
160 DEX
170 BNE FB2
180 JSR Fizz
190 LDX #3
200 .FB2 DEY
210 BNE FB3
220 JSR Buzz
230 LDY #5
240 .FB3 BCC FB4
250 JSR PrDecimal
260 .FB4 PHA
270 JSR OSNEWL
280 PLA
290 CLC
300 ADC #1
310 CMP #101
320 BCC FB1
330 RTS
340
350 .Fizz PHA
360 LDX #3
370 .Fizz1 LDA FizzM, X
380 JSR OSWRCH
390 DEX
400 BPL Fizz1
410 CLC
420 PLA
430 RTS
440
450 .Buzz PHA
460 LDY #3
470 .Buzz1 LDA BuzzM, Y
480 JSR OSWRCH
490 DEY
500 BPL Buzz1
510 CLC
520 PLA
530 RTS
540
550 .PrDecimal STA work
560 PHA
570 TXA
580 PHA
590 LDA #0
600 PHA
610 .PrDec0 LDX #8
620 LDA #0
630 .PrDec1 ASL work
640 ROL A
650 CMP #10
660 BCC PrDec2
670 SBC #10
680 INC work
690 .PrDec2 DEX
700 BNE PrDec1
710 CLC
720 ADC #ASC”0″
730 PHA
740 LDX work
750 BNE PrDec0
760 .PrDec3 PLA
770 BEQ PrDec4
780 JSR OSWRCH
790 JMP PrDec3
800 .PrDec4 PLA
810 TAX
820 PLA
830 RTS
840 ]
850 NEXT

Shawn's avatar 251. Shawn - March 13, 2007

In the Brainfuck language:

>+++++++++[-][-]>[-]+>+>[>-]>>>
[-]>>++>[-][-]>[>>+[-]>>+>[>>-]>[-]++>->+>+>>[>>-]>[-][-]>+[-]>-]>>>[>+>+>[>-]>>>>-
]>[-]>[-]++++[-]++++[-]+
++++[-]>[>>+>+
>>[>>-]>>>-]++++[-]+++++++++[-]+++++++[-]++++++[-]++++++
++[-]+++++++++[-]++++++++
[-]++++++++[-]+++++++[-]++++++++[-]++[-]+++++++++[-]>>[>+>+>[>-]>>>>-]>>+++
+[-]++++[-]+++++[-]>[>>+>+>>[>>-]>>>-]++++[-]+++++++++[-]+++++++[-]++++++[-]++++++++++[-]+++++++[-]+++++++[-]++++++++[-]+++++++[-]+++++++[-
]++++++++[-]
+++++[-]++++
+++[-]++++++++[-]+++[
-]+++[-]+++++++++[-]+++++++[-]++++++++[-]+++++[-]+++[-]++++++++[-][-]>[
-]+>+>[>-]>>>[-]>>++>[-][-]>[>>+[-]>>+>[>>-]>[-]++>->+>+>>[>>-]>[-][-]>+[-]>-]>>>[>+>+
>[>-]>>>>-]>[-]>[-]++++[
-]++++[-]+++++[-]>[>>+>+>>[>>-]>>>-]++++[-]+++++++++[-]+++++++[-]++++++[-]
++++++++[-]+++++++++[
-]++++++++[-]++++++++[-]+++++++[-]++++++++[-]++[-]+++++++++[-]

Jason's avatar 252. Jason - March 13, 2007

Shorter Common Lisp version:
(dotimes(i 100)(format t”~A ~[Fizz~:;~]~[Buzz~:;~]~%”i(mod i 3)(mod i 5)))

74 bytes!

intangible's avatar 253. intangible - March 14, 2007

Perl:

while($i++

intangible's avatar 254. intangible - March 14, 2007

Perl again:

while($i++<100){print$i%3&&$i%5?$i:$i%3?Buzz:$i%5?Fizz:FizzBuzz,”\n”}

John's avatar 255. John - March 14, 2007

Another Forth solution. Not as nicely factored as the earlier one.

: .fizzbuzz ( n )
space dup 3 mod 0= over 5 mod 0= 2dup or >r
swap if .” fizz” then if .” buzz” then
r> if drop exit then . ;
: numbers 101 1 do i .fizzbuzz loop ;

willc2_45220's avatar 256. willc2_45220 - March 15, 2007

Here’s an Applescript (8 minutes)

— fizz buzz

set holder to {}

repeat with i from 1 to 100

set flag to (i as string)

if (i / 3) = ((i / 3) as integer) then

set flag to “Fizz”

end if

if (i / 5) = ((i / 5) as integer) then

if flag = “Fizz” then
set flag to “FizzBuzz”

else
set flag to “Buzz”
end if

end if

set end of holder to flag

end repeat

holder

willc2_45220's avatar 257. willc2_45220 - March 15, 2007

doh, tabs got stripped and the first line is a comment (DASH, DASH)

kurapikats's avatar 258. kurapikats - March 15, 2007

correct php code:

for ($i = 1; $i “;
} elseif ($i % 3 == 0) {
echo “fizz” . “”;
} elseif ($i % 5 == 0) {
echo “buzz” . “”;
} else {
echo $i . “”;
}
}

kurapikats's avatar 259. kurapikats - March 15, 2007

for ($i = 1; $i “;
} elseif ($i % 3 == 0) {
echo “fizz” . “”;
} elseif ($i % 5 == 0) {
echo “buzz” . “”;
} else {
echo $i . “”;
}
}

kurapikats's avatar 260. kurapikats - March 15, 2007

correct php code

for ($i = 1; $i “;
} elseif ($i % 3 == 0) {
echo “fizz” . “”;
} elseif ($i % 5 == 0) {
echo “buzz” . “”;
} else {
echo $i . “”;
}
}

Craig's avatar 261. Craig - March 15, 2007

You people writing the swap function are missing the point… I don’t think the interviewer is telling you that you’re given an integer. Rather, you need to write code that can swap two of the same type, no matter what that type is.

You would only use XOR or addition/subtraction if you’re given some integer type. Otherwise, you’d probably make use of some temp variable of the same type as those objects you are swapping.

Mat's avatar 262. Mat - March 15, 2007

Why are people posting code comments?
Get a job!

Subash's avatar 263. Subash - March 17, 2007

Apart from giving _FizzBuzz_ sort of programs, I got to interview candidates for a Senior Programmer position last month, and part of the game was to guide juniors in contacting the Database.

We got a lot of guys who had 3+ years of experience, many websites in their resumes quantifying their skills, and most of them had a good time with MySQL.

After initial screening we got three guys to the final rounds. They seemed perfect on pgming and db concepts, whizzed thru normalization concepts, different types of joins, …

But I know I’m quite sneaky. When I asked them to write an SQL query to get data from these two tables using a JOIN, my fellow interviewers sneered at my question. After intent thinking, this was what the star candidate wrote:

select * table1 inner join table2 where t1.id = t2.city

We’re still searching for a Senior programmer…

ore-kelate-biasa-biasa's avatar 264. ore-kelate-biasa-biasa - March 19, 2007

alias otak_fizzbuz {
var %x = 1
while (%x

craig wilcox's avatar 265. craig wilcox - March 19, 2007

What would you think of a candidate who wrote a main loop that looked something like this?:

static void Main(string[] args) {

IFizzBuzzEmitter emitter;

for(int i = 1; i

Alex's avatar 266. Alex - March 20, 2007

If I need to hire someone, I think I’ll post a trivial programming challenge on a blog, and weed out any so-called engineers incapable of taking the ten seconds needed to notice the dozens of people before them whose code was ruined by unescaped less-than signs.

As a bonus test, I’ll post an early comment under an alias in which I claim to weed out people using an even simpler test. The catch is that my expected solution is actually less than optimal, and I am potentially weeding out those smarter than myself. Those who – thinking themselves smarter – post solutions which have already been posted more than once can be safely weeded out.

I’d also like to give a special shout-out to those golfers who forget to test before posting. Golfer, meet my friend Mr. Irb.

Nick's avatar 267. Nick - March 20, 2007

“Why do people always insist on writing one-liners?”

There are other priorites in the commercial software world than mere code size, and a candidate that starts making assumptions about what those are is displaying a flaw that allows you to discount them.

Working on team software I prefer coders who remember Brian Kernighans maxim:

“Debugging someone else’s code is twice as hard as writing the code yourself.” –Brian Kernighan

268. Studiowhiz.com » Blog Archive » Unit Tests for Fizzbuzz?! - March 20, 2007

[…] anyone who has been following the FizzBuzz – saga, someone has now written a full Java implementation complete with Unit […]

269. Buu Nguyen’s Blog » Imran on interviewing programmers - March 21, 2007

[…] this to see how Imran tests his interviewees.  Being curious if the test had some tricks which […]

270. Loosely Typed in Ohio. » FizzBuzz…The SQL Version - March 21, 2007

[…] tech blogosphere was humming last week about FizzBuzz, a simple test to figure out if your candidate can write even a trivial program. Write a program […]

271. Maan’s Blog » Archives » FizzBuzz - March 22, 2007

[…] is a quick code I wrote to try myself with an interview coding question from this article. Basically it took me 10 min to write the whole thing (I tried to write it as neat and as elegant […]

AndreasB's avatar 272. AndreasB - March 22, 2007

perl while($i++

ka's avatar 273. ka - March 22, 2007

I’m 4 and I did this

what a bunch of idiots

penis size = 111 in.

ka's avatar 274. ka - March 22, 2007

the kicker about all this is that you’re using an online ‘out of the box’ blogging site to ‘bitch’ about people that can’t program…

Like a fucking blog would be that hard to write yourself 😛

you don’t even have your own install of WP, you’re using THEIR service…

l4m3

——————————————
on a more respectful note:

I’m the Lead Developer (don’t consider myself a programmer) with 7 years of experience with so many awards under my belt it would crash your *insert output environment here* if you tried to loop through them.

I could easily do this, however as a web developer looking to hire someone, I would be much more worried about ‘other’ things then things I can essentially teach them.

* how well do they communicate?
* what do they understand about the business side of their particular field? things such as ROI (Clients don’t want to hear b/s about programming, they want to know how it makes them money or how they can get a return on their technology investment)
* are they quick learners?
* are they overall balanced with other tasks? (it would suck to hire someone who is so smart they can program fizzbuzz but can’t do anything else).
* will they get along with everyone else they need to work with

Those (imo) are much more pressing things to evaluate in an interview then some task of measuring ones penis size.

Ask some basic programming questions.

* What can you tell me about OOP?
* What is the ‘proper’ way to insert data into a database?

etc etc etc.

Would be much more profitable in finding a ‘good programmer’ who might also be a great person to work with.

mv's avatar 275. mv - March 24, 2007

My own experience working with new hires fresh from school is that they very often can do the algorithmic stuff but fall down on the things that make ‘real world’ programming different from school: changing requirements, change control, evaluating multiple designs and communicating their thought processes clearly.

And follow-through: in the academic environment, 90% gets a ‘A’, you work alone, and you almost never revisit the issue. Would that it were that way in the commercial environment!

Jon's avatar 276. Jon - March 26, 2007

To all those self-proclaimed experts who think you shouldn’t hire people who don’t XOR to swap variables, I’d suggest that a) you devalue the importance of optimisation as a hiring criteria, and b) you read the comp.lang.c. faq a few more times: http://c-faq.com/expr/xorswapexpr.html

beton's avatar 277. beton - March 28, 2007

beat me, please B)

278. find » Using FizzBuzz to Find Developers who Grok Coding - April 1, 2007

[…] Original post by tickletux […]

Royal Miah's avatar 279. Royal Miah - April 3, 2007

ben we are talking about memory level swaping not high level.

forward's avatar 280. forward - April 4, 2007

Want to know why this subject is so popular?

Because it makes everyone who thinks they are a programmer feel good, and gives them a sense of worth (because if you read stuff like this, you most likely can do the test).

I think most people who are computer programmers were kind of social misfits originally (and probably still are (I am including myself)). So nothing like a simple test to give a programmer a sense of self worth.

Same principle applies to those TV shows that ask people on the street a stupid question that they get wrong. Everyone at home gets to sit there and say, “Man, that guy is stupid, and man, am I smart!”.

Yeah, yeah…. we are all smart. Now get back to work :).

(wanna a real test? program something that when compiled, produces a Ferarri :)…. im still working on that one….

Unknown's avatar 281. World of Ruby Indonesia fizzbuzz, dibuang sayang « - April 5, 2007

[…] bisa nggak? h eh eh 5:28:11 PM dewa_error1: search fizzbuzz di google 🙂 5:28:37 PM dewa_error1: https://tickletux.wordpress.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/ 5:29:30 PM dewa_error1: “Want to know something scary ? – the majority of comp sci graduates […]

kost BebiX's avatar 282. kost BebiX - April 5, 2007

Jacob, about your problem about swapping variables values.
I know the method with

a = a + b;
b = a – b;
a = a – b;

but it works slower then just

c = a; a = b; b = c;

So it’s better to use second one.

Syam Kumar R.'s avatar 283. Syam Kumar R. - April 6, 2007

<?php
for($i =1; $i < 101; $i++)
{
if($i % 3 == 0) print “Fizz”;
if($i % 5 == 0) print “Buzz”;
if($i % 3 != 0 && $i % 5 != 0) print $i;
print “<br />”;
}
?>

PsyckBoy's avatar 284. PsyckBoy - April 10, 2007

I’m still working on the solution in INTERCAL. I’ll be done any day now.

Army1987's avatar 285. Army1987 - April 15, 2007

What the hell?

#include
#define MAX 100
#define FIZZ 3
#define BUZZ 5

void fizzbuzz(int n)
{
if (n%FIZZ == 0)
printf(“Fizz”);
if (n%BUZZ == 0)
printf(“Buzz”);
if (n%FIZZ && n%BUZZ)
printf(“%d”, n);
}

int main(void)
{
int i;
for (i=1; i

phr's avatar 286. phr - April 15, 2007

My preferred (extensible) python fizzbuzz:

fizzbuzz = ((3, ‘Fizz’), (5, ‘Buzz’))
def fizzify(n):
fb = ”.join(b for a,b in fizzbuzz if n%a == 0)
return fb or str(n)

for i in xrange(1,100): print fizzify(i)

I hope I didn’t mess this up 😉

phr's avatar 287. phr - April 15, 2007

Heh, I did mess it up (aside from the comment function clobbering python indentation). That should have said xrange(1,101) in order to print the numbers up to and including 100.

Greg's avatar 288. Greg - April 16, 2007

I read about half the comments and gave up. All these guys who say “this is too hard/unrealistic/stressful in an interview”.

YOU are the kind of programmer that people are talking about here. I wrote the VB 6.0 implementation of this in 22 seconds.

The point is extremely valid. This test is so simple, if you can’t do it, you don’t deserve a programming job.

Bart's avatar 289. Bart - April 16, 2007

I worked at a small software consultancy company where we had a similar test. We had a laptop ready and asked the candidate to write some simple code – similar to the fizzbuzz test.

One thing we were looking for: the speed at which the code was typed.

“Experienced Programmer”, typing with two fingers and looking up every single key? I don’t think so…

bruno's avatar 290. bruno - April 16, 2007

Just to answer to comment #3 from Jacob: some languages are smart enough to let you swap 2 vars without a temporary one. The following works at least with Python and Ruby:

a, b = b, a

FWIW, I’d probably rule off someone claiming experience with one of these languages and using a temporary variable !-)

qebab's avatar 291. qebab - April 17, 2007

I’m self taught, and only know a bit of python. I don’t even know how to escape the lesser than operator in html! However, this is just a test of logical thinking, and it was easy.
Pseudo code would be f. ex.

for every number between 1 and 100 (100 included)
output = empty string
if number mod 3 is 0: output = output + Fizz
if number mod 5 is 0: output = output + Buzz
if output is an empty string: output = number
print output

I wrote a ‘golfed’ version but changed it to a function after some comments here, so let’s call i t a golfed function.
def fizzbuzz(limit,tests,words)
i=1
while limit>i:print words[0]*(i%tests[0]==0)+words[1]*(i%tests[1]==0)or i;i+=1

The golfed version was simply:
i=1
while 101>i:print’Fizz’*(i%3==0)+’Buzz’*(i%5==0)or i;i+=1

As aforementioned, I’ve got no idea how to escape lesser than in html, but if I did, I’d change the ==0 to lesser than 1.

I liked the test, and I agree that if you can’t do it, you’re probably not suited to program for a living.

Basilisk's avatar 292. Basilisk - April 18, 2007

Maybe it’s just how my mind really works, but here’s a backwards-thinking Python solution:

def fizzbuzz(n):
m3 = n % 3
m5 = n % 5
m_both = m3 or m5
if not m_both:
return “Fizz-Buzz”
elif not m5:
return “Buzz”
elif not m3:
return “Fizz”
else:
return n

for x in range(1, 101):
print fizzbuzz(x)

Silly, eh?

293. Fizz Buzz « My raves, my rants, a piece of me - April 19, 2007

[…] using-fizzbuzz-to-find-developers-who-grok-coding Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” […]

Halop's avatar 294. Halop - April 20, 2007

Well, in our case the problem was not about programming skills. I wouldnt mention this if it was a single case, but it seems quite common. Not long ago we hired a ruby developer who i think actually was dreaming in code… I swear i have never met a better coder in my life. Whatever the problem was he could come up with the solution right away, then two minutes later he optimized the code to a hm. “one-liner”. But when it came to actual work, this guy could not finish a single job on time. We used to give him deadlines of several days less than the actual deadline just to be sure that it will be done. And even this didnt work sometimes, and of course it was always someone elses fault. Then add to this, that he changed the look and function of the projects when he felt neccessary (and he usually did :), because the client is ofcourse stupid and doest know what he really wants. The code he produced at the end was always clean, efficient – perfect in a sense, but well, we got fed up with this everyone being stupid and he knowing everything better attitude, and the constant delays, and the constant “surprises”, and that we had to literaly force him to do what we are payed for and not what he likes better. My point is, that being a good coder is only one part of it, and – well, for me at least – being able to actually do a job is just as important. So if i have to choose between a coder who does FizzBuzz in 20 seconds and says everyone above 30secs is stupid and Fizzbuzz is a stupid game too and he could come up with a better one anytime, and one who does it in 2 minutes and then waits for the next question, well i would stick with the second one. 😉

ka's avatar 295. ka - April 20, 2007

@Halop

This is exactly why companies have HR depts and programmers have no business hiring someone, only recommending them 😉

Anson's avatar 296. Anson - April 21, 2007

I’m surprised there haven’t been more Perl solutions.

foreach ((1..100)) {
$fizzbuzz = “”;
$_ % 3 eq 0 and $fizzbuzz = “Fizz”;
$_ % 5 eq 0 and $fizzbuzz .= “Buzz”;
$fizzbuzz and print “$fizzbuzz\n” or print “$_\n”;
}

Anson's avatar 297. Anson - April 21, 2007

And here’s one with no division done:

$f = $b = 0;
foreach ((1..100)) {
++$f eq 3 and print “Fizz” and $f = 0;
++$b eq 5 and print “Buzz” and $b = 0;
$f ne 0 and $b ne 0 and print “$_”;
print “\n”;
}

Jan's avatar 298. Jan - April 24, 2007

ummmm… if you’re looking for “Developers”, then this sort of question is rather pointless. Sure, it may winnow out some obviously unskilled candidates but you will also dismiss many talented people who can help you greatly.

There is a huge difference between a developer and a programmer. A developer’s overall job is much larger, and much more complex. The programmer’s individual tasks may be complex, and that’s where you need rigorous skills, but of far more use is the ability to design and implement and learn on the job.

I see this sort of thing as programmer silliness. It’s merely programmer elitism: if you can’t do x then you’re not as good as me. Very silly.

Each person in a team brings different skills. In some area that person will probably be _better_ than you. They may advance your business or project in ways that you didn’t even anticipate, but you won’t find out because you’ve abitrarily rejected them based on a very piddling test.

Instead of finding the ideal geek, I would try to find the person who can mix in well and who knows how to _learn_ what s/he needs to know.

Kam's avatar Kam - December 21, 2010

you’re Dev is someone else’s systems analyst. and gets paid LOT LESS than the coder.

299. Fried Chicken Arcade - April 28, 2007

[…] Using FizzBuzz to Find Developers who Grok Coding This simple test apparently can weed out those who cannot code. Try it for yourself! (tags: coding internet) […]

300. simple singularities » FizzBuzz Problem - May 11, 2007
301. JavaSPEKTRUM Blogosphäre » Blog Archiv » Blogosphäre (aus JavaSPEKTRUM 03/07) - May 15, 2007

[…] zu häufig die Probleme schon bei den absoluten Grundlagen beginnen und schlägt einen trivialen Programmiertest namens FizzBuzz als erste Hürde für ein Gespräch vor. Die Aufgabe: Schreiben Sie ein Programm, das die Zahlen […]

302. Solving the Fizz-Buzz Question | FuCoder.com - May 17, 2007

[…] quoted Irman’s FizzBuzz question, a trivial programming problem but surprisingly has stumbled many job applicants. Here is the […]

abu ameerah's avatar 303. abu ameerah - May 18, 2007

FizzBuzz is awesome!

abaqueiro's avatar 304. abaqueiro - May 19, 2007
305. Best of Feeds - 29 links - blogging, seo, programming, search, google, humor « //engtech - internet duct tape - May 21, 2007

[…] Using FizzBuzz to Find Developers who Grok Coding (tickletux.wordpress.com, 4 saves) […]

Joe Cincotta's avatar 306. pixolut - May 22, 2007

At Pixolut we do a 6 hour practical exam with only a single UML diagram as the question. “Implement this”.

The exam requires unit tests be written for parts of the system that can be tested and the candidate should use an ‘inversion of control’ pattern to create mock objects to test the abstract functionality.

We allow any modern OO style language that has a test framework (pretty much any modern language today) and the programmer can bring in any materials they want and access the internet as much as they need.

This exam applies accross language barriers (spoken and programmed!) and successfully sorts out the fluff. The good thing though, is that it is practical and as such illustrates the shades of grey which defines an individual.

Example: I had someone take the exam and finish it in 3 hours instead of 6. Some code was a bit sloppy but the solution worked perfectly. This result showed me exactly where I would have to keep an eye out for issues and also where his strengths were.

Joe Cincotta: blog.pixolut.com

307. Dragon’s Notes » The FizzBuzz Test - May 26, 2007

[…] ran across this blog post the other day, while browsing around some programming sites after making an update to CharacterGen […]

Alfred Kayser's avatar 308. Alfred Kayser - May 31, 2007

One of the most optimal solutions in C:
#include
main() {
for(int i=1;i

Alfred Kayser's avatar 309. Alfred Kayser - May 31, 2007

Another try:
#include <stdio.h>
main() {
for(int i=1;i%lt;=100;i++) {
printf(i%15?i%3?i%5?”%i\n”:”Buzz\n”:”Fizz\n”:”FizzBuzz\n”);
}
}

Alfred Kayser's avatar 310. Alfred Kayser - May 31, 2007

Another try:
#include <stdio.h>
main() {
  for(int i=1;i<=100;i++) {
    printf(i%15?i%3?i%5?”%i\n”:”Buzz\n”:”Fizz\n”:”FizzBuzz\n”);
  }
}

So, the hard part is not coding it, but posting the code as a comment on a blog. 😉

John's avatar 311. John - May 31, 2007

I think a lot of you are missing the point. its not about code elegance or refactoring, its about the simple duplicate line of code staring you in the face. How do I know? Well I answered it wrong too ;). Its so easy its staring you right in the face:

for ( int i = 1 ; i

John's avatar 312. John - May 31, 2007

for ( int i = 1 ; i <= 100; i ++ ) {
if (i % 3 == 0 ) print “Fizz”;
if (i % 5 == 0 ) print “Buzz”;
else print i;
// formatting purposes
print “\n”;
}

Jason's avatar 313. Jason - May 31, 2007

HAI
CAN HAS STDIO?
I HAS A VAR

IM IN YR LOOP
UP VAR!!1
IS VAR OVAR 3 LIEK 0?
VISIBLE “FIZZ”
IS VAR OVAR 5 LIEK 0?
VISIBLE “BUZZ”
IS VAR OVAR 3 LIEK 0 AND VAR OVAR 5 LIEK 0?
VISIBLE “FIZZBUZZ”
IZ VAR BIGR THAN 100? GTFO. KTHX
IM OUTTA YR LOOP
KTHXBYE

Damian Brasher's avatar 314. Damian Brasher - June 1, 2007

#!/bin/bash
i=”1″
n=”0″
t=”0″
while [ $i -lt 101 ];
do
n=$[$i%3]
t=$[$i%5]
if ((“$t” == 0)) && ((“$n” == 0)); then
echo “FizzBuzz”
elif [ $n == 0 ]; then
echo “Fizz”
elif [ $t == 0 ]; then
echo “Buzz”
else
echo “$i”
fi
i=$[$i+1]
done
exit 0

Hugo Mills's avatar 315. Hugo Mills - June 1, 2007

I’m amazed that nobody’s done it in the paragon of languages…

/Test {
3 2 roll
exch mod 0 eq
{ show true }
{ pop false }
ifelse
} bind def

/mm { 25.4 div 72 mul } bind def

/Helvetica findfont
12 scalefont setfont
72 297 mm 72 sub translate

1 1 100 {
dup 1 sub dup 50 idiv 288 mul exch 50 mod 14 mul neg moveto
dup false exch
dup (Fizz ) 3 Test
exch (Buzz) 5 Test
or or not { 3 string cvs show true } if
pop
} for

showpage

PHoog's avatar 316. PHoog - June 4, 2007

Console.WriteLine(“1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\nFizzBuzz\n16\n17\nFizz\n19\nBuzz\nFizz\n22\n23\nFizz\nBuzz\n26\nFizz\n28\n29\nFizzBuzz\n31\n32\nFizz\n34\nBuzz\nFizz\n37\n38\nFizz\nBuzz\n41\nFizz\n43\n44\nFizzBuzz\n46\n47\nFizz\n49\nBuzz\nFizz\n52\n53\nFizz\nBuzz\n56\nFizz\n58\n59\nFizzBuzz\n61\n62\nFizz\n64\nBuzz\nFizz\n67\n68\nFizz\nBuzz\n71\nFizz\n73\n74\nFizzBuzz\n76\n77\nFizz\n79\nBuzz\nFizz\n82\n83\nFizz\nBuzz\n86\nFizz\n88\n89\nFizzBuzz\n91\n92\nFizz\n94\nBuzz\nFizz\n97\n98\nFizz\nBuzz\n”);

317. Petal and Paws - June 4, 2007

How to Fizzbuzz…

Okie, so it’s simple enough… right?
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 …

Robspages's avatar 318. Robspages - June 6, 2007

PHP

for($i=1; $i < 101; $i++){
switch(true){
case ($i % 3 == 0 && $i % 5 == 0):
echo “FizzBuzz <br/&grt;”;
break;
case ($i % 3 == 0):
echo “Fizz <br/&grt;”;
break;
case ($i % 5 == 0):
echo “Buzz <br/&grt;”;
break;
default:
echo $i . ” <br/&grt;”;
break;
}
}

Robspages's avatar 319. Robspages - June 6, 2007

gah – botched the >

Alex Oren's avatar 320. Alex Oren - June 6, 2007

C++ template metaprogramming.
Everything is calculated at compile time and the result is just a series of printf() calls.

////////////////////////////////////////////////////////////////

#include

#if defined(_MSC_VER) && _MSC_VER >= 1300
#define inline __forceinline
#endif

////////////////////////////////////////////////////////////////

template struct fb
{ static inline void Do() { printf(“%i\n”, I); } };

template struct fb
{ static inline void Do() { printf(“fizzbuzz\n”); } };

template struct fb
{ static inline void Do() { printf(“fizz\n”); } };

template struct fb
{ static inline void Do() { printf(“buzz\n”); } };

template struct loop
{ static inline void Do()
{ loop::Do(); fb::Do(); }
};

template struct loop
{ static inline void Do() {} };

////////////////////////////////////////////////////////////////

int main(int argc, char* argv[])
{
loop::Do();
return 0;
}

Alex Oren's avatar 321. Alex Oren - June 6, 2007

Trying again:

////////////////////////////////////////////////////////////////

#include <stdio.h>

#if defined(_MSC_VER) && _MSC_VER >= 1300
#define inline __forceinline
#endif

////////////////////////////////////////////////////////////////

template<bool mod3, bool mod5, int I> struct fb
{ static inline void Do() { printf(“%i\n”, I); } };

template<int I> struct fb<true, true, I>
{ static inline void Do() { printf(“fizzbuzz\n”); } };

template<int I> struct fb<true, false, I>
{ static inline void Do() { printf(“fizz\n”); } };

template<int I> struct fb<false, true, I>
{ static inline void Do() { printf(“buzz\n”); } };

template<int I> struct loop
{ static inline void Do()
{ loop<I-1>::Do(); fb<I%3==0, I%5==0, I>::Do(); }
};

template<> struct loop<0>
{ static inline void Do() {} };

////////////////////////////////////////////////////////////////

int main(int argc, char* argv[])
{
loop<100>::Do();
return 0;
}

////////////////////////////////////////////////////////////////

Angus Lepper's avatar 322. Angus Lepper - June 6, 2007

C99:

#include <stdio.h>
#define p(t,s) if(i%t)printf(“s”)
void main(){for(int i=1;i<101;++i){p(15,Fizz-Buzz)&&continue;p(3,Fizz);p(5,Buzz);}}

I’m sure it’s possible to get it shorter but I’m new to this lark!

323. Geek School » Get Hired With FizzBuzz - June 13, 2007

[…] programming problem has been discussed a lot lately because apparently a lot of programmers can’t do it. I’ve never been asked this particular question in an interview; I had never heard of it […]

whoknows's avatar 324. whoknows - June 16, 2007

i see assembly is underrepresented. 😦

i’m very much a beginner with arm asm and coding in general but wanted to make up for the underrepresentation of asm.. no assembler right now so i’ll give assembled code with arbitrary addresses (and of course untested). the systemcall used is only good for some systems, sry for that. 🙂

hey such a short code in hex.
FF 40 2D E9 01 00 A0 E3 01 10 A0 E3 94 A0 9F E5
33 00 00 EB 00 40 9A E5 03 00 51 E3 78 40 9F 05
06 00 51 E3 70 40 9F 05 09 00 51 E3 68 40 9F 05
0C 00 51 E3 60 40 9F 05 05 00 51 E3 5C 40 9F 05
0A 00 51 E3 54 40 9F 05 0F 00 51 E3 50 40 9F 05
00 50 A0 E1 01 60 A0 E1 04 10 A0 E1 00 20 A0 E3
00 30 A0 E3 00 00 A0 E3 3C 70 9F E5 0F E0 A0 E1
07 F0 A0 E1 05 00 A0 E1 06 10 A0 E1 01 10 81 E2
01 00 80 E2 10 00 51 E3 01 10 A0 23 64 00 50 E3
DE FF FF 3A FF 80 BD E8 00 00 00 00 B8 00 00 00
C4 00 00 00 D0 00 00 00 B0 00 00 00 38 BB 00 F0
00 00 00 00 00 00 00 00 42 00 55 00 5A 00 5A 00
00 00 00 00 46 00 49 00 5A 00 5A 00 00 00 00 00
46 00 49 00 5A 00 5A 00 42 00 55 00 5A 00 5A 00
00 00 00 00 1F 40 2D E9 0F 20 01 E2 0A 00 52 E3
06 10 81 22 F0 20 01 E2 22 22 A0 E1 01 20 42 22
06 00 A0 E3 92 00 00 E0 01 00 80 E0 0F 20 00 E2
30 20 82 E2 F0 30 00 E2 23 32 A0 E1 30 30 83 E2
00 4F 80 E2 24 44 A0 E1 30 40 84 E2 02 20 CA E4
02 30 CA E4 00 40 CA E5 04 A0 4A E2 1F 80 BD E8

ok..for better readibility:

loc_start
STMFD, SP! {R0-R7, LR}
MOV R0, #1
MOV R1, #1
LDR R10, [PC,#94]

loc_0
BL loc_3
LDR R4, [R10]
CMP R1, #3
LDREQ R4, [PC,#78]
CMP R1, #6
LDREQ R4, [PC,#70]
CMP R1, #9
LDREQ R4, [PC,#68]
CMP R1, #0xC
LDREQ R4, [PC,#60]
CMP R1, #5
LDREQ R4, [PC,#5C]
CMP R1, #0xA
LDREQ R4, [PC,#54]
CMP R1, #0xF
LDREQ R4, [PC,#50]
MOV R5, R0
MOV R6, R1
MOV R1, R4
MOV R2, #0
MOV R3, #0
MOV R0, #0
LDR R7, =0xF000BB38
MOV LR, PC
MOV PC, R7
MOV R0, R5
MOV R1, R6
ADD R1, R1, #1
ADD R0, R0, #1
CMP R1, #0x10
MOVCS R1, #1
CMP R0, #0x64
BCC loc_0
LDMFD, SP! {R0-R7, PC}

loc_3: crappy converting so it’ll stay in hex. 🙂

whoknows's avatar 325. whoknows - June 16, 2007

pressed enter too fast..i mean that part is very much hard coded and so isnt nice 🙂

Anonymous's avatar 326. Anonymous - June 17, 2007

#include

int main(void)
{
int loopvar = 0; // Used to
for(loopvar = 1; loopvar

Anonymous's avatar 327. Anonymous - June 17, 2007

#include
int main(void)
{
int tmpvar = 0;
for(tmpvar = 1; tmpvar

328. Solarvoid » Blog Archive » First Challenge - June 28, 2007

[…] decided to start off the challenges with a dirt simple challenge: the FizzBuzz problem. Write a program that prints the numbers from 1 to 100. But for multiples of three print […]

329. applicant tracking system - June 29, 2007

applicant tracking system

Hi. Thanks for the good read.

Shypy's avatar 330. Shypy - July 5, 2007

Its amazing to see how many solutions here are incorrect too

tired old smart-ass programmer's avatar 331. tired old smart-ass programmer - July 11, 2007

one line javascript, pastable into a url (with bonus points for lack of whitespace and nested ?: usage):

javascript:for(x=0;x

tired old smart-ass programmer's avatar 332. tired old smart-ass programmer - July 11, 2007

one more time, to bypass the greater than/less than censors:

javascript:for(x=1;x!=101;x++)document.write((x%3?x%5?x:’Buzz’:x%5?’Fizz’:’FizzBuzz’)+’ ‘)

tired old smart-ass programmer's avatar 333. tired old smart-ass programmer - July 11, 2007

wow getting code to run after all the tick replacing wordpress does is difficult.

once more then, saving one more byte:

javascript:for(x=0;++x

stupid code tricks's avatar 334. stupid code tricks - July 11, 2007

4s a charm?

javascript:for(x=0;++x!=101;)document.write((x%3?x%5?x:”Buzz”:x%5?”Fizz”:”FizzBuzz”)+” “)

stupid code tricks's avatar 335. stupid code tricks - July 11, 2007

To Jan #298:

If a developer or whoever couldn’t write this code, I wouldn’t want them working with me.

It’s super dirt easy. Maybe the ‘developer’ or whoever you would let through shouldn’t be in tech.

I mean, what test should we use to weed out the ones who need handholding from the competant?

print your name three times?! set a variable called “i” to 500?

Sn0rt's avatar 336. Sn0rt - July 12, 2007

Ummm, Brian Pew, your code:

void XORSwap(void *x, void *y)
{
*x ^= *y;
*y ^= *x;
*x ^= *y;
}

is even more dangerous than the dereferenced void pointers. Consider what happens if x == y. The XOR statements basicly zero out both pointers. Danger!!

Tobin Harris's avatar 337. Tobin Harris - July 21, 2007

Lol, intresting test question. I noticed most ruby examples just show off Ruby’s terse format. How about something a little more readable?

(1..100).each do |i|
print “\n#{i}”
print ” Fizz” if i % 3 == 0
print ” Buzz” if i % 5 == 0
end

338. Paw Prints » Blog Archive » In Denial - August 7, 2007

[…] among software practioners. Examples of the kind of thing I’m referring to can be found here and here. My personal experience would back up the sentiments that are expressed in these postings […]

Cheez's avatar 339. Cheez - August 15, 2007

76 bytes of PHP 😉

<?for(;++$n<101;){$e=($n%3)?”:fizz;$e.=($n%5)?”:buzz;echo($e)?$e:$n,’ ‘;}

toxik's avatar 340. toxik - August 15, 2007

Python isn’t readable. I have proof, and I beat Cheez in a verbose language, 70 bytes without the (unneeded) trailing newline:

for i in range(1,101):print(“Fizz”[:(i%3<1)*9]+”Buzz”[:(i%5<1)*9])or i

341. Definition of Information :: another one bites ... - August 22, 2007

[…] if you are a prospective developer please read  https://tickletux.wordpress.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/. If you can not complete this test in 10 minute, go read a book on programming and figure it […]

Sam's avatar 342. Sam - August 23, 2007

Without knowing PL/SQL beforehand (because heck — no one’s tried it in SQL), in under ten minutes and access to the internet:

set echo on;
drop table TEMP;
create table TEMP
(text char(55), col2 number(4));
/
BEGIN
FOR i IN 1..100 LOOP
IF MOD(i,15) = 0 THEN
INSERT INTO temp VALUES (‘fizzbuzz’, NULL);
ELSE IF MOD(i, 3) = 0 THEN
INSERT INTO temp VALUES (‘fizz’, NULL);
ELSE IF MOD(i, 5) = 0 THEN
INSERT INTO temp VALUES (‘buzz’, NULL);
ELSE
INSERT INTO temp VALUES (”, i);
END IF;
END LOOP;
COMMIT;
END;
/
select * from TEMP;

343. Four Points Cardinal » Blog Archive » FizzBuzz - August 23, 2007

[…] Using FizzBuzz to Find Developers who Grok Coding […]

Old Wolf's avatar 344. Old Wolf - August 24, 2007

Most posters seem to have missed the point of the variable swap test. Anyone who writes an obfuscated fragile non-portable hack fails, e.g. Brian Pew whose code doesn’t even compile, let alone work. Assuming the language doesn’t have a swap facility (i.e. pretty much limited to C or BASIC), using the temporary variable is the best solution bar none.

nomen's avatar 345. nomen - August 24, 2007

Ruby:

(1..100).each do |line|
if line % 3 == 0
print “Fizz”
end
if line % 5 == 0
print “Buzz”
end
print line unless line % 3 == 0 or line % 5 == 0
print “\n”
end

Dlareg's avatar 346. Dlareg - August 24, 2007

1 a = (1…101).to_a
2 changes = {5 => “Buzz”, 3=> “Fizz”}
3 changes.each do |number,word|
4 n=a.size
5 (n/number).times do |i|
6 pos = (i*number)-1
7 if a[pos].is_a? Fixnum
8 a[pos]=word+’ ‘
9 else
10 a[pos] = a[pos][0..-2]+word+’ ‘
11 end
12 end
13 end
14 p a
~

SlyEcho's avatar 347. SlyEcho - August 24, 2007

Assembles with FASM and works in DOS (and Windows too, even Vista):

org 100h

mov cx, 0
foo:
inc cx
mov ax, cx

mov bl, 100
div bl
add al, 30h
mov [num], al
mov al, ah
xor ah, ah

mov bl, 10
div bl
add al, 30h
mov [num+1], al
add ah, 30h
mov [num+2], ah

mov dx, num
mov ah, 09h
int 21h

mov ax, cx
mov bl, 3
div bl
or ah, ah
jnz nofizz

mov dx, fizz
mov ah, 09h
int 21h
nofizz:

mov ax, cx
mov bl, 5
div bl
or ah, ah
jnz nobuzz

mov dx, buzz
mov ah, 09h
int 21h
nobuzz:

mov dx, eol
mov ah, 09h
int 21h

cmp cx, 100
jnz foo

mov ax, 4c00h
int 21h

num db ‘xxx:$’
fizz db ‘Fizz$’
buzz db ‘Buzz$’
eol db 0dh, 0ah, 24h

ACL's avatar 348. ACL - August 24, 2007

In tsql

declare @counter int
declare @output varchar(15)
set @counter = 1
while @counter < 101
begin
set @output = ”
if @counter % 3 = 0
begin
set @output = ‘Fizz’
end
if @counter % 5 = 0
begin
set @output = @output + ‘Buzz’
end
if @output = ”
begin
set @output = @counter
end
print @output
set @counter = @counter + 1
end

ACL's avatar 349. ACL - August 24, 2007

Where’s my indentation 🙂

Verm's avatar 350. Verm - August 25, 2007

There are way too many people here who think tests like these would have absolute answers.

It doesn’t really matter what exactly they come up with. There is a logical way to build a FizzBuzz program. You start with the loop, then put in the checks, using mod to check for multiples. If they start that way, fine, even if they forget to worry about multiples of 15.

Same with swapping two variables, except there’s not really any logical bugs to make there. If they define a third variable, assign the first number to it, assign the second to the first, and assign the third to the first, well, they seem to have a firm grasp on the concept.

If, instead of doing it sanely, they come out with some one-line amazing thing, they they’re either a very good programmer, or a moderately good one who’s read this page, so that’s fine too. (As an aside, I immediately thought of list($a,$b) = array($a,$b) in PHP too, like some others on this page. 🙂 I do know of the XOR trick for C and other languages, but wouldn’t trust myself to be able to replicate it correctly in an interview. )

It’s when the person being interviewed doesn’t appear to know what to do or how to start that’s the warning sign.

L's avatar 351. L - August 25, 2007

Whoever wrote the KTHXBYE version… Nice job! Though it seems to fail to print the number if it isn’t one of the fizzbuzz numbers.

Ivan Tikhonov's avatar 352. Ivan Tikhonov - August 27, 2007

: fizz 1+ .” fizz ” ;
: bazz 1+ .” bazz ” ;
: fizzbazz 1+ .” fizzbazz ” ;
: n 1+ dup . ;
: bange n n fizz n bazz fizz n n fizz bazz ;
: bang bange n fizz n n fizzbazz ;

0 bang bang bang bang bang bang bange drop cr bye

Yep, you need no modulus checking for fizzbuzz.

ACL's avatar 353. ACL - August 29, 2007

Another one in c# ala the Forth example above:

public delegate void Function(ref int x);
public static Function MakeFizzBuzz(string word)
{
if (word == “n”)
return delegate(ref int x)
{
x++;
Console.WriteLine(x);
};
else
return delegate(ref int x)
{
x++;
Console.WriteLine(word);
};
}
static Function n = MakeFizzBuzz(“n”);
static Function fizz = MakeFizzBuzz(“Fizz”);
static Function buzz = MakeFizzBuzz(“Buzz”);
static Function fizzbuzz = MakeFizzBuzz(“FizzBuzz”);

public static void Ten(ref int x)
{
n(ref x);n(ref x);fizz(ref x);n(ref x);buzz(ref x);
fizz(ref x);n(ref x);n(ref x);fizz(ref x);buzz(ref x);
}

public static void Fifteen(ref int x)
{
Ten(ref x);n(ref x);fizz(ref x);n(ref x);n(ref x);fizzbuzz(ref x);
}
static void Main(string[] args)
{
int x = 0;
Fifteen(ref x);Fifteen(ref x);Fifteen(ref x);Fifteen(ref x);
Fifteen(ref x);Fifteen(ref x);Ten(ref x);
Console.ReadLine();
}

leymoo's avatar 354. leymoo - September 13, 2007

Surely:

1. If you were hiring for a *programmer*, you’d want them to bang out the code easily, much like people above me have done.

2. If you were hiring for a *developer*, you’d want them to ask “ok, what would you like me to do? I can code a short term quick solution or I can create a more flexible long term solution if you require. Would you be looking to possibly extend fizzbuzz in the future? Is there any more information you could provide?”
Take the information, THEN code a solution.

Imran's avatar 355. Imran - September 13, 2007

I am a programmer/developer with a masters degree and an years experience in system programming . I will take some time to write that code .. arnd 5 mins.

But if u give me question with some logic, which I know, I still take some time. Partly bcz I haven’t practised writing programs on papers. Rather I can write those on a text editor faster.

356. def essays(codecraft) » Hiring programmers - September 16, 2007

[…] looking for ways to improve the screening of candidates. There are interview coding tests link the FizzBuzz test. Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” […]

martinus's avatar 357. martinus - October 1, 2007

% Erlang solution
-module(fb).
-export([fb/0]).

fb() ->
fb(1).

% iterate
fb(101) ->
ok.
fb(X) ->
pr(X),
fb(X+1).

% print
pr(X) when X rem 15 =:= 0 ->
io:format(“FizzBuzz\n”);
pr(X) when X rem 3 =:= 0 ->
io:format(“Fizz\n”);
pr(X) when X rem 5 =:= 0 ->
io:format(“Buzz\n”);
pr(X) ->
io:format(“~w\n”, [X]).

martinus's avatar 358. martinus - October 1, 2007

# Ruby solution
(1..100).each do |i|
if (i % (3*5) == 0)
puts “FizzBuzz”
elsif (i % 5 == 0)
puts “Buzz”
elsif (i % 3 == 0)
puts “Fizz”
else
puts i
end
end

martinus's avatar 359. martinus - October 1, 2007

The most important question is to ask them what they think about the code they have just written, this way you can find out how good he really is. E.g. about the ruby solution I would say something like this:

* No unit tests for the code, which is bad.
* the i%(3*5) is not obvious, needs a comment.
* Solution is not very general, but with the given information it is useless to generalize it more because we don’t know what generalization will be necessary in future.
* solution is not reusable because not inside a class
* hardcoded numbers are bad
* performance could be optimized by reordering statements, i%3 is the most often case.
* performance of % and if statement is probably irrelevant because io is usually the limiting factor.
* purpose of the code is unknown.

L.'s avatar L. - January 11, 2012

not reusable because not inside a class ?? god bless brainwashing.

Performance of % and if statement is extremely relevant because there will be no IO for this exercise.

Drew Peacock's avatar 360. Drew Peacock - October 3, 2007

I refuse to believe that anyone with even the most casual understanding of a language would be unable to make their own FizzBuzz. Surely this is about how you work, and in which case I’d not want to team up with the people above who treated it as a challenge to create brilliantly terse but wholly impenetrable one-liners. Great if you’re running low on hard drive space, I guess, but not so great if you want your fellow developers to like you…

Pascal


var
N: Integer; S: String;

for N := 1 to 100 do begin
S := '';
if N mod 3 = 0 then begin
S := 'Fizz';
end;
if N mod 5 = 0 then begin
S := S + 'Buzz';
end;
if (N mod 3 > 0) and (N mod 5 > 0) then begin
S := IntToStr(N);
end;
WriteLn(S);
end;

361. FizzBuzz in Factor « Shellfish Jeans - October 7, 2007

[…] Now if you don’t know what FizzBuzz is, take a look at this: Using Fizzbuzz to find developers who Grok coding […]

362. 100 Resources to Attract, Retain and Utilize Rock Star Programmers | MT-Soft Website Development - October 18, 2007

[…] Using FizzBuzz to Find Developers Who Grok Coding: This method recommends testing your candidates with a lowball problem to find out their competency. […]

363. Scott Hanselman's Computer Zen - The Weekly Source Code 9 - WideFinder Edition - October 23, 2007

[…] many folks are focusing on Item #5. Either way, it’s a heck of a lot more interesting problem than FizzBuzz and worth adding to your interview arsenal […]

Terry Smith's avatar 364. Terry Smith - October 24, 2007

Ruby

(1..100).each{|n|
puts n unless n % 3 ==0 unless n % 5 == 0
puts “Fizz” if n % 3 ==0 unless n % 5 == 0
puts “Buzz” unless n % 3 ==0 if n % 5 == 0
puts “FizzBuzz” if n % 3 ==0 if n % 5 == 0
}

Mike Swierczek's avatar 365. Mike Swierczek - December 7, 2007

I didn’t know a damn thing about computers when I got to college. I took a few simple CS courses as an undergrad. It’s senior year, I’m kicking around the idea of grad school, so I go for Software Engineering. I’m accepted (no GRE subject test required), and find out the program is about the Mythical Man Month, formal proofs that functions will exit, project management, Design Patterns, and so forth.

I think most of the people here were immersed in this culture, some at an early age. I didn’t even realize how many free compilers and online tutorials for different tasks and languages existed. I was a fish out of water, and I didn’t even know how to get back into the ocean.

I snared a first job on the strength of my grades and good high level discussion of concepts, and then proceeded to be an anchor on my team for a solid six months and then maybe just floating driftwood for six more. That was six years ago, and now FizzBuzz is quite easy.

I’m sure there are interviewees that are hoping to lie their way through the process. But there are also some people new to the field – some young, some not – that can be damn good developers if you give them some time. I’m not saying you should hire them, I’m just asking you to cut them some slack. Maybe encourage them to pick up some good books and work through the examples before they interview anywhere else.

sclv's avatar 366. sclv - December 18, 2007

swapping two variables, declaring *none*: uncurry (flip (,))

Bony's avatar 367. Bony - December 21, 2007

This is the greates article about Fizz-Buzz .

JavaGuy147's avatar 368. JavaGuy147 - December 29, 2007

the C way of swapping two variables without a temp var is very simple. For those who don’t know it:

a^=b^=a^=b;

you can also use adding/subtracting the variables in the right order but I don’t think the method is worth showing

rille111's avatar 369. rille111 - January 4, 2008

Just to show you lot how simple and nice VB.NET is, i can do this in 3 lines.

For i As Integer = 1 To 100 Step 1
Console.WriteLine(i & “: ” & IIf(i Mod 3 = 0, ” fizz”, “”) & IIf(i Mod 5 = 0, ” buzz”, “”))
Next

MT's avatar 370. MT - January 6, 2008

# Fizzbuzz in ruby
def fizzes(i); i % 3 == 0; end
def buzzes(i); i % 5 == 0; end
def boring(i); not(fizzes(i) or buzzes(i)); end
(1..100).each do |i|
print “Fizz” if fizzes(i)
print “Buzz” if buzzes(i)
print i if boring(i)
puts
end

—-

# Reading numbers from file and totalling, may fail if file
# contains blank lines or non-numerics.
File.readlines(“numbers.txt”).collect { |line| line.chomp.to_i }.inject { |t, i| t+i }

—-

# Convert from number to string without using
# built-in converters like printf and variable interpolation.
# ?0 is the ASCII value 0, and the chr() method gives the
# string equivalent of the ASCII value.
n = 436
str = “”
while n>0
digit = n % 10
n = (n-digit) / 10
str = (?0 + digit).chr + str
end
puts str

—-

Not sure why I’m posting the result, except I enjoyed thinking about albeit simple little challenges like this; a welcome relief from the complexities of real projects. Besides, I enjoyed reading some of the other people’s replies.

Some people seem to be reading too much into the purpose of the OP’s test. If your programmer / developer can’t manage these simple algorithms then that is certainly useful information to reveal. How you weigh that in with rest of your presumably extensive interview information depends entirely on your goals and requirements. A useful little test if you ask me.

371. Krenzel.info » Blog Archive » FizzBuzz - January 7, 2008

[…] wrote a great post titled Why Can’t Programmers.. Program?. The author references another post by Imran which introduces what is now a commonly referenced programming “challenge” […]

adrien's avatar 372. adrien - January 9, 2008

here is a c# one liner solution
for (int x = 1; x <= 100; x++) Console.WriteLine(x + “:” + (x % 3 == 0 ? “Fizz” : “”) + (x % 5 == 0 ? “Buzz” : “”));

waseem's avatar 373. waseem - January 9, 2008

#include

main(){
int n;
for(n=1;i<=100;n++){
if(n%3==0 && n%5==0)
printf(“FizzBuzz\n”);
else if(n%3==0)
printf(“Fizz\n”);
else if(n%5==0)
printf(“Buzz\n”);
else
printf(“%d\n”,n);

}//for

}//main

Rudolf's avatar 374. Rudolf - January 12, 2008

Ha, I asked a intern at my company yesterday, in 3 minutes he came up with this PHP piece.

for($i=1; $i < 101; $i++) {
echo ( $i % 15 ? $i % 3 ? $i % 5 ? $i : “Buzz” : “Fizz” : “FizzBuzz” ).”\n”;
}

375. McWow the busy - January 15, 2008

[…] 20x more productive than the guy in the 5- area. But then again, that 5- area is why we end up with FizzBuzz. 20x is even being generous to the guys at the bottom. I’d have no problem believing infinity […]

Rich's avatar 376. Rich - January 17, 2008

A C#/LINQ centered attempt

using System;
using System.Linq;
using System.Collections.Generic;

public class FizzBuzzer
{
delegate string FizzBuzz(int i);

public List GetFizzBuzzList()
{
FizzBuzz r = delegate(int i) { return (i % 5 == 0 ? “Fizz” : “”) + (i % 3 == 0 ? “Buzz” : “”); };
var q = from f in Enumerable.Range(1, 100) select r(f);
return q.ToList();
}
}

//…
foreach(string s in new FizzBuzzer().GetFizzBuzzList())
{
Console.WriteLine(s);
}

Someguy's avatar 377. Someguy - January 18, 2008

I am forced to wonder if Mitch Silverman, post #4, has been driving down dark country roads at 80 mph… Backwards?

“.. or did (s)he get that deer in the taillights look in his/her eyes?

robbat2's avatar 378. robbat2 - January 27, 2008

90 seconds.

#include <stdio.h>
int main(int argc, char** argv) {
int i; for(i = 1; i<=100; i++) { if(printf(“%s%s”, (i % 3) ? “” : “Fizz”, (i % 5) ? “” : “Buzz”) < 4) printf(“%d”, i); printf(“\n”); } }

But shoot me for abusing the return value of printf.

RS's avatar 379. RS - January 27, 2008

They’re teaching kids Java…. at least at the school I’m at, it’s all theory too, not actual practical programming. Great for students that want to become CS teachers, but bad if they want to work for an actual company.

90 seconds.

<?php
for ($i=1; $i

RS's avatar 380. RS - January 27, 2008

$i++) {
if (($i % 3 == 0) && ($i % 5 == 0)) {
echo “FizzBuzz \n”;
} elseif ($i % 3 == 0) {
echo “Fizz \n”;
} elseif ($i % 5 == 0) {
echo “Buzz \n”;
} else {
echo “$i \n”;
}
}

Mikachu's avatar 381. Mikachu - January 27, 2008

there are a lot of comments, so maybe someone mentioned this already: you have to check if a==b in your xor swap functions or you will just clear both of them, as a^a == 0.

Aigarius's avatar 382. Aigarius - January 27, 2008

a = [0,0,”Fizz”,0,”Buzz”,”Fizz”,0,0,”Fizz”,”Buzz”,0,”Fizz”,0,0,”FizzBuzz”]
for i in range(1,101):
print a[i%15] ? i, a[i%15]

Sael's avatar 383. Sael - January 29, 2008

I got hired in the summer ’07, and was put through three tests besides the usual talky-talky stuff for the interview.

One was writing a stored procedure in T-SQL.

Next, doing a bit of UML – heck, just pseudo-sketching the “basket”-part of a web shop did the trick actually.

And last, doing FizzBuzz in C#. I was asked first if I had ever heard of it before, which I truthfully answered no to. In essence, I wrote the code in hand (taking about 1,5 minute since it takes forever to write readable handwriting these days).

I was later told that although my solution was almost perfect (could’ve been more tightly written), I was chosen over other candidates because of the speed of solving it, as well as actually listening and chit-chatting while doing it. See, the company used it more as a test of a person’s ability to work in an abstract environment – talking about stuff while doing it at the same time was the real test.

Still, they told me that they threw candidates out as soon as they displayed a lack of abilities in any of the three tests (since they are so simple).

BTW, this was in Denmark, and my education which was completed in the Spring of ’07 isn’t in Computer Science as such, but more just a special education to become a “coding monkey” of sorts – that is, having a practical approach to code, instead of a theoretical as CS usually is over here.

384. Fizz, buzz, fizzbuzz | Libin Pan - February 7, 2008

[…] Imran On Tech: Using FizzBuzz to Find Developers who Grok Coding […]

385. FizzBizz in JavaScript : minutiae - February 11, 2008

[…] About a year ago someone put up a blog post on using using FizzBizz to find developers who grok code. […]

Flashtastic's avatar 386. Flashtastic - February 12, 2008

FizzBuzz in ActionScript:

for (var i = 1; i<=100; i++) {
if ((i%5) == 0 && (i%3) == 0) {
trace(i+” FizzBuzz”);
continue;
} else if (i%5 == 0) {
trace(i+” Buzz”);
} else if (i%3 == 0) {
trace(i+” Fizz”);
} else {
trace(i);
}
}

joker's avatar 387. joker - February 13, 2008

I know the answer
print(1);
print(2);
print(Fizz);
print(4);
print(Buzz);
print(Fizz);
print(7);
print(8);
print(Fizz);
print(Buzz);
print(11);
print(Fizz);
print(13);
print(14);
print(FizzBuzz);
print(16);
print(17);
print(Fizz);
print(19);
print(Buzz);
print(Fizz);
print(22);
print(23);
print(Fizz);

ok I am just too lazy to complete this joke.

388. james mckay dot net » Pro JavaScript Techniques - February 16, 2008

[…] Personally, I’ve felt a bit disappointed by this. I’ve said before that I think of JavaScript as the new Scheme — so with that in mind, anything that treats it as if it were merely client-side PHP will naturally be something of a disappointment. Perhaps this is a case of quidquid latine dictum sit, altum viditur on my part, but I like to use closures, lambdas, iterators, generics, Linq and so on in my code to maximum effect. I am also firmly of the opinion that every professional developer needs to be familiar with these concepts too — after all, they show that you have the kind of mind that can handle the complexities of software development, and won’t stumble over the FizzBuzz problem. […]

389. How to talk about Data Structures : mcherm.com (beta) - February 17, 2008

[…] what I would consider the most fundamental of programming skills. Some people have suggested using FizzBuzz (a trivial programming exercise) as a filter; what I use is a discussion of data […]

390. Missing Features » Are You An Efficient Programmer? - February 25, 2008

[…] Most programmers are really bad at programming. Grab 10 random students from a computer science masters program and your correspondent will happily wager a case of Brooklyn Brewery Chocolate Stout that at least nine of those programmers will fail a basic programming task. […]

mdp's avatar 391. mdp - February 27, 2008

Hope this code renders properly.
Does the plaintext tag work?

I only just heard about FizzBuzz, and while there
are implicit sieves posted, there does not seem
to be an actual sieve.

/*
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”.
*/

#define SIEVE_SIZE 101

int main (void)
{
int retval = 0;
int idx;
int it;
char sieve[SIEVE_SIZE];
int fizz_mask = 0x01;
int buzz_mask = 0x02;

for(idx = 0; idx < SIEVE_SIZE; ++idx) sieve[idx] = 0;
for(idx = 0; idx < SIEVE_SIZE; idx += 3) sieve[idx] |= fizz_mask;
for(idx = 0; idx < SIEVE_SIZE; idx += 5) sieve[idx] |= buzz_mask;
for(idx = 1; idx < SIEVE_SIZE; ++idx)
{
if((it = sieve[idx]) == 0) printf(“%3d\n”, idx);
else
{
if((it & fizz_mask) == fizz_mask) fputs(“Fizz”, stdout);
if((it & buzz_mask) == buzz_mask) fputs(“Buzz”, stdout);
fputc(‘\n’, stdout);
}
}

return retval;
} /* main */

392. FizzBuzz To Infinity « Better Software. Better Science. Better Sense. - March 1, 2008

[…] in Software tagged fizzbuzz at 1:12 pm by mj If you’re like me, the first time you heard the FizzBuzz programming interview meme, you tried it yourself in your favorite […]

Justin Blaauw's avatar 393. Justin Blaauw - March 15, 2008

When I followed the link to FuzzBuzz it vaguely rang a bell. Then on reading the site, I remembered – I had to do this test as part of an interview process for a place called GuruHut in South Africa. I creamed it but was wondering why they would ask someone like me – a 7 year experienced Java developer to write this code. Now I understand : )

394. C40’s Blog » Ruby và thú vui “code 1 dòng” - March 26, 2008

[…] Bài này có thể gọi là “siêu dễ”. Thế nhưng mà phần lớn dân tốt nghiệp lập trình không giải được bài này (hô hô). […]

Paul's avatar 395. Paul - March 27, 2008

I didn’t read all the posts but many solutions repeat the multiple test with the modulo operator. Why test i mod 3 then i mod 5 and also test i mod 3 AND i mod 5 again.
Why not just:

for (i = 1; i <= 100;i++)
{
mod3 = 0
mod5 = 0

if (i % 3 == 0)
{
mod3 = 1
print(“Fizz”)
}
if (i % 5 ==0)
{
mod5 = 1
print(“Buzz”)
}
if (!(mod3 || mod5))
print(i)
}

But one problem is that for sequences like 9,10, or 24,25, etc FizzBuzz is printed because 9 is a multiple of 3 and 10 is a multiple of 5. So FizzBuzz gets printed even though neither 9 or 10 are multiples of 3 AND 5. That would throw me on a interview test because it would make me think its a trick question and that the only time FizzBuzz should get printed is if a number is a multiple of 3 AND 5, not when there are consecutive numbers that are mutliples of 3 and 5 respectively that may also print FizzBuzz. The time spent looking for the trick or gotcha would take more than a minute, and I am kicked out as a bad programmer because it took longer than a minute to finish such a simple problem 😦
There are no simple problems.
Paul

L.'s avatar L. - January 11, 2012

Aside from your remarks (i.e. no new line is making it a bit strange), checking again for the mod is a crime in itself. you already know if it matches mod3 or mod5, so just use that knowledge instead of asking for another expensive (double) op.

joe's avatar 396. joe - May 18, 2008

(define (fizzbuzz n)
(let ((test (cond ((= 0 (modulo n 15)) “Fizzbuzz”)
((= 0 (modulo n 5)) “Fizz”)
((= 0 (modulo n 3)) “Buzz”)
(else n))))
(if (= n 0) (list n)
(cons test (fizzbuzz (- n 1))))))

(map print (fizzbuzz 100))

Keber's avatar 397. Keber - June 2, 2008

Hi,

I gave this problem to my students of two programming’s first course . One group, with teacher’s help, answered it in about two hours, most of them making unnecessary comparisons. In the other group, without help, about 25% step out the question, and about 10~15% gave an acceptable answer.

Anonymous's avatar 398. Anonymous - June 15, 2008

var i=0;

while (i < 100) {
i++;
if (i%3==0 && i%5==0) {
fb=”Fizzbuzz”;
document.write(fb + “, “);
} else if (i%3==0) {
f=”Fizz”;
document.write(f + “, “);
} else if (i%5==0) {
b=”Buzz”;
document.write(b + “, “);
} else {
i=i;
document.write(i + “, “);
}
}

Anonymous's avatar 399. Anonymous - June 15, 2008

Written in Javascript, forgot to include that.

400. Interviews : Please Stop Yelling - June 16, 2008

[…] FizzBuzz. A small problem that someone used to in an interview to test a programmer’s skills. Using FizzBuzz to Find Developers who Grok Coding It’s worth reading the comments on this […]

Eric's avatar 401. Eric - June 21, 2008

I stumbled on this thread while reading stuff on Ruby (trying to understand why it’s so “popular”). It’s so hard to read, i bet you lose any gain you could get from it’s supposed fast developpement abilities! ah! ah!;)

This post what interessing in that regard, to see a few exemple of different languages for the same very simple problem.

The solution someone posted in Basic (i havent check if it’s valid) was to me the best exemple of how someone should answer such question in a interview (on paper), “pseudo-code” style:

for i = 1 to 100
if i mod 3 = 0 then print “Fizz”
if i mod 5 = 0 then print “Buzz”
if i mod 3 > 0 and i mod 5 > 0 then print str$(i)
next

(the str$ is a bit horrible… but it’s still readable overall)

Reading some of the other samples, it’s no surprise so much of the developpers have to work at night to get their job done! 🙂

402. :l: / Obfuscated FizzBuzz - June 26, 2008

[…] I read the original fizzbuzz article, I have suggested it to a couple people as an interview question and it seems to do its job as a […]

Eric's avatar 403. Eric - June 28, 2008

“:l: / Obfuscated FizzBuzz”

I’m not sure what you have understanded better than everyone else!

Just for the fun of it (the basic version of the other guy was bad):

This version in realbasic has around 189 tokens (wich include all the formatting characters for indentation (realbasic autoformat), scope correct variable declaration and also valid output (at least to what i understand — the description of the problem doesnt specify if the print had to be on a new line, the code could be shorter otherwise!). Even with a logical hack/optimisation, it’s still readable!

dim i as integer
for i = 1 to 100
dim t as string
if i mod 3 = 0 then t=t+”Fizz”
if i mod 5 =0 then t=t+”Buzz”
if t=”” then
t= str(i)
end if
print t
next

Still shorter than your obfuscated version (around 216 chars)…. :b

And in Macromedia lingo, from memory as i dont have the environnement:

repeat with i from 1 to 100
t=””
if i mod 3 = 0 then t=t&”Fizz”
if i mod 5 =0 then t=t&”Buzz”
if t=”” then
t= i
end if
put t
end repeat

Wang-Lo's avatar 404. Wang-Lo - July 10, 2008

That’s not a short program. THIS is a short program:

Digital Equipment Corporation PDP-8 FIZZBUZZ program:
118 12-bit words (equivalent to 177 modern 8-bit bytes)
ON THE BARE METAL INCLUDING THE DEVICE DRIVER!
These 118 words are the only ones that need to be in
the entire computer — no OS, no BIOS, nothing else.

And this is on a CPU that not only doesn’t have a FPP,
it doesn’t even have hardware multiply and divide.
In fact, it doesn’t even have a SUBTRACT instruction.

So don’t be telling me about your “short” 80-byte
scripts that can only live in a 256MB OS with a
runtime library the size of a two-car garage. Punks.

/ FIZZBUZZ PROGRAM COPYRIGHT 2008 WANG-LO

* 200 / STANDARD START LOC

/ ****** THE MAIN PROGRAM ******

CLA
TLS

DCA IVALUE / PRESET DISPLAY VALUE
CLA CLL CMA RTL / PREP MOD 3 SIEVE
DCA MOD3CT
TAD M5 / PREP MOD 5 SIEVE
DCA MOD5CT
TAD M100 / PRESET LOOP COUNTER
DCA LOOPCT

MAINLP, ISZ IVALUE / DISPLAY 1..100 NOT 0..99
ISZ MOD3CT
JMP NOTM3 / ITS PLAIN OR BUZZ
CLA CLL CMA RTL / ITS FIZZ OR FIZZBUZZ
DCA MOD3CT / RESET MOD 3 SIEVE
ISZ MOD5CT
JMP NOTM5 / ITS FIZZ
TAD M5 / ITS FIZZBUZZ
DCA MOD5CT / RESET MOD 5 SIEVE
JMS PRTEXT
106 / F
151 / i
172 / z
172 / z
142 / b
165 / u
172 / z
172 / z
0
JMP DONELP

NOTM5, JMS PRTEXT
106 / F
151 / i
172 / z
172 / z
0
JMP DONELP

NOTM3, ISZ MOD5CT
JMP NOTANY / ITS PLAIN
TAD M5 / ITS BUZZ
DCA MOD5CT / RESET MOD 5 SIEVE
102 / B
165 / u
172 / z
172 / z
0
JMP DONELP

NOTANY, TAD IVALUE
JMS PRNUMB

DONELP, JMS PRCRLF / ONE INERATION PER LINE
ISZ LOOPCT
JMP MAINLP
HLT / STOP
JMP .-1 / STOP MEANS DONT GO AGAIN

M100, 7634 / NUMBER OF LINES TO PRINT
M5, 7773

IVALUE, 0
MOD3CT, 0
MOD5CT, 0
LOOPCT, 0

/ ***** THE RUNTIME LIBRARY *****

/ PRINT A POSITIVE INTEGER (IN RANGE 0..4095)
PRNUMB, 0
DCA SVNUMB / SAVE VALUE TO BE PRINTED
DCA LZFLAG / CLEAR LEADING-ZERO FLAG
JMS PRDDGT / 1ST DGT IF NOT LEADING ZERO
6030 / -1000
JMS PRDDGT / 2ND DGT IF NOT LEADING ZERO
7634 / -100
JMS PRDDGT / 3RD DGT IF NOT LEADING ZERO
7766 / -10
TAD SVNUMB / 4TH DGT
TAD KA0
JMS PRCHAR
JMP I PRNUMB
PRDDGT, 0
DCA NUMBCT / CLEAR DIGIT VALUE
PRDGLP, TAD I PRDDGT / SUB DGT WGT FROM NUM VALUE
TAD SVNUMB
SPA
JMP PRDGEX / TOO FAR — GO PRINT
ISZ NUMBCT / COUNT WGT-SUBTRACTION
DCA SVNUMB / RESTORE DIMINISHED VALUE
JMP PRDGLP
PRDGEX, CLA / DISCARD OVERDIMINISHED VAL
TAD NUMBCT / EXAMINE WGT-SUBTR COUNT
SZA
JMP PRDGDO / NOT ZERO — PRINT IT AND SET FLAG
TAD LZFLAG / ZERO — FLAG SET?
SZA
JMP PRDRTN / NO, LEADING ZERO — DONT PRINT
PRDGDO, TAD KA0 / YES — PRINT IT
JMS PRCHAR
ISZ LZFLAG / SET LEADING-ZERO FLAG
PRDRTN, ISZ PRDDGT / EXIT @+1
JMP I PRDDGT
KA0, 60
SVNUMB, 0
LZFLAG, 0
NUMBCT, 0

/ PRINT A TEXT MESSAGE (IMMED Z-TERM 7BIT ASCII)
PRTEXT, 0
TAD I PRTEXT / GEXT NEXT TEXT LEXT
ISZ PRTEXT
SNA / TEXT MUST END WITH ZERO
JMP I PRTEXT / RETURN TO LOC AFTER TEXT
JMS PRCHAR
JMP PRTEXT+1

/ PRINT END OF LINE
PRCRLF, 0
TAD K15 / CR
JMS PRCHAR
TAD K12 / LF
JMS PRCHAR
JMP I PRCRLF
K15, 15
K12, 12

/ ****** PRINTER DEVICE DRIVER ******

PRCHAR, 0
PSF
JMP .-1
PLS
CLA / SOME LPT DONT CLR AC
JMP I PRCHAR

Eric's avatar 405. Eric - July 16, 2008

And how do you pull that during a one hour interview? :b

Colin Alston's avatar 406. Colin Alston - August 7, 2008

Discrete logic plus listcomp in Python.

[ (i%3 or i%5) and (i%3 and (i%5 and i or ‘Buzz’) or ‘Fizz’) or ‘Fizz-Buzz’ for i in range(1,101)]

407. TXGruppi » Archive » Teste seus códigos de qualquer lugar - August 11, 2008

[…] this paste permanently”. O site também tem exemplos de “Hello World” e “Fizz-Buzz” em cada linguagem. Outra funcionalidade é a criação de uma página para projetos, a mais […]

TheDude's avatar 408. TheDude - September 8, 2008

Script Injection Alert!

JB's avatar 409. JB - September 15, 2008

The next questions should be….

OK, now it’s tomorrow and the customer is changing the requirements…

Now change it so that you can add support for any foreign language translation of “Fizz”, “Buzz” or “FizzBuzz”. It should accept languages that are read right-to-left (Hebrew) or require double byte character sets (Chinese).

And be sure to write it so that the number doesn’t need to be 100 but needs to be a positive integer. Wait, the customer just changed this as we were talking, it needs to be prime. Wait…..change that requirement to be a prime that is inferred from a message sent by another system at random intervals…..

markus's avatar 410. markus - September 15, 2008

@ 401. Eric

You talk crap, but your program would seem to print fizzbuzz fizz-buzz on 15. You lose the interview.

recursive's avatar 411. recursive - September 16, 2008

@ 410. markus

How are you getting that? It only prints one of each of “fizz” and “buzz” for 15.

Bill G's avatar 412. Bill G - September 18, 2008

I couldn’t see vbscript version – so here goes from rusty memory:

Option Explicit

Dim i

For i = 1 to 100
If i Mod 15 = 0 Then
Response.Write “FizzBuzz”
Else
If i Mod 3 = 0 Then
Response.Write “Fizz”
ElseIf i Mod 5 = 0 Then
Response.Write “Buzz”
Else
Response.Write i
End If
End If
Next

Do I win a prize for the longest snippet?

Bill G's avatar 413. Bill G - September 18, 2008

Snippet envy??

414. Why So Confused? « learning the art of programming - September 27, 2008

[…] its syntax and write non-trivial programs in a week. I need to learn to do simple things first like Fizzbuzz and then go for the smaller challenges in Project Euler and then onto bigger […]

Mediocre-Ninja.blogSpot.com's avatar 415. Mediocre-Ninja.blogSpot.com - October 17, 2008

#fizzbuzz.rb
a = nil, ‘fizz’, ‘buzz’, ‘fizzbuzz’
1.upto(100) { |a[0]| puts a[(a[0]%3 == 0 ? 1 : 0) + (a[0]%5 == 0 ? 2 : 0)] }

Arun Saha's avatar 416. Arun Saha - October 27, 2008

I would do the following implementation. Its little lengthy than some other already posted, but it
– is eaxy to extend e.g. “Jazz” for multiples of 7
– does not use modulo operator, which “may” be expensive

void
fizzbuzz() {

unsigned int i, nextFizz = 3, nextBuzz = 5, situation;

for( i = 1; i <= 100; i++ ) {

situation = 2 * ( i == nextBuzz ) + ( i == nextFizz );

switch( situation ) {
case 3:
printf( “FizzBuzz\n” );
nextFizz += 3;
nextBuzz += 5;
break;

case 2:
printf( “Buzz\n” );
nextBuzz += 5;
break;

case 1:
printf( “Fizz\n” );
nextFizz += 3;
break;

case 0:
printf( “%u\n”, i );
break;
}
}
}

Erik's avatar 417. Erik - November 6, 2008

C
C FIZZBUZZ IN FORTRAN IV
C
IMPLICIT INTEGER (I-N)
DO I = 1, 100
IF (MOD(I,3).EQ.0) WRITE(1,10)
IF (MOD(I,5).EQ.0) WRITE(1,20)
IF ((MOD(I,3).NE.0).AND.(MOD(I,5).NE.0)) WRITE(1,30) I
WRITE(1,40)
CONTINUE
STOP
10 FORMAT(‘FIZZ’,Z)
20 FORMAT(‘BUZZ’,Z)
30 FORMAT(I3,Z)
40 FORMAT(”)
END

Eric's avatar 418. Eric - November 19, 2008

@410. markus

The code on 401 was not mine!

@403 is doing the job exactly like it should.

“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”.”

In fact, i even tested the algorithm in Actionscript:

var tString:String;

for (var i:Number=1;i <=100; i++)
{
tString=””;
if (i%3==0)tString=tString+”Fizz”;
if (i%5==0)tString=tString+”Buzz”;
if (tString==””) tString=String(i);

trace(tString);

}

The output being:

11
Fizz
13
14
FizzBuzz
16
17

So, YOU talk crap! Waiting for your code answer! ah! ah! 🙂

419. Ablog » FizzBuzz Improved - November 24, 2008

[…] I explain how and why we make prospective hires write code on a whiteboard. In a similar vein, Imran on Tech posts about making developers write FizzBuzz. Several of us read the article, got caught in the, “Huh? That doesn’t sound hard. Let […]

420. Test Your Might! « Software Bloat - November 30, 2008

[…] than one language may be appropriate, they choose the most expressive language available. Consider The FizzBuzz Problem (a simple “weed-out” problem given to interview candidates) which has been stated […]

421. practice « Dion’s Weblog - December 8, 2008

[…] Here’s the infamous FizzBuzz: […]

Lithping Lambda's avatar 422. Lithping Lambda - December 24, 2008

1. Mmm.. I did not see immediately how to do it in a roundabout and convoluted way while using some intricate programming techniques (that’s what this challenge was about, right?)

But finally I made it, I made it marginally more convoluted, like this: Code:

#!/usr/local/bin/newlisp

(for (x 1 100 1)
(or
(and (set ‘three (= 0 (% x 3))) (println “Fizz”))
(and (= 0 (% x 5)) (or
(and three (println “FizzBuzz”))
(println “Buzz”) ))
(println x)
)
)
(exit)

2. .. but then thought again. The true corporate solution would be this:
Code:

(println 1)
(println 2)
(println “Fizz”)
(println 4)
(println “Buzz”)
(println “Fizz”)
(println 7)

Note to the team leader: “please forward this code to a junior member of the team to complete typing”

Note to the manager: “I have submited perfectly working code which should meet all deadlines. The team will be working on the next version as time permits to improve satisfaction in case of customer requests for number of items other than one hundred”

3. OOP.
By the time work on the second version started, however, it was mandated that all code followed the Object Oriented Paradigm.
So, in accordance with the principle that objects reflect real life entities, the program now generates 100 “Child_player” objects, which are passed request_messages from the Game_Master object (the supervisor pattern?). Each of the objects’ reply to the Fizz-Buzz question is then collected and formatted centrally for dispatch to the expernal requesting entity.

..mmm working on it.

4. Just got an e-mail from the management.
Version 3 is supposed to be a network distributed solution. Each of the 100 children objects will be converted to a freely-flying persistent network agent, which maintain their internal state and are able to change their chairs so to say, while still engaged in the game. Results are to be sent to a company overseas branch and support integrity checking and strong encryption

Help!

5. FINALLY: A truly geeky solution.

.. but there was in this company in the farthest corner of the room where all programmers sat a tiny office, and it was occupied by an old grumpy unix geek, who was actually the company system administrator.
As his servers buzzed on for the third year without a single reboot and his monitoring scripts notified him of the problems about 15 minutes before they hit, he had all the time on his hands to play with his favourite geeky toys. And one of such toys was functional programming.

So in half the time it took the company testing department to discover that typo in the customer report which turned an innocuous phrase into a grossly indecent one (slashing the company revenues and resulting in a couple of lawsuits by enraged budgerigar owners, all luckily settled out of court), he produced his own truly functional solution to the Fizz-Buzz problem.

It ran like this: Quote:

The input stream (potentially infinite, but reduced to the first 100 numbers for the sake of testing) is processed lazily, i.e. one item at a time.
The program runs 2 lazy generators in two coroutines, one spits numbers which are consequtive multiples of 3, the other one bakes multiples of 5 (or any other given numbers). So, once the generator is appropriately kicked, a new member of the virtual “list” is generated, the next multiple to check against.

The main program therefore checks each input value from that (infinite) input stream for _equivalence_ with the current 3-list and 5-list members by ping-ponging to the coroutine.
Once the equivalence is found, the 3-list or 5-list generator(s) lazily produce a next number for comparison.

But, to speed things up and save on the coroutine invocation, the numbers from those lazy generators are of course memoized, thus cutting up the needed time and improving performance

Everyone marvelled at the sight of the sysadmin prog crunching Fizz-Buzzer player numbers in the gazillions and the generality of the solution allowing it not to slow down even if 312345912358 and 512309482093481209358340 were the needed as multiples, but no one understood a thing, and management turned it down as totally unmantainable.

The geek then sligtly changed some output parameters of his script and posted it on the Internet, where it became popular as a computer game called “Squash the Bill”.

Has anyone seen it recently? Could you post the source code here?

Timothy Andrew's avatar 423. Timothy Andrew - December 29, 2008

Jacob,
You can swap two variables without a third variable.

(if the variables are a & b)

a = a+b
b = a-b
a = a-b

Unknown's avatar 424. My journey, Part 2 « Tekkie - December 29, 2008

[…] as an aside, I was alarmed to read Imran’s article in 2007 about using FizzBuzz to interview programmers, because the problem he posed was so simple, yet he said ”most computer science graduates […]

425. Derek Illchuk » The Venerable FizzBuzz Problem - December 30, 2008

[…] at Imran on Tech, they presented a problem which they say stumps many comp sci. graduates (although, I have yet to […]

Riaan de Lange's avatar 426. Riaan de Lange - December 31, 2008

using System;
using System.Collections.Generic;
using System.Text;

namespace FizzBuzzConsoleCS
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i <= 100; i++)
{
bool fizzbuzz3 = false;
bool fizzbuzz5 = false;
bool fizzbuzz35 = false;

fizzbuzz3 = (i % 3 == 0);
fizzbuzz5 = (i % 5 == 0);
fizzbuzz35 = (i % 3 == 0) && (i % 5 == 0);

if (fizzbuzz35)
Console.WriteLine(“{0}\t: FizzBuzz”, i.ToString());
else
if (fizzbuzz3)
Console.WriteLine(“{0}\t: Fizz”, i.ToString());
else
if (fizzbuzz5)
Console.WriteLine(“{0}\t: Buzz”, i.ToString());
else
Console.WriteLine(i.ToString());
}
Console.ReadLine();
}
}
}

Samuli K's avatar 427. Samuli K - January 13, 2009

Me too! 🙂 65 bytes in PHP:
for(;++$i<101;)echo($i%15?$i%5?$i%3?$i:”fizz”:”buzz”:”fizzbuzz”);

Samuli K's avatar 428. Samuli K - January 13, 2009

…and by exploiting PHP it can be done in 59 bytes 🙂
for(;++$i<101;)echo($i%15?$i%5?$i%3?$i:fizz:buzz:fizzbuzz);

429. Fizz Buzz: Can You Do It? : Jesse Dearing.com - January 20, 2009

[…] am surprised to read that people cannot do Fizz Buzz in an interview[1][2][3]. As a test to myself I just wrote Fizz Buzz in SQL, which I don’t know very much SQL and I used […]

cnb's avatar 430. cnb - January 22, 2009

plain english algorithm:
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”.

for each i from 1 to 100
if i is divisible by both 3 and 5 print fizzbuzz
else if i is divisible by 3 print fizz
else if i is divisible by 5 print buzz
else print i
end-for

Unknown's avatar 431. Top 10 Questions to Ask Senior DBA job candidates | Brent Ozar - SQL Server DBA - January 22, 2009

[…] Here’s a quote of the FizzBuzz problem: […]

Michael B's avatar 432. Michael B - January 27, 2009

“@ Jacob I can do it without using a 3rd variable and in only 3 lines (your *How fast they do it* issue)

X=2, Y=5

x=x+y \* x=7 *\
y=x-y \* y=2 *\
x=x-y \* x=5 *\

x=5, y=2 (Hence done…)

But you would just turn me down if i presented you with this solution.

how the hell is the interviewee supposed you want him to use a 3rd variable if he knows a better way of doing it? He is supposed to read your mind?

Anyway, sorry for the disturbamce.”
now try it for X=Integer.Max and Y=1

As for the XOR solution:
http://en.wikipedia.org/wiki/XOR_swap_algorithm#Reasons_for_avoidance_in_practice
(yes I had to look part of that up but I knew it didn’t work as would be expected) I suppose youu could defend against two equal values but hey..

tbh if I come across it in an interview I would either have a vote of miss-confidence or if I was the one who was being interviewed: would probably look on.

That line of though would also surfaces with FizzBuzz problem, though I could probably get over it by dismissing it as a root-out method. Just make sure you never pull it on anything but the first interview.

L.'s avatar L. - January 11, 2012

Well .. you’re wrong like so many before you – and it was pointed out before you answered.

Should the variable not be a numeric type, you’d require double conversions … all that to avoid a third variable when you’re obviously not thinking much further than 4 bit integers..

I would be surprised if creating a third variable in registers was slower than doing three basic arithmetic ops … – in a general case of course, not counting corner cases like register is exactly 100% full with a and b or something –

433. Mechanical Engineering Vs. Software Engineering | iLude - January 28, 2009

[…] of plumbing a single family home. This type of plumbing is the  software development equivalent of FizzBuzz. Which is to say that it takes some skill and understanding to do it correctly but overall its not […]

434. Random Thought Experiment - Swapping Variables « Random Code - February 2, 2009

[…] Filed under: General — Neal @ 8:40 am Recently I was reading a post about using a fizzbuzz test to find developers that grok coding.  Some of the comments also talked about using a simple swap test (i.e. swap the values of these […]

435. FizzBuzz in T-SQL - February 3, 2009

[…] Dave posted yesterday about how to solve the Fizz Buzz problem using T-SQL. Definition of FizzBuzz Puzzle : Write a program that prints the numbers from 1 to 100. […]

Dustin's avatar 436. Dustin - February 9, 2009

FWIW, the XOR swap isn’t always the fastest on some systems… It is an old trick that was used for speed-crucial applications back in the ASM days. Most decent compilers can optimize to the fastest compiled solution for a specific target. However, it is a nice trick to know anyway. ^_^

I am actually surprised to see so many Python and Ruby solutions though. It’s nice to see! ^_^

bbizbor's avatar 437. bbizbor - February 17, 2009

Поставте антиспам

esteve's avatar 438. esteve - February 19, 2009

What did we learn recursion in the University for?

In the old good Pascal:

procedure fizzBuzz(min,max,mod3,mod5:integer);
begin
if (min>max) then EXIT;
if (mod3=0) then write(‘Fizz’);
if (mod5=0) then write(‘Buzz’);
if (mod3*mod50) then write(min);
fizzBuzz(min+1,max,(mod3+1) mod 3, (mod5+1) mod 5);
end;

you can call it fizzBuzz(1,100,1,1)

FizzBuzz for Speccy's avatar 439. FizzBuzz for Speccy - February 26, 2009

For fun, there’s a ZX Spectrum BASIC version:

10 LET fizz = 0
20 LET buzz = 0
30 FOR i = 1 to 100
40 LET disp = 0
50 LET fizz = fizz + 1
60 LET buzz = buzz + 1
70 IF fizz = 3 THEN GO SUB 200
80 IF buzz = 5 THEN GO SUB 300
90 IF disp = 0 THEN PRINT i
100 IF disp = 1 THEN PRINT “Fizz”
110 IF disp = 2 THEN PRINT “Buzz”
120 IF disp = 3 THEN PRINT “FizzBuzz”
130 NEXT i
140 STOP
200 LET fizz = 0
210 LET disp = disp + 1
220 RETURN
300 LET fizz = 0
310 LET disp = disp + 2
320 RETURN

… and the exact implementation in ZX Spectrum ASM (BIN is only 105 Bytes!?):

; For the loader:
; 10 CLEAR 32768
; 20 LOAD “” CODE
; 30 RANDOMIZE USR 32768

org $8000 ; 32768

start

; B = Loop
; C = Number in 2 digits
; D = Fizz
; E = Buzz
XOR A
LD C, A
LD D, A
LD E, A
LD B, 100
loop:
; Increment C and adjust decimal
LD A, C
ADD A, #1
DAA
LD C, A
; Increment Fizz & Buzz
INC D
INC E
; Reset H (for output select)
LD H, 0
; Check if Fizz go over 3
LD A, D
CMP 3
JR NZ, skipfizz
SET 0, H ; H = H | 1
LD D, 0
skipfizz:
; Check if Buzz go over 5
LD A, E
CMP 5
JR NZ, skipbuzz
SET 1, H ; H = H | 2
LD E, 0
skipbuzz:
; Display the text
LD A, H
CMP 0
JR Z, printnum
BIT 0, H
CALL NZ, printfizz
BIT 1, H
CALL NZ, printbuzz
enddisplay:
LD A, $0D ; Enter Key
RST 16
DJNZ loop
RET
;
; Print “Fizz”
printfizz:
LD A, $46 ; F
RST 16
LD A, $69 ; i
RST 16
LD A, $7A ; z
RST 16
LD A, $7A ; z
RST 16
RET
; Print “Buzz”
printbuzz:
LD A, $42 ; B
RST 16
LD A, $75 ; u
RST 16
LD A, $7A ; z
RST 16
LD A, $7A ; z
RST 16
RET
; Print number in register C as 2 digits
printnum:
LD A, C
AND $F0
SRL A
SRL A
SRL A
SRL A
JR Z, skipd2zero
ADD A, $30
RST 16
skipd2zero:
LD A, C
AND $0F
ADD A, $30
RST 16
JR enddisplay

end start

Upendra's avatar 440. Upendra - March 5, 2009

In clasicc VB (VB6):

For i=1 to 100
If i Mod 3=0 and i mod 5 =0 then
debug.print “FizzBuzz”
elseif i Mod 3 = 0 then
debug.print “Fizz”
elseif i Mod 5 =0 then
debug.Print “Buzz”
else
debug.Print i
end if
Next i

daveb78's avatar 441. daveb78 - March 27, 2009

Oracle SQL:

select coalesce(
decode(mod(0+rownum,3) + mod(0+rownum,5),0,’fizzbuzz’,null),
decode(mod(0+rownum,3),0,’fizz’,null),
decode(mod(0+rownum,5),0,’buzz’,null),
to_char(0+rownum))
from dual connect by 0+rownum <= 100;

eskous's avatar eskous - September 10, 2010

How about these?

Oracle SQL:

— The best?
SELECT NVL(DECODE(MOD(ROWNUM,3),0,’Fizz’)||DECODE(MOD(ROWNUM,5),0,’Buzz’),ROWNUM) FROM DUAL CONNECT BY ROWNUM<101;

— As short as the previous one.
SELECT NVL(SUBSTR('Fizz',5*MOD(ROWNUM,3))||SUBSTR('Buzz',5*MOD(ROWNUM,5)),ROWNUM) FROM DUAL CONNECT BY ROWNUM<101;

— A clear idea.
SELECT DECODE(INSTR(MOD(ROWNUM,3),0)||INSTR(MOD(ROWNUM,5),0),1,'Buzz',10,'Fizz',11,'FizzBuzz',ROWNUM) FROM DUAL CONNECT BY ROWNUM<101;

— An obscure idea.
SELECT DECODE(MOD(MOD(ABS(4*MOD(ROWNUM,15)-30),9),6),0,'Fizz',1,'Buzz',3,'FizzBuzz',ROWNUM) FROM DUAL CONNECT BY ROWNUM<101;

gork's avatar 442. gork - March 27, 2009

doods
it’s simple math
simple math
with simple probelm solving abilities

why is everyone hung up on this shit with tweaking the most functionality out of the smallest amount of code?

you all remind me of the guitar masturbators who listen to led zep and jimi hendrix over and over again and talk about it all the freaking time

hell
i got into computer programming to use the computer as a tool to solve problems and make money….

did you get into it so you could memorize the latest ROR shit?

if i interviewed half of you i would tell you to fuck off
i want to know if you can SOLVE the problem
not interested in your single minded ability to code in language X

these tests are for stupid dumb asses who need some sort
of measure of ability to think – geez sounds like a god damn IQ test

Anonymoose's avatar 443. Anonymoose - March 27, 2009

You got that right, G0rk not like probelm [sic]. And no, G0rk not show hairdo, either.

G0rk do just fine teach self Visalu Basic in 21 Day, k-thx-bye.

Anonymoose's avatar 444. Anonymoose - March 27, 2009

Oops. Srry about typo. G0rk Mean Visula C+ in 21 Day.

a's avatar 445. a - March 27, 2009

ug, me gork. me no like programming test. makes brain hurt.

jkua's avatar 446. jkua - March 27, 2009

MATLAB!

i = (1:100)’;
div1 = 3;
div2 = 5;
string1 = ‘Fizz’;
string2 = ‘Buzz’;

str1len = length(string1);
str2len = length(string2);
maxNumLen = length(int2str(i(end)));
output = repmat(‘ ‘, size(i, 1), max(str1len + str2len, maxNumLen));

mod1 = mod(i, div1) == 0;
mod2 = mod(i, div2) == 0;
output(:,1:maxNumLen) = num2str(i, ‘%d’);
output(mod1,1:str1len) = repmat(string1, sum(mod1), 1);
output(mod2,1:str2len) = repmat(string2, sum(mod2), 1);
output(mod1 & mod2,1:str1len + str2len) = repmat([string1 string2], sum(mod1 & mod2), 1);
disp(output);

OakdaleFTL's avatar 447. OakdaleFTL - March 28, 2009

…I admit, I didn’t read all of these comments: But isn’t it a little scary, how many posters were unaware of how the commenting system would parse their code?

L.'s avatar L. - January 11, 2012

Well .. If I had to choose between someone who knows htmlspecialchars by heart, and someone who knows how to code .. it’d be damn quick.

While from a web standpoint (and yes the future is going to be full of webapps – that need a real backend not in PHP though) it looks ridiculous that someone would not realize &gt was the culprit (see what I did there 😉 ) – it’s just webdev knowledge.

So yeah . might look like total fail but that doesn’t mean thing when you’re looking for a real coder and not just a php-drone.

Gary's avatar 448. Gary - March 28, 2009

Ok, here is my solution for Excel:
Populate cell A1 with the value 1
Populate the cell B1 with the following formula:
=IF(MOD(A1,15)<>0,IF(MOD(A1,5)<>0,IF(MOD(A1,3)<>0,A1,”Fizz”),”Buzz”),”FizzBuzz”)
Drag fill cells A1 and B1 down to row 100.

Brien Malone's avatar 449. Brien Malone - March 30, 2009

Just for laughs… ColdFusion

#fbout#

Brien Malone's avatar 450. Brien Malone - March 30, 2009

OakdaleFTL — most commenting systems are smart enough to parse it for you, offer code blocks or at the very least a preview. Oh well… here’s my second post.

<cfloop from=”1″ to=”100″ index=”fbidx”>
<cfset fbout=””>
<cfif fbidx mod 3 eq 0><cfset fbout=”fizz”></cfif>
<cfif fbidx mod 5 eq 0><cfset fbout=”#fbout#buzz”></cfif>
<cfif fbout eq “”><cfset fbout=fbidx></cfif>
<cfoutput>#fbout#</cfoutput>
</cfloop>

Celandro's avatar 451. Celandro - April 1, 2009

450 posts and not a single good generic implementation? Written in 10 minutes and handles future requests from your pointy haired boss

import java.util.LinkedHashMap;
import java.util.Map;

public class FizzBuzz {
Map moduloStringMap;
int start;
int end;
public FizzBuzz (Map moduloStringMap, int start, int end){
this.moduloStringMap = moduloStringMap;
this.start = start;
this.end = end;
}
public String getModuloString(int num) {
String retval = “”;
for (Map.Entry e:moduloStringMap.entrySet()) {
if (num%e.getKey() == 0) {
retval += e.getValue();
}
}
if (retval.length()== 0) {
retval = Integer.toString(num);
}
return retval;
}
public void printAll() {
for (int i=start; i<=end; i++) {
System.out.println(getModuloString(i));
}
}
public static void main (String[] args) {
Map moduloStringMap = new LinkedHashMap();
moduloStringMap.put(3,”Fizz”);
moduloStringMap.put(5,”Buzz”);

FizzBuzz buzzKill = new FizzBuzz(moduloStringMap,1,100);
buzzKill.printAll();

}

}

452. Notatnik zapisywany wieczorami - April 6, 2009

Bajka o programującym durniu…

W Krainie Szczęśliwych Projektów wróżka Marketingalia szepce
menedżerom do ucha bajkę o cudownych narzędziach. O IDE, frameworkach,
generatorach aplikacji albo językach programowania, które pozwolą byle
durniowi sprawnie pisać formatki, raporty czy ekr…

Christopher Oliver's avatar 453. Christopher Oliver - April 15, 2009

int main(int argc, char *argv[]) {
int n;
char *fb[] = {“%d\n”, “%d Fizz\n”, “%d Buzz\n”, “%d FizzBuzz\n”};

for (n = 1; n <= 100; n++) {
printf(fb[(n % 3 == 0) + 2 * (n % 5 == 0)], n);
}
}

Christopher Oliver's avatar 454. Christopher Oliver - April 15, 2009

Rats. Forgot the error code. Imagine I wrote “return 0;” as the last statement of the outer block. [growl!]

just me's avatar 455. just me - April 17, 2009

CREATE Table tblInt( anInteger int)
insert into tblInt values (0)
insert into tblInt values (1)
insert into tblInt values (2)
insert into tblInt values (3)
insert into tblInt values (4)
insert into tblInt values (5)
insert into tblInt values (6)
insert into tblInt values (7)
insert into tblInt values (8)
insert into tblInt values (9)

Select
“result” =
CASE
WHEN (ones.anInteger
+ (tens.anInteger*10) + 1)%15 = 0 THEN ‘FizzBuzz’
WHEN (ones.anInteger
+ (tens.anInteger*10) + 1)%3 = 0 THEN ‘Fizz’
WHEN (ones.anInteger
+ (tens.anInteger*10) + 1)%5 = 0 THEN ‘Buzz’
ELSE CONVERT(VARCHAR(10),(ones.anInteger
+ (tens.anInteger*10) + 1))
END
from tblInt as ones
CROSS JOIN tblInt as tens
order by ones.anInteger
+ (tens.anInteger*10)

DROP TABLE tblInt

Unknown's avatar 456. Getting an education in America « Tekkie - April 26, 2009

[…] started hearing accounts of CS graduates who can (not) (program). Around the same time I was hearing complaints from universities about the inadequate […]

Christopher Oliver's avatar 457. Christopher Oliver - April 28, 2009

Actually, my problem seems to be not reading the instructions. Bah!
Once more with feeling:

int main(int argc, char *argv[]) {
int n;
char *fb[] = {”%d\n”, “Fizz\n”, “Buzz\n”, “FizzBuzz\n”};

for (n = 1; n <= 100; n++) {
printf(fb[(n % 3 == 0) + 2 * (n % 5 == 0)], n);
}
return 0;
}

Brad Mason's avatar 458. Brad Mason - April 30, 2009

This can all be done in 1 query.

SELECT TOP 100
CASE
WHEN (ROW_NUMBER() over(order by c.object_id) % 15) = 0
THEN ‘fizzbuzz’
WHEN ROW_NUMBER() over(order by c.object_id) % 3 = 0
THEN ‘fizz’
WHEN ROW_NUMBER() over(order by c.object_id) % 5 = 0
THEN ‘buzz’
ELSE cast(ROW_NUMBER() over(order by c.object_id) as varchar(100))
END
FROM sys.objects o cross join sys.columns c

Unknown's avatar 459. The Fizzbuzz problem « Harder, Better, Faster, Stronger - May 12, 2009

[…] a lot of programmers can’t get it right in a very few minutes. In fact, that’s what Imran claims. Quoting from his blog: Want to know something scary ? – the majority of comp sci […]

David Welford-Costelloe's avatar 460. David Welford-Costelloe - May 17, 2009

Well I don’t agree with this test, having a developer write on paper is not the solution. Developers (the good ones) work on the keyboard. To test math skills does not weed out the good from the bad. I once interviewed someone who could write amazing things on paper, put them into an IDE and they were lost. There are the memorizers as a call them… they can spill out every definition for a language. I have been developing for 16 years and I refuse to take these stupid tests that are snippets from Microsoft certification exams. If you read my resume and see the amount of experience I have don’t insult me with ‘what is a sql join’ or what is a variable. My rule is: I don’t take written tests if I want to be a writer I’ll study to be one.

I asked as part of the interview to bring in a sample application nothing fancy a simple application to input and output text. I look at the source and that is it. If it doesn’t build end of interview.

One question I ask is:
“You are stuck on a method, what help options do you use?”

🙂

Frustrated.'s avatar 461. Frustrated. - May 28, 2009

I have to agree that the majority of people in this day and age (at least in the lower to mid echelons) aren’t hired because they are geniuses in a field, but because they know where to go to seek assistance. I’d say more points should be awarded to knowing when they need to ask for help (or Google it). I’d rather have an engineer who knows his limits than one who thinks they know it all.

To reply to an earlier comment (George – February 2, 2007), “how to tell if you’re a bad programmer” –

Quote:
* Extra points if you avoid this by pretenting to do “design” before coding, and you just produce tons of documents and UML diagrams without ever touching the keyboard and leaving the dirty work of implementing your designs to other people.

* You do programming for money; doing it as a hobby (for fun!) is something that only madmen do.

I have to say, this is a prime example of the IT world’s complete departure from well-formed English. People “do” programming or design as much as someone “architects” a solution. This is a continuation of the complete butchery of the language. You either are a programmer or you aren’t. You don’t “do” it nor does one “do” design. You either are an architect or you aren’t, you don’t “do” it, and you don’t “architect” anything. There is architecture, and architectural, but it’s not a verb.

My point is that if you’re going to start bashing down the lesser competent people in your industry, rather than lending assistance or providing training opportunities to help bring them up to your standards (gasp!), first demonstrate basic mastery of the language you’re bashing them in. You look quite silly otherwise.

( / rant )

buzzyteam's avatar 462. buzzyteam - May 29, 2009
wagied davids's avatar 463. wagied davids - June 27, 2009

Hi All,

Interesting posts. I have come across this phenomenon in academia and industry. However, it seems to be worse in academia!…hahaha.
My previous post-doctoral supervisor hailing from Yale working in Toronto, could not write code to save his life. We are in the field of computational biology.

I have seen educated people stare at computer screens similar to writers stare at blank pages. However, I would not call this a case of “writers-block”…but simple inexperience at a practical implementation of theoretical principles.

I have met very few people in my career that are all good-rounders ..they handle the math, the algorithms, the design and coding, as well as the artistic side of visual design. In academia, I have not met any.

In industry, the tempo ..is alot more fast paced, and your job is at risk. The incentive to get things done is a good motivation. In academia I have seen educated people sitting on projects for more than 6-9 months for a 3 month project, and I am not reffering to graduates with BSc, but MSc and PhDs in both countries that I have lived and worked (Canada and Sweden).

Possessing a large body of theoretical knowledge, however does not make a good programmer. Too much of their time is spent analyzing and predicting a result, when a computer can do the work in a few seconds to get a result.

What people in industry are looking for is a good combination of skills ranging from theoretical knowledge and practical skills but also multi-tasking abilities.

In some sense, a juggler who “thinks on his/her” feet while juggling balls. Those are the ones that are very few.

Michael's avatar 464. Michael - June 28, 2009

George, your Forth version is horrible and you’re making the rest of us Forthwrights look bad.

: fizz ( n — ? ) 3 MOD IF FALSE EXIT THEN TRUE .” Fizz” ;
: buzz ( n — ? ) 5 MOD IF FALSE EXIT THEN TRUE .” Buzz” ;
: bazz ( n ? — ) IF DROP EXIT THEN . ;
: fizzBuzz ( n — ) CR DUP fizz OVER buzz OR bazz ;
: fizzBuzzes ( n — ) 1+ 1 DO I fizzBuzz LOOP ;

100 fizzBuzzes

Dexter Garvey's avatar 465. Dexter Garvey - July 4, 2009

We have an application under development for the iPhone designed to answer silly questions just like this for job hunters.

The best hire isn’t always someone who can pull answers like this out of thin air, more likely it’s someone who can find and understand an appropriate answer found on Google.

WTF re-invent the wheel?

:l:'s avatar 466. :l: - July 9, 2009

@403
I “understanded” it just fine. The point of the question was to weed out people who can’t program, I think all the people doing naive implementations are only proving that they can get past a simple phone-screen question. I did the obfuscated version “just for fun” because a naive answer is trivial to the point of not being worth doing. A simple perl implementation is shorter than the obfuscated one. I was playing perl-obfuscation, not perl-golf.

@465
This is not a “pull out of the air” question. If you can’t loop or figure out when something divides by 3 or 5 you should be in an entirely different industry, an iPhone app wont give you competence. If I were interviewing someone and they said they needed to check the internet to figure it out they would not get past me.

My original comment was:


2 Things strike me about the article and a few of the more common references to it:

1) The commenter’s usually try to implement it.
2) The commenter’s usually try to implement it in visual basic.

I think both miss the point.

Here’s my attempt in perl. I think it would convince a lot of people _not_ to hire me if I gave it as a code sample. Can anyone get it down to 140 charactes (SMS) size? Seems like it should be possible with a few more shortcuts.

@c=(0,4,7,19,24);@e=(4,4);push@b,0,3,@e;push@f,1,2,@e;push@fb,@f,@b;sub x{$_+66};sub z{map(chr,map(x,map($c[$_],@_)))}sub b{z@b}sub f{z@f}sub fb{z@fb}sub p{print@_}for $i(0..shift){$i%15?$i%5?$i%3?p $i:p f:p b:p fb}

(put it in a file called script.pl, run it as ‘/usr/bin/perl -l script.pl 100′

The point was not that this is a programming exercise, the point is to see if the candidate even has a pulse.

T's avatar 467. T - July 17, 2009

wow lots of so smart people out there 😉

To the python and Perl guys who can swap variables without a third one:
What do you think the compiler is doing under the hood when it encounters something like: ($a, $b) = ($b, $a) ?
It will most likely implement a swap algorithm using a third variable. Also the inquiry was about the algorithm used and not a language specific shortcut.

Also these questions are not designed to find out, what a smart ass you can be, but if you can come up with a simple solution for a simple problem.

As for the guys thinking, that they need to provide solutions to the Fizz Buzz problem:
You are almost as pathetic, as the ones that couldn’t do it since you treat it like it is a challenge (which it isn’t).

Sorry if this is too harsh, but seeing makes me sick to my stomach.

stranger's avatar 468. stranger - July 29, 2009

in c without using modulo

void fizzbuzz(){
for (int i=1,j=0,k=0;i<101;j=i-j-3?j:printf("Fizz")+j-1,k=i-k-5?k:printf("Buzz")+k+1,i=i+(!(i-j)||!(i-k)?printf("\n"):printf("%-2d\n",i)-2));
}

469. Interview coding tests should measure more | IT Security | TechRepublic.com - August 20, 2009

[…] answerable questions. A popular subject of debate on the Internet a couple years ago was the FizzBuzz challenge, used to weed out the absolute worst coders applying for a job. Reginald Braithwaite […]

Johnny's avatar 470. Johnny - August 21, 2009

Of course, it’s always those “other programmers” who could not code even if their life depended on it. If I had a dime for every time I heard a programmer criticise another programmer’s code, while acting all superior and knowledgeable, I’d be a millionaire 😉

Sometimes I wonder if people who are quick to label other programmers as weak are projecting some of their own insecurities onto those “weak programmers”. Perhaps those high school years have not been too kind to most of us nerds, so there’s this obsessive need to prove ourselves over and over, even if it just means putting others down.

I wish programmers were more collaborative and less competitive. I mean, this isn’t Math Olympics for 12-year-olds anymore. Or, is it?
It’s amazing how many “turf protectors” I’ve run into in the field of programming/software engineering. I mean, I am the first one to admit there’s a ton of stuff I don’t know, so why is it that some people feel the need to excessively brag and cover their knowledge gaps? It may sound harsh , but, sometimes I feel that programming attracts too many people with Narcissistic Personality Disorder.

471. Glorf IT - Bedenkliches aus dem IT-Alltag » Bewerbern auf den Zahn fühlen - August 24, 2009

[…] Bewerbern auf den Zahn fühlen :Von Thomas: Mein Kollege Peter machte mich auf einen Tests für Bewerber aufmerksam. Man solle Ihnen eine leichte Programmmieraufgabe geben, um die Fähigkeiten des Kandidaten zu erleben. Als Beispiel soll ein Programm die Zahlen von 1 bis 100 ausgeben. Ist die Zahl hingegen durch 3 teilbar, dann statt dessen "Fizz". Ist sie durch 5 teilbar, dann "Buzz". Ist sie aber durch 3 und 5 teilbar, dann "FizzBuzz". Erstmals beschrieben wurde das offenbar im Artikel "Using FizzBuzz to Find Developers who Grok Coding". […]

ryba4's avatar 472. ryba4 - August 31, 2009

If you want to show off your geekness, here’s some python code:

‘, ‘.join([[‘{0}’, ‘Fizz’, ‘Buzz’, ‘FizzBuzz’][(i % 5 == 0) + (i % 3 == 0) * 2].format(i) for i in xrange(100)])

473. The Content Wrangler » Blog Archive » Usability, Mobile Devices, and the Future of Higher Education: Interview with Robby Slaughter - September 6, 2009

[…] designers who have never heard of kerning or affordances, self-professed programmers who can’t code Fuzz-Buzz, methodological “experts” who can neither define sampling nor detect bias, technical writers […]

Don s's avatar 474. Don s - September 8, 2009

I just went through a FizzBuzz test of a kind. They wanted a creative programmer who could whip up & describe a quick architecture on a whiteboard and explain it, so they set me out a problem and had me do just that – in real time, right there. Rough but serviceable.

They also wanted someone who knew his way around an agile environment and how and why. I took it to the whiteboard and diagrammed an xP/agile workflow for them.

Started yesterday, nuff said.

Douglas's avatar 475. Douglas - September 9, 2009

I think that most of your posts and comments on what does a programmer should be able to do are quite wrong because the way nowadays development is carried out, it is completely away from the things like hexadecimal and some based-maths things that you have been talking about.

I think for example, that having knowledge about what base-16 hex is, can be important but not necessarily reflects what nowadays a developer should be able to know.
I think in these modern days, developers should be able to understand things like:
• what is a loop, how to manage things within a loop and what is to avoid within a loop?
• What is pessimistic development approach?
• What is a class?
• What is an object?
• What is an interface?
• Interface’s purpose?
• What is composition?
• What is a Service?
• What is a composite application?
• What are design patterns?
• Differences between script programming and non script programming languages?
• What loose coupling or reducing coupling means?
• What is abstraction?
• How to abstract software component services?
• What is MVC?
• What is a DAO?
• Good knowledge of SQL
• What is a web-container?
• How to provide unit test to your software solution
• What is an Object Factory?
• What is “the so overused” singleton pattern?
• What is integrity of the data?
• What is consistency?
• What is reliability?
• What is portability?
• How to provide flexibility?
• What is a transaction?
• What is a transactional application?
• What is a transaction manager?
• What is ORM?

I could continue listing things that we all should know today, but I am sure you have understood my point.
I mean, there are so many more important topics today to take care about than hexadecimal and other things I’ve read.

Of course, first of all a programmer should be able to provide high quality to their flow of controls and loops too.

This is my view of today programming and I can assure you that if you don’t understand properly the above listed topics, you won’t be able to get a good job.

Many thanks

edspencer's avatar 476. eggspencer - September 17, 2009

for(i=1;i<101;i++){b=i%5;console.log(i%3?b?i:"Buzz":b?"Fizz":"FizzBuzz")}

Unknown's avatar 477. JavaScript FizzBuzz in a tweet : Ed Spencer - September 17, 2009

[…] FizzBuzz challenge has been around a while but I stumbled across it again after reading another unique Giles […]

name's avatar 478. name - September 18, 2009

It’s stupid to expect an experienced programmer to write any code on a paper without mistakes. It’s stupid because everybody is lazy to remember all the syntax, order of the arguments, full names of functions. Programmer almost always do not remember some auto-completable parts (parentheses, includes, long function names, quotes or apostrophes). It’s usually test which would completely discard skilled effective senior programmers and reward a complete newbie who will write the code in M$ Notepad and won’t be even able to compile it.

name's avatar 479. name - September 18, 2009

#include
#include

int main(void)
{
int i;

for (i = 1; i < 101; i++) {
if (!(i % 3 || i % 5))
printf("%d\n", i);
else if (i % 3 && i % 5)
puts("FizzBuzz");
else if (i % 3)
puts("Fizz");
else if (i % 5)
puts("Buzz");
}

return EXIT_SUCCESS;
}

name's avatar 480. name - September 18, 2009

int main(void)
{
int i;

for (i = 1; i < 101; i++) {
if (!(i % 3 || i % 5))
printf("%d", i);
else {
if (i % 3)
fputs("Fizz", stdout);

if (i % 5)
fputs("Buzz", stdout);
}
}

return EXIT_SUCCESS;
}

Fred's avatar 481. Fred - September 28, 2009

#include <stdio.h>

int main(int argc, char **argv){

int i;
for(i=1; i<=100; i++){
if (i%3 == 0) {
if (i%5 == 0) {
printf(“FizzBuzz\n”);
}
printf(“Fizz\n”);
}
else if (i%5 == 0) {
printf(“Buzz\n”);
}
else {
printf(“%d\n”,i);
}
}
return 0;
}

Vince O'Sullivan's avatar 482. Vince O'Sullivan - October 2, 2009

Judging by the replies to this article, 199 out of 200 respondents can’t read!

It’s not about the answer. It’s about the ability to answer. Nothing more.

nofxx's avatar 483. nofxx - October 3, 2009

It should be burried in the middle, but the var swapin’ in Ruby don’t need the 3rd var:

a, b = b, a

Shashi Gowda's avatar 484. Shashi Gowda - October 3, 2009

Shortest Possible FizzBuzz (I think)

// C
main () {
int i;
for(i=1;i<=100;i++)
printf ("%d\r%s%s\n", i, i%3==0?"Fizz":"",i%5==0?"Buzz":"");
}

# ruby
(1..100).each {|i| puts "#{i}\r"+(i%3==0?'Fizz':'')+(i%5==0?'Buzz':'') }

// php
<?php
for($i=1;$i

@Vince O’Sullivan
Elegance’s got to count for something =)

jon's avatar 485. jon - October 5, 2009

I’ll throw in my factor solution just for the fun 🙂

: print-FIZZ-BUZZ ( q — )
{
{ [ dup 15 rem zero? ] [ drop “FIZZ-BUZZ” print ] }
{ [ dup 5 rem zero? ] [ drop “FIZZ” print ] }
{ [ dup 3 rem zero? ] [ drop “BUZZ” print ] }
[ . ]
} cond
;

100 [1,b] [ myprint ] each

jon's avatar jon - October 5, 2009

sry, “myprint” reads “print-FIZZ-BUZZ”, of course

Enc's avatar 486. Enc - October 14, 2009

66 Characters in PHP.
while(++$i%101)echo$i%3?($i%5?$i:’Buzz’):($i%5?’Fizz’:’FizzBuzz’);

Indented it looks like this:
while (++$i%101)
echo $i%3? ($i%5?$i:’Buzz’) : ($i%5?’Fizz’:’FizzBuzz’);

Enc's avatar 487. Enc - October 15, 2009

63 Characters in PHP!

while(++$i%101)echo$i%15?$i%5?$i%3?$i:’Fuzz’:’Buzz’:’FizzBuzz’;

Enc's avatar 488. Enc - October 15, 2009

57 Characters in PHP!

while(++$i%101)echo$i%15?$i%5?$i%3?$i:Fuzz:Buzz:FizzBuzz;

Enc's avatar 489. Enc - October 15, 2009

I should actually print Fizz, not Fuzz… still 57 characters 😛

while(++$i%101)echo$i%15?$i%5?$i%3?$i:Fizz:Buzz:FizzBuzz;

Gabe's avatar 490. Gabe - October 15, 2009

print map{($_%3?””:Fizz).($_%5?””:Buzz)||$_}(1..100)

52 Chars in perl. I give myself a B+ for lack of readability and over-geekiness.

I don’t ask FizzBuzz like questions right-off-the-bat in in-person interviews. I have learned over the years that nervousness can be an overwhelming consideration when interviewing. I ask only super-basic questions most of the time, escalate if the person is relaxed, and supplement with on-line examination which is less intimidating and more like real-life stress. This procedure seems much more reliable than bludgeoning intimidated candidates.

491. FizzBuzz in Practice « caines.ca/blog - October 28, 2009

[…] work we've been doing a bunch of technical interviews for new hires, and I thought I'd give the Fizzbuzz test a go for evaluating candidates.  I realize that it's a famous interview test, but in practice none […]

andrey the giant's avatar 492. andrey the giant - November 1, 2009

C with bit fiddling (embedded-type optimizations):
#include
int main(void) {
int i, j;
for (i=1;1<101;i++) {
j=0;
if (!(i%3))j|=1;
if (!(i%5))j|=2;
printf("%s%s\n", (i&1)?"fizz":"",(i&2)?"buzz":"");
}
return 0;
}

Bryan Ross's avatar 493. Bryan Ross - November 3, 2009

This took me a few minutes, with the first couple minutes spent over-analyzing the problem rather than just writing the most straightforward and easiest to understand implementation I could think of:

(In C)

#include 

int main(int argc,char* argv[])
{
	int i;
	for(i=1;i<=100;++i)
	{
		if(i % 3 == 0 || i % 5 == 0)
		{
			if(i % 3 == 0)
				printf("Fizz");
			if(i % 5 == 0)
				printf("Buzz");
			printf("\n");
		}
		else
			printf("%i\n",i);
	}
}
Mark C's avatar markc86 - March 11, 2010

I was also trying to be over-efficient. I saw post #6 and realized it.

It seems to me the first IF is redundant (in your code). The problem with removing it is where to put PRINTF(“\n”)? Maybe one could use the choice operator, but it still amounts to about the same amount of decisions.

Gerry's avatar Gerry - March 11, 2010

Both #6 and this make the mistake of repeating calculations instead of storing the values of “i % 3 == 0” and “i % 5 == 0” as booleans. Doing this would also help documentation and mean the calculations would only need to be changed in a single place if they ever needed changing. Repeating calculations in this instance won’t amount to much of a difference, but if you make that mistake here then you’re going to make it in other situations where the penalty is much greater.

Mark C's avatar Smiley - March 17, 2010

Thanks, Gerry!

Edgar Klerks's avatar 494. Edgar Klerks - November 11, 2009

Oh wel why not post another haskell solution:

mod3 :: Integer -> Integer
mod3 = (flip mod) 3
mod5 :: Integer -> Integer
mod5 = (flip mod) 5
mod15 :: Integer -> Integer
mod15 = (flip mod) 15

— z is accumulation element
fizzBuzz’ :: Integer -> [String] -> [String]
fizzBuzz’ n z | n == 0 = z
| mod15 n == 0 = fizzBuzz’ (n – 1) ( z ++ [“FizzBuzz”] )
| mod5 n == 0 = fizzBuzz’ (n – 1) ( z ++ [“Fizz”] )
| mod3 n == 0 = fizzBuzz’ (n – 1) ( z ++ [“Buzz”] )
| otherwise = fizzBuzz’ (n – 1) ( z ++ [show n] )

fizzBuzz :: Integer -> [String]
fizzBuzz n = fizzBuzz’ n []

I have seen more elegant solutions. I am still learning this language. But I am starting to understand the tougher concepts like monads. I program mainly web applications, so I probably will never use it at work. (Mostly I program OO-style instead FP)

But It will teach you all kind of wonderful concepts, like continuations, monads, tail recursion, higher order functions, writing parsers, recursive data structures and much more stuff.

I feel if I mastered it, I never have to fear a job interview.

Edgar Klerks's avatar Edgar Klerks - November 11, 2009

The layout is damaged. This is a very important thing in haskell. To test it, it should be fixed first.

But nevermind, it is more about that learning new things can make you a better programmer. Learning makes you think.

If you can’t solve something like FizzBuzz, you have yet to learn to think. Programming is 90 % thinking and 10 % typing. Of course most programmers can do this in parallel.

PlasticineGuy's avatar 495. PlasticineGuy - December 16, 2009

Disappointing for not being able to do such a simple program.
For heaven’s sake, I’m 12 and I managed it.

AndrewE's avatar 496. AndrewE - December 16, 2009

i’m new to programming 🙂
in python:

for i in range(1, 101):
if i in range(3, 101, 3):#multiples of 3
print(‘fizz’)
if i in range(5, 101, 5):#multiples of 5
print(‘buzz’)
if i in range(15, 101, 15):#multiples of 3 and 5 (or multiples of 15)
print(‘fizzbuzz’)
else:
print(i)

AndrewE's avatar 497. AndrewE - December 16, 2009

oops!
# ‘….’ = indents/spaces
for i in range(1, 101):
….if i in range(3, 101, 3):#multiples of 3
……..print(‘fizz’)
……..if i in range(5, 101, 5):#multiples of 5
…………print(‘buzz’)
…………if i in range(15, 101, 15):#multiples of 3 and 5 (or multiples of 15)
…………….print(‘fizzbuzz’)
….else:
print(i)

PlasticineGuy's avatar 498. PlasticineGuy - December 17, 2009

Nope, sorry. That will print fizzbuzzfizzbuzz for multiples of 15. Check for 15 first.

AndrewE's avatar 499. AndrewE - December 17, 2009

sorry, my bad! u were right PlasticineGuy…thanx! 🙂

#’….’ = indents/spaces

for i in range(1, 101):
……..if i in range(15, 101, 15):#multiples of 15
…………….print(‘fizzbuzz’)
……..elif i in range(5, 101, 5):#multiples of 5
print(‘buzz’)
……..elif i in range(3, 101, 3):#multiples of 3
…………….print(‘fizz’)
……..else:
print(i)

Ted K.'s avatar Ted K. - April 23, 2011

The three inside ranges should be stored in lists. There’s a good chance that you are repeatedly creating those ranges 271 times too many (I broke up your ‘elif’s and inserted a counter). That can add up to a lot of wasted cycles.

Range_Max = 101
Range_3 = range(3, Range_Max, 3)
Range_5 = range(5, Range_Max, 5)
Range_15 = range(15, Range_Max, 15)

for i in range(1, Range_Max) :

____if i in Range_15 : # Multiples of 15

____elif i in Range_5 : # Multiples of 5

____elif i in Range_3 : # Multiples of 3

L.'s avatar L. - January 11, 2012

I would consider anyone checking a second time out of the race tbh .

IMHO such a major lack of logic can lead to overly complex solutions to simple problems — here you’re only adding one check per loop (some made it double .. they beat you at it :p ) but in another case you will be designing an Mloc solution that runs like a tortoise where a Kloc solution running ok was possible.

The ability of a dev to synthesize and simplify is extremely important for extensibility and maintenance – and very often efficiency.

PlasticineGuy's avatar 500. PlasticineGuy - December 17, 2009

I was wondering, is there something wrong with this approach to the problem (using continue instead of else-if):
#include
#include

int main(void)
{
….int i;
….for(i = 0; i < 100; i++) {
……..if(i % 15 == 0) {
…………printf("FizzBuzz\n");
…………continue;
……..}
……..if(i % 3 == 0) {
…………printf("Fizz\n");
…………continue;
……..}
……..if(i % 5 == 0) {
…………printf("Buzz\n");
…………continue;
……..}
……..printf("%d\n", i);
….}
….system("PAUSE");
….return 0;
}

Peter B's avatar 501. Peter B - December 25, 2009

DECLARE @num int

SET @num = 1
WHILE @num <= 1000
BEGIN
IF(@num%3) = 0 AND (@num%5) = 0 PRINT 'FIZZBUZZ'ELSE
IF (@num%3) = 0 PRINT 'FIZZ' ELSE
IF(@num%5) = 0 PRINT 'BUZZ'ELSE

PRINT @num

SET @num = @num + 1
END

Jakub Nietrzeba's avatar 502. Jakub Nietrzeba - January 7, 2010

Nice and small FizzBuzz in Swi-Prolog:

forall(between(1, 100, X),(
(0 is X mod 15) -> writeln(‘FizzBuzz’);
(0 is X mod 3) -> writeln(‘Fizz’);
(0 is X mod 5) -> writeln(‘Buzz’);
writeln(X))).

Dolomedes's avatar 503. Dolomedes - January 8, 2010

program Fizz;

{$APPTYPE CONSOLE}

uses
SysUtils;

var
bot:integer;
throw:string;

begin
for bot:=0 to 100 do
begin
if bot mod 3 = 0 then
begin
if bot mod 5 = 0 then
begin
throw:=’FizzBuzz’end
else
throw:=’Fizz’
end
else if bot mod 5 = 0 then
begin
throw:=’Buzz’
end
else
begin
throw:=inttostr(bot);
end;
Writeln(throw);

end;

end.

504. Become a better programmer by taking a shower - January 10, 2010

[…] Start small, especially if you’re a junior programmer, and work your way up. Start with Fizzbuzz, and work your way up to understanding recursion a lot better (I know I still don’t), or […]

Radzikovsky's avatar 505. Radzikovsky - January 11, 2010

int main()
{
int i;
for (i=1;i<=100;i++)
{
if (i%3==0 && i%5==0)
cout<<"FizzBuzz"<<"\n";
else
if (i%3==0)
cout<<"Fizz"<<"\n";
else
if (i%5==0)
cout<<"Buzz"<<"\n";
else
cout<<i<<"\n";
}
getch();
return 0;
}

i wish i had such an interview

PlasticineGuy's avatar 506. PlasticineGuy - January 25, 2010

I don’t like empty function arguments. I like to stick a void in there.

Locoluis's avatar 507. Locoluis - January 25, 2010

[[fizz]Plc1+sc]sf[[buzz]Plc1+sc]sb[n]sq[dddd0sc3%0=f5%0=blc0=q[
]P1+d101>a]sa1lax

GNU dc. The newline between [ and ] is required.

hugeoid's avatar 508. hugeoid - January 26, 2010

Again, the point of the blog was not to identify the C/VB/Snobol virtuosos but to weed out a large number of candidates who can’t do the basic thinking to understand and solve the problem. Programming will always be about identifying an effective and optionally efficient human-language procedure, and then translating it into the syntax of some computer language or other. The syntax skills can generally be learned and improved, but the thinking skills generally can’t, so you don’t want to waste your time on those who don’t have them.
Say I asked you to solve the problem of swapping a red cup and a green cup on my desk. All the above 1000’s of lines of code are irrelevant. I want you to identify the need to move cup A out of the way, move cup B to A’s place, and then A to B’s place. Without that you’ll never be much of a programmer in my books. Beyond that you may then seek to impress by explaining the options for and benefits of using platform/language-specific improvements and tricks. But don’t let them overtake the first step (I have the constant joy of maintaining code written by a (thankfully-now-)former colleague who always wrote code in such a way as to use his latest flavour-of-the-month technique, without ever thinking to look at what shape the peg was before bashing it into a klein-bottle-shaped hole.)
The other thing is all swinging-dick stuff about how compact your code is. The first language I learnt was APL, and those who know it will know an entire program to read 2 variables, swap them and print them out, can be done in a half-dozen symbols from go to whoa. It is an incredibly compact language – you could probably program the LHC in 20 lines. But compact APL code is also difficult to read, difficult to understand, to verify, debug, fix, test and maintain. It is best written in expanded and structured form as if it were BASIC. In my experience, highly compact *source* code is rarely more efficient, correct, reliable, or maintainable than expanded code that reflects the human-language procedure. So that’s the way you should code, the exception being when heavily-used code needs to be optimised (at the *object* level) for *processing* efficiency, in which case it is documented in comments.
Here then is my code segment for fizzbuzz, which in my view corrects the glaring flaw in ALL the above examples:

# Loop to process integers in sequence.
# Each value is tested to see whether it is a multiple
# of 3, 5 or both. Since multiples of 3 occur most frequently,
# this test is applied first.

A(b).ra->ca=d{a,b}[R]

malleswarareddy's avatar 509. malleswarareddy - February 6, 2010

using SQLserver this is my code to print as you like

Declare @number int;
declare @num int;
set @num=1;
set @number=100;
while(@num<@number)
begin
if((@num%3)=0 and (@num%5)=0)
print 'pizzbuzz';
else if((@num%3)=0)
print 'pizz'
else if((@num%5)=0)
print 'buzz'
else
print @num
set @num=@num+1;
end

Michael Hamilton's avatar 510. Michael Hamilton - February 8, 2010

Up much higher in the page people were talking about swapping two variables.

Assuming C++ I would probably do this in real code:
std::swap(a, b);

If, however, someone asked me to implement that function then yes we’d start with a variable:

template
void swap(swapType &left, swapType &right){
const swapType temporary = left;
left = right;
right = temporary;
}

PlasticineGuy's avatar 511. PlasticineGuy - February 11, 2010

Using a temporary variable is pretty much the only way to ensure compatability with all types.

512. Hello world or maybe FizzBuzz! « PL/SQL Energy - February 14, 2010

[…] I will try to make it more complex. We will use some “standard”  programming question:https://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/ […]

Gaby Abed's avatar 513. Gaby Abed - February 22, 2010

I’m not surprised that some candidates, even qualified ones, get caught up on “simple” questions. It’s like chefs who interview for certain positions, being asked by the owner or head chef to boil an egg or make a salad. Sometimes the elegance in a simple solution can say a lot about a candidate more than any clever explanation to something more complex ever could.

514. Good Technical Interviews Require Good Technical Interview Questions | c o d i n g f r o g s - February 23, 2010

[…] great thing is, apparently even simple problems can be good enough to find out if someone knows how to code.  I wouldn't recommend you rely solely on the simplest, […]

Nick Antonaccio's avatar 515. Nick Antonaccio - February 23, 2010

REBOL one-liner in 94 characters:

repeat i 100[j:””if 0 = mod i 3[j:”fizz”]if 0 = mod i 5[j: join j”buzz”]if j =””[j: i]print j]

rajeesh's avatar 516. rajeesh - February 24, 2010

why use mod 5 && mod 3, when you can use mod 15

jAST's avatar 517. jAST - February 24, 2010

for (var i = 1; i <= 100; i++) Console.WriteLine((i % 3 == 0 && i % 5 == 0) ? "FizzBuzz" : ((i % 3 == 0) ? "Fizz" : i.ToString()));

jAST's avatar 518. jAST - February 24, 2010

@516: The assignment says, “.. that are multiples of both 3 and 5”. It’s obvious why people go for the mod 3 mod 5 solution over mod 15. To me, either solution is fine.

Mike's avatar 519. Mike - February 24, 2010

Chuck Norris would simply would ask you if the variables really NEEDED swapping and then stare at you until you broke down in tears and admitted that they didn’t. 🙂

bpm's avatar 520. bpm - March 4, 2010

Perl example using a table (just to be different)

@t = (‘FizzBuzz’, 0, 0, ‘Fizz’, 0, ‘Buzz’, ‘Fizz’, 0, 0, ‘Fizz’,
‘Buzz’, 0, ‘Fizz’, 0, 0);
print ( ($t[$_ % 15] || $_).”\n”) for 1..100;

Russ's avatar 521. Russ - March 4, 2010

FizzBuzz reminds me of something like “Only the cool kids smoke”. So many people lining up to show that they too fit in.

ptm's avatar 522. ptm - March 9, 2010

function fizzBuzz() {
for($i=1;$i<101;++$i){
$fizz = $i % 3;
$buzz = $i % 5;
if($fizz === 0 && $buzz === 0){
echo 'FizzBuzz';
}elseif($fizz === 0){
echo 'Fizz';
}elseif($buzz === 0){
echo 'Buzz';
}else{
echo $i;
}
echo "\n";
}
}

PlasticineGuy's avatar 523. PlasticineGuy - March 10, 2010

Every variable in PHP needs the $.

Keith's avatar 524. Keith - March 11, 2010

“Ask: show me (on paper, but better on a whiteboard) how you would swap the values of two variables.” (Jacob)

A solution that is a bit outside the box:

On the whiteboard, write: A=1 and B=2,
then erase the A&B, write: B=1 and A=2,

ok, when do I start?!

Mark C's avatar markc86 - March 11, 2010

Thanks for the laugh.

FizzBuzz's avatar 525. FizzBuzz - March 13, 2010

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz
Fizz
22
23
Fizz
Buzz
26
Fizz
28
29
FizzBuzz
31
32
Fizz
34
Buzz
Fizz
37
38
Fizz
Buzz
41
Fizz
43
44
FizzBuzz
46
47
Fizz
49
Buzz
Fizz
52
53
Fizz
Buzz
56
Fizz
58
59
FizzBuzz
61
62
Fizz
64
Buzz
Fizz
67
68
Fizz
Buzz
71
Fizz
73
74
FizzBuzz
76
77
Fizz
79
Buzz
Fizz
82
83
Fizz
Buzz
86
Fizz
88
89
FizzBuzz
91
92
Fizz
94
Buzz
Fizz
97
98
Fizz
Buzz

PlasticineGuy's avatar 526. PlasticineGuy - March 16, 2010

Um… thank you?

527. innovation management - March 17, 2010

innovation management…

[…] Networks and Networking – It begins with a critical review of the literature on knowledge management, arguing that its focus on IT to create a network structure may limit its potential to promote knowledge sharing among social. […]…

Mike's avatar 528. Mike - March 19, 2010

This place needs some groovy:

def fizzBuzzData = [fizz:3,buzz:5]
100.times { i ->
println fizzBuzzData.findAll { i % it.value == 0}.keySet().join(“”) ?: i
}

529. Project Euler - Aphoenix.ca - March 23, 2010

[…] I’ve been trying to hone my Python skills, so I Dove Into Python with a vengeance. That didn’t quite sate my desire for crazy coding fun, and my good buddy Sean suggested the Infamous FizzBuzz test. […]

Stringycustard's avatar 530. Stringycustard - March 25, 2010

Not sure if this sort of combination solution is done above (noting the number of comments, it’s likely) but an Actionscript solution could be
for(var i:int = 1; i <= 100; i++)
{
var msg:String = "";
if(i % 5 == 0) msg += ("Buzz");
if(i % 3 == 0) msg += ("Fizz");
if(msg.length == 0) trace(i);
else trace(msg);
}

John Morrison's avatar 531. John Morrison - March 29, 2010

This is the sort of thing I would like to see. It is clean, simple and
very straightforward.

#include
int main(void)
{
int k;
for(k = 1; k <= 100; k++)
{
if(k % 3 == 0)
printf("fizz");
if(k % 5 == 0)
printf("buzz");
if( (k % 3)*(k % 5) != 0)
printf("%d.", k);
puts("");
}
return 0;
}

PlasticineGuy's avatar 532. PlasticineGuy - April 3, 2010

Not really. The logic multiplication is unreliable in practise and is likely to introduce subtle bugs later on.

Eddy's avatar 533. Eddy - April 9, 2010

The shortest I’ve been able to make in C is 81 bytes.

main(){int n=0;while(++n-101)printf(n%5?n%3?”%i”:”Fizz”:”FizzBuzz”+(n%3?4:0),n);}

Eddy's avatar 534. Eddy - April 9, 2010

Actually, I can make it 79 bytes by using the fact that static memory is initialized to zero.

int n;main(){while(++n-101)printf(n%5?n%3?”%i”:”Fizz”:”FizzBuzz”+(n%3?4:0),n);}

Sweet. Under 80 bytes–I guess that’s a one-liner on your typical console.

PlasticineGuy's avatar 535. PlasticineGuy - April 10, 2010

You don’t need the int. Variables are int by default if you leave off the type in C (at least, Visual C++’s C compiler).

n;main(){while(++n-101)printf(n%5?n%3?”%i”:”Fizz”:”FizzBuzz”+(n%3?4:0),n);}

Prateek's avatar 536. Prateek - April 29, 2010

Declare @num INT
SET @num = 0

While @num < 100
Begin
SET @num = @num + 1

IF ((Cast(@num/3.00 as VARCHAR) like '%.00%') AND (Cast(@num/5.00 as VARCHAR) like '%.00%'))
BEGIN
PRINT 'FIZZBuzz'
END
ELSE
IF (Cast(@num/3.00 as VARCHAR) like '%.00%')
BEGIN
PRINT 'FIZZ'
END
ELSE
IF (Cast(@num/5.00 as VARCHAR) like '%.00%')
BEGIN
PRINT 'BUZZ'
END
ELSE
PRINT @num
END

537. The Problem with the World Today (and the solution!) · Yerdebugger! - May 8, 2010

[…] will be hired here. If you can’t reverse a string (or, even better yet, write a simple FizzBuzz function or other trivial task) you have no business coding software. I don’t think that you have to […]

Michael D. Hemphill's avatar 538. Michael D. Hemphill - May 9, 2010

Here it is in Python, just started learning Python. Nice language.

i = 0
while (i < 100):
i = i + 1
if (0 == i%3 and 0 == i%5):
print 'FIZZ BUZZ'
elif 0 == i%5:
print 'BUZZ'
elif 0 == i%3:
print 'FIZZ'
else: print i

I can understand most managers frustration. For something to be so simple, there has been a lot of complex code writing. There was a saying we used in the Army, KISS – Keep It Simple Stupid.

L.'s avatar L. - January 11, 2012

Again .. useless checks, failed logic … Why oh why start by checking the least likely case which is in fact dependant on the next two cases etc. etc. etc. you should NOT be coding.

Andy Gorman's avatar 539. Andy Gorman - May 12, 2010

I’d rather see reusable code and good practices than efficiency.

#!/usr/bin/perl
use strict;
use warnings;

my @nums = (1..100);

my @fizzbuzzed = map {fizbuzzify($_)} @nums;

print join(“\n”, @fizzbuzzed);

sub fizbuzzify {
my $num = shift;

my $mod_three = $num % 3;
my $mod_five = $num % 5;

return $num if ($mod_three != 0 and $mod_five != 0);

my $fizz = “Fizz” if ($mod_three == 0);
my $buzz = “Buzz” if ($mod_five == 0);

return sprintf “%s%s”, $fizz, $buzz;
}

kaljtgg's avatar 540. kaljtgg - May 18, 2010

In c++

#include

using namespace std;
int num=1;
int main()
{
while(num<=100){
if(num % 3==0 && num % 5 == 0)
cout << "Fizzbuzz" << endl;
if(num % 3 == 0 && num % 5 != 0)
cout << "Fizz" << endl;
if(num % 5 == 0 && num % 3 != 0)
cout << "Buzz" << endl;
else{
cout << num << endl;}
num++;
}
}

Unknown's avatar 541. Färdigt programmeringsspråk och den icke programmerande programmeraren « ToggleOn – dit alla noder leder. - May 31, 2010

[…] ett inlägg på Imran On Tech (läs här) observeras att 199 av 200 jobbkandidater inte kan skriva kod alls. After a fair bit of trial and […]

542. Outsourcing is full of idiots and scam artists « Boffineering - June 9, 2010

[…] Stories abound. […]

543. Blog aBlog; » Blog Archive » Stranger in a Strange Land - June 18, 2010

[…] Using FizzBuzz to Find Developers who Grok Coding […]

Kevin's avatar 544. Kevin - June 20, 2010

Perhaps one should start by giving the same question to your existing developers and in so doing gauge the average time and level of skill that exist in your team, then you can either hire somone of similar or more advanced skills depending on the team dynamic.

milan's avatar 545. milan - June 30, 2010

lovely discussion

muhdazwa's avatar 546. muhdazwa - June 30, 2010

Using VB.NET:

For i = 1 To 100
Console.WriteLine( _
IIf(i Mod 3 0 And i Mod 5 0, i, _
IIf(i Mod 3 = 0, “Fizz”, “”) + IIf(i Mod 5 = 0, “Buzz”, “”)))
Next

muhdazwa's avatar 547. muhdazwa - June 30, 2010

Using VB.NET (negation from above):

For i = 1 To 100
Console.WriteLine( _
IIf(Not (i Mod 3 = 0) And Not (i Mod 5 = 0), i, _
IIf(i Mod 3 = 0, “Fizz”, “”) + IIf(i Mod 5 = 0, “Buzz”, “”)))
Next

Tom's avatar 548. Tom - July 1, 2010

Is something like this (in C#) too verbose of an answer for this question?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FizzBuzz
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i <= 100; i++)
{
if (((i % 3) == 0) || ((i % 5) == 0))
{
if ((i % 3) == 0)
Console.Write("Fizz");
if ((i % 5) == 0)
Console.Write("Buzz");
}
else
Console.Write(i.ToString());

if (i != 100)
Console.Write(",");
}

Console.ReadLine();
}
}
}

soni's avatar 549. soni - July 2, 2010

Software testing and test management service = Testign-associates

550. luv2code – For Software Developers Who Luv To Code: Java Architects and Developers – Java EE, J2EE, Blog - July 9, 2010

[…] When you are interviewing job candidates, how do you know if they can really write good code? Do they simply copy/paste previous code from other projects? Or do they lead the development with new and creative code? In an interview, you need to ask only one question: 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”.  Link to original question […]

Anthony's avatar 551. Anthony - July 11, 2010

//with additional msg variable
//in actionscript
var msg = ”;
for(var i = 1; i!=101;++i){
if(i%3==0){
msg = ‘Fizz’;
}
if(i%5==0){
msg += ‘Buzz’;
}
if (msg == ”){
msg = i;
}
trace(msg);
msg=”;
}

//without additional variable
//in actionscript
for(var n = 1; n!=101;++n){
if(n%3 ==0 && n%5 ==0 ){
trace(‘FizzBuzz’);
}else if(n%3==0){
trace(‘Fizz’);
}else if(n%5==0){
trace(‘Buzz’);
}else {
trace(n);
}
//in another language print \n
}

Justin LeClair's avatar 552. Justin LeClair - July 13, 2010

Forgive the PHP; it’s fast:

Also, 1 line!

for($i = 1; $i <= 100; $i++) echo ($i % 3) ? (($i % 5) ? $i." \r\n": "Buzz\r\n"): (($i % 5) ? "Fizz\r\n": "FizzBuzz\r\n");

Lymia's avatar 553. Lymia - July 19, 2010

Solution in Brainfuck:

>++++++++++[<++++++++++>-]< Set p0 to 100
[>+> Start of main loop and sets p1 to 0
  [-] Clears temp tape
  >++++++++++[<++++++++++>-]<+ Set p2 to 101
  <<[->>->+<<<]>>>[-<<<+>>>]< Subtracts p0 from p2
 
  Checks if p2 mod 3 equals 0
  >>+++<<[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>[-<+>]+>[-]>[<<->>[-]]>[-]<<<
  [ If so:
    [-] Cell Clear
    ++++++++++[>++++++++++<-]>++. Print ‘f’
    +++.[-]< Print ‘i’
    [-]+++++++++++[>+++++++++++<-]>+. Print ‘z’
    .[-]<[-] Print ‘z’
    <<[-]>> Clear p1
  ]<
 
  Checks if p2 mod 5 equals 0
  >>+++++<<[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>[-<+>]+>[-]>[<<->>[-]]>[-]<<<
  [ If so:
    [-] Cell Clear
    +++++++++[>+++++++++++<-]>-.[-]< Print ‘b’
    [-]+++++++++[>+++++++++++++<-]>. Print ‘u’
    +++++. Print ‘z’
    .[-]< Print ‘z’
    [-] Cell clear
    <<[-]>> Clear p1
  ]<
 
  <[ If none of the previous are true:
    [-] Cell Clear
    >>++++++++++<[->-[>+>>]>[+[-<+>]>+>>]<<<<<] Seperate digits of number
    >[-]>>[>++++++++[<++++++>-]<.[-]] Print tens digit
    <>++++++++[<++++++>-]<.[-]<<< Print ones digit
  ]>
 
  [-]++++++++++.[-]
<[-]<-] End of main loop and clears p1

And again without comments:

>++++++++++[<++++++++++>-]<[>+>[-]>++++++++++[<++++++++++>-]<+<<[->>->+<<<]>>>[-<<<+>>>]<>>+++<<[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>[-<+>]+>[-]>[<<->>[-]]>[-]<<<[[-]++++++++++[>++++++++++<-]>++.+++.[-]<[-]+++++++++++[>+++++++++++<-]>+..[-]<[-]<<[-]>>]<>>+++++<<[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>[-<+>]+>[-]>[<<->>[-]]>[-]<<<[[-]+++++++++[>+++++++++++<-]>-.[-]<[-]+++++++++[>+++++++++++++<-]>.+++++..[-]<[-]<<[-]>>]<<[[-]>>++++++++++<[->-[>+>>]>[+[-<+>]>+>>]<<<<<]>[-]>>[>++++++++[<++++++>-]<.[-]]<>++++++++[<++++++>-]<.[-]<<<]>[-]++++++++++.[-]<[-]<-]

Anthony's avatar 554. Anthony - July 23, 2010

/*I wrote this in in ms paint with my notepad…again took another 1min… If you can’t program this on paper, than you shouldn’t be programing. After I had it written down. I tested it’s speed compared to my other solutions, and this runs faster…774ms to 796ms per 100000ms, while my others solutions, again written on paper, took over 800ms at a minimum*/
var output:String;
for(var n:int=1; n!=101; ++n){
if(n%3==0){
if(n%5==0){
output+=’FizzBuzz\n’;
continue;
}
output+=’Fizz\n’;
}else if(n%5==0){
output+=’Buzz\n’;
}else{
output+=n+’\n’;
}
}
trace(output);
//to get rid of the extra line at the end, which I like, instead of tracing output…
//trace(output.substr(0,output.length-1);

Anthony's avatar Anthony - July 23, 2010

oops meant to say per 100000 steps in the loop.

Anthony's avatar Anthony - July 23, 2010

wow… shouldn’t type at 4am… try this again…
I was thinking about the fizzbuzz I had written several days ago, so I wrote this in ms paint using my wacom tablet, in order to simulate the feel of writing it on paper. It took another 1 to 2 min, while the other two took about 2.5 min in total each; therefore, about 6 to 7 min total for three versions.

I tested them all to see which was faster, and my latest fizzbuzz loop seems to run the fastest on my machine; however, it uses a variable outside the loop, and only traces everything at the end.

Tudo Mol's avatar 555. Tudo Mol - August 4, 2010

public class FizzBuzz {

public static void main(String[] args) {
String saida = null;
for (int i = 1; i < 101; i++) {
saida = (i%3<1&&i%5<1?"fizzbuzz":i%5<1?"buzz":i%3<1?"fizz":String.valueOf(i));
System.out.println("saida:"+saida);
}

}

}

556. Brothers in Code | Is Your Next Programmer a Moron? - August 11, 2010

[…] After a few candidates we decided it was too data-centric.  My boss forwarded me the fizz-buzz question.  I just couldn't believe what it's author was saying; senior level programmers can't write […]

557. Buzzing and Fizzing in PHP « Sharon Lee Levy's Blog - August 11, 2010

[…] it can be terribly challenging to find a programmer who can actually code (see https://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/. The article cites the following FizzBuzz problem as a way to determine whether a programmer can […]

Jason's avatar 558. Jason - August 16, 2010

TSQL the correct way…

WITH
oneto10 (nbr) AS (SELECT 0 UNION SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION SELECT 4 UNION SELECT 5 UNION SELECT 6 UNION SELECT 7 UNION SELECT 8 UNION SELECT 9),
oneto100 (nbr) AS (SELECT u2.nbr * 10 + u1.nbr + 1 FROM oneto10 u1 CROSS JOIN oneto10 u2)
SELECT
CASE
WHEN nbr % 3 = 0 AND nbr % 5 = 0 THEN ‘FIZZBUZZ’
WHEN nbr % 3 = 0 THEN ‘FIZZ’
WHEN nbr % 5 = 0 THEN ‘BUZZ’
ELSE CAST(nbr AS VARCHAR(9)) END
FROM oneto100

linq's avatar 559. linq - August 16, 2010

string b = Enumerable.Range(1, 100).Select(e =>
{
return (e % 5 == 0) ?
((e % 3 == 0) ? “FizzBuzz” : “Buzz”) :
(e % 3 == 0) ? “FIzz” : e.ToString();
}
).Aggregate((e, acc) => e + ” ” + acc);
Console.WriteLine(b);

Joe Bentley's avatar 560. Joe Bentley - August 21, 2010

I’m 15, have never made a full program in my life, programmed an example in pseudo-C# code in less than 1 minute 30, how can these people not be able to do this?!? These aren’t programmers, I kinda feel better about myself now because I never thought I was any good at programming at all (because I’ve never even written a full program) but I’m already better than alot of developers out there cuz I can write a simple fizzbang program 😛

Joe Bentley's avatar 561. Joe Bentley - August 21, 2010

btw

int main() {
for(int n = 0; i < 101; i++)
{
printf("\n" + n + "\n");
if (n % 3 == 0)
{
printf("Fizz");
}
if (n % 5 == 0)
{
printf("Bang");
}
}
}

Should handle in the case of both being true cuz it has no endline on the Fizz, so if both evaluate true they will literally append to each other, like "FizzBang"

Marcel Kincaid's avatar Marcel Kincaid - February 28, 2011

Joe Bentley, you fail.

562. Interview Questions - Push cx - August 23, 2010

[…] Most of the questions are intended to start interesting conversations about the workplace, though a few (“Which source control do you use?”) do have wrong answers (“None.”) that end an interview as quickly as a candidate being unable to solve FizzBuzz. […]

rralf's avatar 563. rralf - September 7, 2010

tsql + cte:

with cte as (
select 1 as id
union all
select id+1 from cte where id<100
)
select
case
when (id%15 = 0) then 'FizzBuzz'
when (id%3 = 0) then 'Fizz'
when (id%5 = 0) then 'Buzz'
else STR(id)
end as id
from cte

Marc Thibault's avatar 564. Marc Thibault - September 7, 2010

The better VBA. One pedestrian, the other a little more APLish. Meet the Master.

Public Function fizzbuzz(n As Integer) As String
Select Case 0
Case n Mod 15
fizzbuzz = “FizzBuzz”
Case n Mod 3
fizzbuzz = “Fizz”
Case n Mod 5
fizzbuzz = “Buzz”
Case Else
fizzbuzz = n
End Select
End Function

Public Function fizbuz(n As Integer) As String
a = Array(“”, “Fizz”, “”, “Buzz”, “”)
fizbuz = a(1 + Sgn(n Mod 3)) & a(3 + Sgn(n Mod 5))
fizbuz = IIf(“” = fizbuz, n, fizbuz)
End Function

565. Southern BITS of Technical Goodness » UI / UX – How do you “tech out” a design person? - September 11, 2010

[…] Inheritance – ( i place this last b/c it is the least important (in my mind) as people have shifted towards shallow inheritance hierarchies. The idea being that objects share functionality that would be best nested in super classes.      > What is functional programming and the differences between OOP & functional? This I would characterize in 1 sentence… “Functional programming is largely about treating functions as first class citizens much like OOP treats data (e.g. parameters). This furthered by the idea of using immutable objects so that functions can not alter the parameters passed in but can only result in different outputs. The idea is that functional algorithms should be mathematical (e.g. if A + B goes in, C always comes out). This results in a certain level of certaintly. You can go into code coverage, DDD, BDD, Unit testing, IOC, not to mention technology specific things like LINQ, WCF, EF, MVC, ASP.NET MVC, JQUERY, JavaScript details, yadda yadda yadda. Always, always, always make them write code on a computer like FIZZ FUZZ : https://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/ […]

reeder's avatar 566. reeder - September 20, 2010

If I were looking for a web programmer all you guys who lost everything after < would be shown the door. 🙂

L.'s avatar L. - January 11, 2012

And this is why the webdev industry is full of noobs who know nothing but HTML and PHP . congratulations 🙂

Who the f* cares if you already know about htmlspecialchars or not – it’s mere details compared to not having logic —

reeder's avatar 567. reeder - September 21, 2010

Here’s one line of LINQ in C#:

foreach (string s in Enumerable.Range(1, 100).Select(i => i % 15 == 0 ? “FizzBuzz” : i % 3 == 0 ? “Fizz” : i % 5 == 0 ? “Buzz” : i.ToString())) Console.WriteLine(s);

Cheers!

568. Quora - October 2, 2010

What exactly is the FizzBuzz task?…

The inspiration for the interview question is the [group game “Bizz buzz”][1]: > Bizz buzz (also known as fizz buzz, or simply buzz) is a group word game frequently encountered as a drinking game. > Players generally sit in a circle and, starting fro…

569. FizzBuzz test in C# « Jason's Blog - October 13, 2010

[…] that people are using to weed out the less capable developers. In particular the one called FizzBuzz test is quite amazing to me. It isn’t the simplicity of the challenge that gets me it is the fact […]

Unknown's avatar 570. Are you a good programmer? « wid@world ~$ - October 21, 2010
monosky's avatar 571. monosky - November 2, 2010

guess the catch was in the fact that the conditional statement for number divisible by 15 should come before the rest..

#include
using namespace std;

int main()
{ int i;
for(i=1; i<101;i++)
if(i%15==0)
cout<<"FizBuzz"<<endl;
else
if(i%5==0)
cout<<"Buzz"<<endl;
else
if((i%3==0))
cout<<"Fiz"<<endl;
else
cout<<i<<endl;
return 0;
}

chris's avatar 572. chris - November 3, 2010

I just found a nice solution at stackoverflow:
@echo off
echo 1
echo 2
echo Fizz
echo 4
echo Buzz
echo Fizz
echo 7
echo 8
echo Fizz
echo Buzz
echo 11
echo Fizz
echo 13
echo 14
echo FizzBuzz
.
.
.

and so forth

KS Braunsdorf's avatar 573. KS Braunsdorf - November 15, 2010

# sed version
n
n
s/.*/Fizz/
n
n
s/.*/Buzz/
n
s/.*/Fizz/
n
n
n
s/.*/Fizz/
n
s/.*/Buzz/
n
n
s/.*/Fizz/
n
n
n
s/.*/FizzBuzz/p
d

Run with sed 100 | sed -f line-above

–ksb

KS Braunsdorf's avatar 574. KS Braunsdorf - November 15, 2010

Oh, the run is “jot 100 | sed -f lines-above”, I shouldn’t try to type that fast. –ksb

chetpot's avatar 575. chetpot - November 30, 2010

javascript:void(d=”);for(i=1;i<=100;i++){d+=(i%3==0)?((i%5==0)?'FizzBuzz ':'Fizz '):((i%5==0)?'Buzz ':i+' ')};alert(d)

here is a short js url hope it doesn't get butchered during the post

chetpot's avatar chetpot - November 30, 2010

it did get butchered well only the 2 single quotes in the first void()
here it is without the quotes

javascript:void(d);for(i=1;i<=100;i++){d+=(i%3==0)?((i%5==0)?'FizzBuzz ':'Fizz '):((i%5==0)?'Buzz ':i+' ')};alert(d)

chetpot's avatar chetpot - November 30, 2010

ok butchered again one more try with double quotes

javascript:void(d=””);for(i=1;i<=100;i++){d+=(i%3==0)?((i%5==0)?'FizzBuzz ':'Fizz '):((i%5==0)?'Buzz ':i+' ')};alert(d)

Ryan's avatar 576. Ryan - December 17, 2010

#include

int main()
{
for (int i = 0; i < 100; i++)
{
if (i % 3 == 0 && i % 5 == 0)
printf("FizzBuzz\n");
else
{
if (i % 3 == 0)
printf("Fizz\n");
else if (i % 5 == 0)
printf("Buzz\n");
else
printf("%d\n", i);
}
}
return 0;
}

577. Como contratar malabaristas « La Naturaleza Del Software - December 26, 2010

[…] primero que mido es si el candidato sabe  programar, el filtro FizzBuzz es asombroso, en un post anterior les propuse este test, normalmente esta o una pregunta similar va […]

578. Fizz-Buzz Code Challenge « CodeFarrell - December 27, 2010

[…] Code Challenge December 26, 2010 // 0 I came across this post outlining a simple coding challenge and thought I’d try to do it in […]

Farrell Kramer's avatar 579. Farrell Kramer - December 27, 2010

I just came across your post and gave it a try. It seemed pretty easy, though I’ve just started learning to code.

Here’s my solution in Python. Hope I got it right. (I printed the ints together with the Fizz/Buzz notations to make the output easier to read.)

i = 0
while i <= 100:
if i != 0 and i % 3 == 0 and i % 5 == 0:
print(i, " Fizz-Buzz")
elif i != 0 and i % 3 == 0:
print(i, " Fizz")
elif i != 0 and i % 5 == 0:
print(i, " Buzz")
else:
print(i)
i = i + 1

L.'s avatar L. - January 11, 2012

Again .. useless checks . luckily you admit to being new … but still .. one should realize 15 = 3*5 and checking again and again and again if indeed it is the case looks a bit like fail

vinod's avatar 580. vinod - December 30, 2010

Wow that is crazy!

I found some good questions to weed out programmers on this site:

http://www.programmerinterview.com

Penis Enlargement - Bigger Penis's avatar 581. Penis Enlargement - Bigger Penis - January 5, 2011

Penis Enlargement is not a Myth, its been done for centuries. Read this very interesting report a see how you can have a Bigger Penis too.

582. Problem 1 | Project Euler: C++ & Python - January 9, 2011

[…] not an exclusive or, that is, multiples of 3 and 5 (i.e. 15) are counted. This is an example of a FizzBuzz […]

Marcao's avatar 583. Marcao - January 13, 2011

The problem with the idea of the “third variable swap” question, it is not as using two variables is good coding, but if it’s not a stupid way to select candidates. You know only one way, and in your assunption you believe that this is the only way of doing something. That kind of test is only a way of discovering a bad manager, not a bad candidate. sorry.

584. www.christian-rehn.de » SE1: FizzBuzz - January 14, 2011

[…] Der ursprüngliche Post ist der hier. […]

Dinesh's avatar 585. Dinesh - January 19, 2011

Here is the simple code
declare @v1 int;
set @v1=1;
while (@v1<101)
begin
if (@v1%3 =0 and @v1%5 =0)
print 'FizzBuzz'
else
if (@v1%3=0)
print 'Fizz'
else
if(@v1%5 =0)
print 'Buzz'
else

print @v1

set @v1=@v1+1;

end

Chris's avatar 586. Chris - January 27, 2011

To post 581:

yourPenis ^ biggerPenis ^ yourPenis ^ biggerPenis

done…

Eric's avatar 587. Eric - February 1, 2011

Python

for x in range(1,101):
print [x,”Fizz”,”Buzz”,”Fizz-Buzz”][(x%3==0)+(x%5==0)*2]

ari-free's avatar 588. ari-free - February 7, 2011

I’m not a CS graduate. I just finished chapter 6 in Starting out with C++ by Gaddis:

C++ (indenting may be off but that’s why I don’t use python…)

int main()
{
int num;
const int FIZZ=3, BUZZ=5, FIZZBUZZ=15;
// FIZZBUZZ is a multiple of FIZZ and BUZZ

for (int i=1; i <= 100; i++)
{
num = i;
if (! (i % FIZZBUZZ) )
{
cout << "FizzBuzz" << endl;
} // if (! (i % FIZZBUZZ) )

else if (! (i % FIZZ) )
{
cout << "Fizz" << endl;
} // if (! (i % FIZZ) )

else if (! (i % BUZZ) )
{
cout << "Buzz" << endl;
} // if (! (i % BUZZ) )

else
{
cout << num << endl;
} // else

} // for (i = 1; i < 100; i++)

return 0;

} // int main()

ari-free's avatar ari-free - February 7, 2011

Version 2:
int main()
{
int num;
int fizz = 3, buzz = 5, fizzbuzz;
int endLoop = 100;

fizzbuzz = fizz * buzz; // FIZZBUZZ is a multiple of FIZZ and BUZZ

for (int i=1; i <= endLoop; i++)
{
num = i;
if (! (i % fizzbuzz) )
{
cout << "FizzBuzz" << endl;
} // if (! (i % fizzbuzz) )

else if (! (i % fizz) )
{
cout << "Fizz" << endl;
} // if (! (i % fizz) )

else if (! (i % buzz) )
{
cout << "Buzz" << endl;
} // if (! (i % buzz) )

else
{
cout << num << endl;
} // else

} // for (i = 1; i < endLoop; i++)

return 0;

} // int main()

ari-free's avatar 589. ari-free - February 8, 2011

Nobody even attempted to answer the original question which is why can’t most programmer applicants do this? How were they able to graduate? I can understand if we’re talking about people who majored in the humanities and learned programming on their own with one of the dummies books and a copy/paste point-and-click wizard approach. But something is seriously wrong with the university system if even CS graduates can’t pass this simple test.

hotsleeper's avatar 590. hotsleeper - February 27, 2011

This comment is for the completely anal rules lawyers out there….

#include
// It’s a string so no replacement is needed.
void main( void )
{
std::cout << "the numbers 1 to 100" << std::endl;
}

hotsleeper's avatar 591. hotsleeper - February 28, 2011

There should be an “iostream” in angle brackets after the “#include” but it was lost in translation I guess….

hotsleeper's avatar 592. hotsleeper - February 28, 2011

How strange. I posted 50 seconds apart and got dates on two different days… wonder what will happen if I post again…?

Marcel Kincaid's avatar 593. Marcel Kincaid - February 28, 2011

“I don’t see the point in avoiding the third variable.”

The point is that someone said that people who don’t start with one should be written off.

As for FizzBuzz, I would hire the person who used this code or equivalent logic:

for( int i = 1; i <= 100; i++ ){
if( (i%3) && (i%5) )
printf("%d", i);
else{
if( !(i%3) ) fputs("Fizz", stdout);
if( !(i%5) ) fputs("Buzz", stdout);
}
putchar('\n');
}

Tom Eberhard's avatar 594. Tom Eberhard - March 1, 2011

Uh, unreadable one-liners are cool, but what about maintainability and performance?

// FizzBuzz without costly % operation.
private void FizzBuzzButton_Click(object sender, EventArgs e)
{
int t = 0;
int f = 0;

StringBuilder output = new StringBuilder();

for (int i = 1; i < 101; i++)
{
t++;
f++;
if (t == 3)
{
output.Append("Fizz");
t = 0;
if ( f == 5 )
{
output.Append("Buzz");
f = 0;
}
}
else if (f == 5)
{
output.Append("Buzz");
f = 0;
}
else
{
output.Append(i.ToString());
}
output.AppendLine();
}

textBox1.Text = output.ToString();
}

595. Chris Lyon › FizzBuzz - March 11, 2011

[…] just testing the new blog, so I’ve posted a pointless solution to the FizzBuzz problem: Write a program that prints the numbers from 1 to 100. But for multiples of three print […]

Gristle's avatar 596. Gristle - March 16, 2011

Typical. Poster makes a good point. Commenters miss the point, use the opportunity to compare their dicks.

Anybody doing any of this “too clever by half” shit in an interview would be right out.

Franz-Robert's avatar 597. Franz-Robert - March 16, 2011

Hi there,

I was wondering if you would mind sharing a couple of other FizzBuzz questions you created over time?

Cheers!
Franz-Robert

598. Visual Studio 2010 and C# at the STI Global City ICT Roadshow 2011 « .NET @ Kape ni LaTtEX - March 19, 2011

[…] presented on Visual Studio 2010 IDE features, along with a "strange" version of FizzBuzz used to demonstrate C# features like generics and lambda […]

Jay Vaughan's avatar 599. Jay Vaughan - March 21, 2011

#include ‹stdio.h>

int main(int argc, char *argv[])
{
int i = 0;
while (++i ‹= 100)
printf(“%s%s%.0d\n”,
((!(i % 3)) ? “fizz” : “”),
(!(i % 5) ? “buzz” : “”),
((i % 3) && (i % 5) ? i : 0));

}

Transio's avatar 600. Transio - March 21, 2011

Simplest solution possible..

for ($i=1;$i<=100;$i++) echo $i%15?($i%3?($i%5?$i:"Buzz"):"Fizz"):"FizzBuzz";

fewf's avatar 601. fewf - March 26, 2011

java
public static void main(String[] args) {
// TODO code application logic here
int a = 0;
int b = 0;

for (int i=1; i<=100; i++){
if (i%3==0){
a=1;
}
if (i%5==0){
b=1;
}
if (a==1 && b==1){
System.out.println("FizzBuzz");
}else if (a==1){
System.out.println("Fizz");
}else if (b==1){
System.out.println("Buzz");
}else{
System.out.println(i);
}
a=0;
b=0;
}
}

jinzihao's avatar 602. jinzihao - April 3, 2011

Visual Basic:
Private Sub Form_Load()
For i = 1 To 100
If i Mod 3 = 0 Then GoTo 3
If i Mod 5 = 0 Then GoTo 5
GoTo 1
3:
txtMain.Text = txtMain.Text + “Fizz”
GoTo 9
5:
txtMain.Text = txtMain.Text + “Buzz”
GoTo 9
1:
txtMain.Text = txtMain.Text + CStr(i)
GoTo 9
9:
Next i
End Sub

603. Rockstar Developers: With all these groupies around it’s hard to type. « Kav - April 8, 2011

[…] to agree there are a lot of folks out there that can’t code their way out of a paper bag (see FizzBuzz failures), these people aren’t developers. If you want to hire an excellent developer then say that, […]

Guy Zundel's avatar 604. Guy Zundel - April 13, 2011

I highly recommend this website!

Elliot Kave's avatar 605. Elliot Kave - April 14, 2011

Not sure this posted before but I really like this website

606. A Glance at FizzBuzz » alex lewis - April 20, 2011

[…] FizzBuzz is an extremely simple but widely used programming test.  The gist of it is this: print integers 1 through 100; if the number is divisible by 3, print “Fizz,” and if the number is divisible by 5, print “Buzz.” I put together a quick solution (skip the code if you want to try it yourself) […]

James's avatar 607. James - April 22, 2011

That’s a fargin’ trick question!

Tom M.'s avatar 608. Tom M. - April 23, 2011

I’m astounded, this test failed people. Really!?!?. How about I turn the tables around and refuse to work for an employer that doesn’t understand my answer 😉

;; Racket: fiz-bang… who needs loops?
(((lambda (f)
((lambda (h) (h h))
(lambda (h) (f (lambda args (apply (h h) args))))))
((lambda (max-val)
(lambda (fizzbang)
(lambda (i)
(unless (= max-val i)
(displayln
(cond [(zero? (remainder i 15)) “fizzbang”]
[(zero? (remainder i 3)) “fizz”]
[(zero? (remainder i 5)) “bang”]
[else i]))
(fizzbang (add1 i))))))
100))
1)

sigitp's avatar 609. sigitp - May 5, 2011

interesting, I am a cellular packet core network engineer, but feels challenged to this task.

here is my answer:

Using FizzBuzz to Find Developers who Grok Coding

dudeguyman's avatar 610. dudeguyman - May 7, 2011

I don’t understand the criticisms for the if/elif/else solution to the fizzbuzz problem. It’s very readable code, compared to writing a convoluted solution in one line. If we’re talking about productivity, readability is essential to accomplish your goal.

611. Quora - May 9, 2011

Which SQL interview questions effectively test depth of experience and knowledge?…

Jeremy: it doesn’t really work that way. If you have a candidate who has somehow stumbled on this list, AND prepared themselves with correct answers, they aren’t necessarily a cheat who knows nothing about SQL 🙂 Compare to the Fizzbuzz test, which i…

Haris Buchal's avatar 612. Haris Buchal - May 13, 2011

It’s funny. This is not just true in development world but also in Systems & Networking as well. I coded for a while myself and almost went to work for M$ after graduating with CS degree. Then decided to switch from programing to better understand the whole cycle and loved networks and systems.

Most of the programmers don’t have a clue what’s going on the infrast. side and vice versa.

Theory is easier than Logic.

That’s why whenever I interview anyone for a job. I ask them logical questions rather than technical questions. I want to see how a person solves a problem.

Here is the code in JAVA.

public class FizzBuzz {

public static void main(String[] args) {

for (int i = 1; i <=100; i++) {

if (i%3 == 0 && i%5 == 0)
System.out.println("FizzBuzz");
else if (i%3 == 0)
System.out.println("Fizz");
else if (i%5 == 0)
System.out.println("Buzz");
else
System.out.println(i);
}

}
}

Anon's avatar 613. Anon - May 13, 2011

testing
code
tag on this
blog...
coding blog
should have

 tags 

614. The Best Resources on Hiring for Founders - June 1, 2011

[…] A simple technical screening question – by Imran […]

http://www.links.com's avatar 615. http://www.links.com - June 20, 2011

please see my website

Adam Bourg's avatar 616. Adam Bourg - July 4, 2011

One solution for Fizz buzz in PHP
<?php
for($i=1; $i < 101; $i++)
{
if($i%3==0)
{
if($i%15==0) {
echo "FizzBuzz “;
} else {
echo “Fizz “;
}
} else if($i%5==0)
{
if($i%15==0) {
echo “FizzBuzz “;
} else {
echo “Buzz “;
}
} else
{
echo $i . “”;
}
}
?>

Mike Klein's avatar 617. Mike Klein - July 19, 2011

Since nobody else
(except for #346.. just read more carefully)
seems to have thrown in the data-driven approach,
I thought I would…
If I were hiring, that would go to the top of the stack.

I’m learning Haskell, so here we go:

module Main where
— for motivation, see https://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/
import Data.List (filter, intercalate)
import Data.Maybe (fromJust)

zzDictionary = [(3, “Fizz”), (5, “Buzz”)]

n `divides` m = (m `mod` n) == 0 — I suppose it would be nice to use a pipe ‘|’

fizzBuzzFactors n = filter (`divides` n) possibleFizzBuzzFactors
where possibleFizzBuzzFactors = map fst zzDictionary

fizzBuzz n = if null fbFactors
then show n
else concatMap (\factor -> fromJust $ lookup factor zzDictionary) fbFactors
where fbFactors = fizzBuzzFactors n

answer = map fizzBuzz [1..100]
prettyPrint = intercalate “, ”
main = putStrLn $ prettyPrint answer

— Mike Klein (please, no YAGNI comments)

Mike Klein's avatar 618. Mike Klein - July 19, 2011

For completeness, here’s my first version:

module Main where

main = putStrLn $ prettyPrint answer

isFizz n = (n `rem` 3) == 0
isBuzz n = (n `rem` 5) == 0
fizzBuzz n = case (isFizz n, isBuzz n) of
(True,True) -> “fizzbuzz”
(True,False) -> “fizz”
(False,True) -> “buzz”
(False,False) -> show n

answer = map fizzBuzz [1..100]
prettyPrint = concatMap (++ ” “)

Mike Klein's avatar 619. Mike Klein - July 20, 2011

AArgh!!! so much for layout languages in blog responses!

msangel's avatar 620. msangel - July 22, 2011

a=[];for(i=1;i<101;i++){s='';!(i%3)?s+='Fizz':1;if(!(i%5))s+='Buzz';if(s=='')s=i;a[i-1]=s;}console.log(a+'');

— msangel

msangel's avatar msangel - July 22, 2011

it is javascript

Michael Schmidt (@MichaelRSchmidt)'s avatar 621. Michael Schmidt (@MichaelRSchmidt) - August 17, 2011

C# – no repeating of strings – come on people, Fizz should appear once and Buzz should appear once. Since it is a console app I can use Console.CursorLeft to see if I have already output… so no temporary variables and no converting to strings.

for (int i = 1; i <= 100; i++)
{
if (i % 3 == 0) Console.Write("Fizz");
if (i % 5 == 0) Console.Write("Buzz");
Console.WriteLine((Console.CursorLeft == 0) ? "{0}" : "", i);
}

622. Uriel’s FizzBuzz - Uriel - August 18, 2011

[…] was referring to post on another blog, imranontech.com, where the author stated that he used the FizzBuzz question to filter out programmers. So, I wanted to try out and see if I could answer the question. Write a […]

Vitalij S.'s avatar 623. Vitalij S. - August 29, 2011

here the simplest solution for me in java pseudocode:
prettyprint was the hardest tough 😉

for(int i = 1 ; i <= 100 ; i++)
{
boolean done = false;

if(i%3 == 0){
Syso("Fizz")
done = true;
}
if(i%5 == 0) {
Syso("Buzz")
done =true;
}

if ( done == false){
Syso(i);
}
//print linebreak
Syso("\n");
}

Vitalij S.'s avatar 624. Vitalij S. - August 29, 2011

Sorry for the double-Guest-post, but just one thing i just remarked:
Why are there so many programmers, which try obfuscate their code, just to fit it in one line ?

On most of the suggestions here i would think: “WTF is he doing here? Ah wait a moment … Fizz .. Buzz, both or the integer … ahh .. what a dick would obfuscated this simple shit like that ?!”

Just remember to code, “like the guy who will maintain it, will be a violent psychopath who knows where you live.”

Dunno from which genius the quote is, but its a good rule to code by 😉

625. (Code) Golfing at the office - September 7, 2011

[…] Problem 1: implement FizzBuzz: Print the integers 1 to 100, but replace multiples of 3 with “Fizz” and multiples of 5 […]

626. Quora - September 8, 2011

Which are some good sources for preparing pre-employment tests for hiring fresher programmers for a startup?…

Having some sort of programming test is a great way to filter out weak candidates (although you’ll find others who strongly disagree). I am a fan of a couple of standard exercises that can be completed in just about any programming language and tend w…

Franz@Brant.com's avatar 627. Franz@Brant.com - September 11, 2011

@Vitali S.:

“Why are there so many programmers, which try obfuscate their code, just to fit it in one line ?”

I guess it is the sort of programmers who think that shortening the source-code will automagically shorten the object code as well =P

Vasyl Khrystyuk's avatar 628. Vasyl Khrystyuk - September 16, 2011

JavaScript:

_$=[];for($=0;$++<100;){_='';!($%3)?_+='Fizz':1;if(!($%5))_+='Buzz';if(_=='')_=$;_$[$-1]=_;}console.log(_$+'');

Gui's avatar 629. Gui - September 18, 2011

C#:

static void Main(string[] args)
{
for(int i = 1; i<=100; i++)
{
if (i % 3 == 0 && i % 5 == 0)
{
Console.WriteLine("FizzBuzz" + i.ToString());
}
if (i % 3 == 0)
Console.WriteLine("Fizz");
else if (i % 5 == 0)
Console.WriteLine("Buzz");
}
Console.Read();
}

Alex Meiburg's avatar 630. Alex Meiburg - September 28, 2011

Good way to test:
Send them problems from the USACO training set. If they can solve the first few, they’re pretty efficient programmers.
(A bit of help with I/O is always acceptable here – it’s just about algorithmics)

Freyaday's avatar 631. Freyaday - September 30, 2011

Axe

.FIZZBUZZ
.this is a comment
For(Q,1,100)
If Q^3
.^ is Axe’s modulo command. A^B is A mod B
Disp “FIZZ”
End
If Q^5
Disp “BUZZ”
End
!If Q^3?Q^5
. A?B is equivalent to C’s A && B
Disp Q
End
Disp i
.Newline
End

Freyaday's avatar Freyaday - September 30, 2011

Whoops, didn’t catch this, but
If Q^3 should be !If Q^3
and
If Q^5 should be !If Q^5
!If is kind of the opposite of If, it executes the code if the condition evaluates to 0 instead of nonzero

Hina Naz's avatar 632. Hina Naz - December 1, 2011

this is the coolest, thanks! Just what I was looking for. My Favorite Wife SMS
Thank YOu Very Much

Jean-Victor Côté's avatar 633. Jean-Victor Côté - December 19, 2011

Here is an answer in R:
numbers <- 1:100
div3 <- (numbers %% 3 == 0)
div5 <- (numbers %% 5 == 0)
ifelse(div3,ifelse(div5,"Fizz-Buzz","Fizz"),ifelse(div5,"Buzz",numbers))

634. What are some FizzBuzz-type questions for web or SQL developers? | Q&A System - December 21, 2011

[…] I’m reviewing tests for programmers; some of them are a bit out of date. What are some of the FizzBuzz-type questions for web developers and SQL? That is, not too trivial, but still solvable in five to ten minutes […]

635. Which FizzBuzz solution is the most efficient? | Articulating ideas - January 8, 2012

[…] solution is the most efficient? January 8, 2012 This little “poor-developer filter” was discussed and solved many […]

natural treatment for hemorrhoids at home's avatar 636. natural treatment for hemorrhoids at home - February 5, 2012

[…]we came across a cool web site that you simply may delight in. Take a search for those who want[…]

milkshake's avatar 637. milkshake - February 15, 2012

took me about about 3-5 mins to write in php:

$m3=3;
$m5=5;
for($i=1;$i<=100;$i++){
switch($i){

case $m3:
echo "Fizz”;
$m3=($m3+3);
break;
case $m5:
echo “Buzz”;
$m5=($m5+5);
break;
default:
echo “$i”;
}
}

638. clark county auto auction - February 20, 2012

clark county auto auction…

[…]Using FizzBuzz to Find Developers who Grok Coding « Imran On Tech[…]…

Certified translator's avatar 639. Certified translator - February 25, 2012

[…]we came across a cool web site which you may get pleasure from. Take a appear for those who want[…]

640. T-SQL FizzBuzz | vincepergolizzi.com - February 28, 2012

[…] thought I would post my T-SQL version of the classic FizzBuzz programmer question, this is the blog post which it originates […]

firehouse subs's avatar 641. firehouse subs - March 1, 2012

[…]one of our guests lately suggested the following website[…]

Anders's avatar 642. Anders - March 7, 2012

took me just below 5 minutes copy pasting each line

Console.WriteLine(1);
Console.WriteLine(2);
Console.WriteLine(“Fizz”);
Console.WriteLine(4);
Console.WriteLine(“Buzz”);
Console.WriteLine(“Fizz”);
Console.WriteLine(7);
Console.WriteLine(8);
Console.WriteLine(“Fizz”);
Console.WriteLine(“Buzz”);
Console.WriteLine(11);
Console.WriteLine(“Fizz”);
Console.WriteLine(13);
Console.WriteLine(14);
Console.WriteLine(“FizzBuzz”);
Console.WriteLine(16);
Console.WriteLine(17);
Console.WriteLine(“Fizz”);
.
,
,
Console.WriteLine(“Buzz”);

😛

Raymond Lumsden's avatar 643. Raymond Lumsden - March 17, 2012

[…]although websites we backlink to below are considerably not connected to ours, we really feel they are really really worth a go via, so have a look[…]

Richard Barnes's avatar 644. Richard Barnes - March 19, 2012

A multitude of solutions ranging from C to 4th can be found at

http://c2.com/cgi/wiki?FizzBuzzTest

http://dream-analysis.org's avatar 645. http://dream-analysis.org - March 20, 2012

I have to express my thanks to this writer just for bailing me out of this type of condition. As a result of checking throughout the the web and finding views which were not productive, I believed my life was done. Existing minus the answers to the issues you have sorted out by means of this post is a serious case, and the kind that might have in a negative way affected my career if I had not discovered the website. Your actual talents and kindness in taking care of all the things was useful. I don’t know what I would’ve done if I had not come across such a stuff like this. I’m able to now look ahead to my future. Thanks very much for your reliable and results-oriented guide. I won’t hesitate to recommend your web page to anyone who will need guidelines about this problem.

bobs your unlcce's avatar bobs your unlcce - April 20, 2012

I guess that this is your solution to the fizzbuzz problem, but what programming language is it? 🙂

Wesley's avatar 646. Wesley - April 3, 2012

import Control.Applicative

check n | n `mod` 15 == 0 = “FizzBuzz”
| n `mod` 5 == 0 = “Buzz”
| n `mod` 3 == 0 = “Fizz”
| otherwise = show n

main = print $ check [1..100]

Wesley's avatar Wesley - April 3, 2012

The blog removed the call to fmap (in applicative form) that was in between check and [1..100] presumably because it has pointed brackets and thinks I was trying to inject html.

Andy's avatar 647. Andy - April 9, 2012

Here’s one in R (apologies for lack of line breaks):

fizzbuzz = function(i, multiples = c(3,5), text = c(“Fizz”, “Buzz”)) {
words = text[i %% multiples == 0]
if (length(words) == 0)
as.character(i)
else
paste(words, collapse = “”)
}

sapply(1:100,fizzbuzz)

It’s also more general, e.g., you can call

sapply(1:200,function(x) fizzbuzz(x, c(3,5,7), c(“Fizz”,”Buzz”,”Bang”)))

Also… how about one which generates the naive answer:

unwindfizzbuzz = function(from, to, multiples = c(3,5), text = c(“Fizz”, “Buzz”)) {
res = sapply(from:to,fizzbuzz)
for (r in res) {
cat(“cat(‘”)
cat(r)
cat(“‘,’\\n’)”)
cat(“\n”)
}
}

🙂

> unwindfizzbuzz(1,100)
cat(‘1′,’\n’)
cat(‘2′,’\n’)
cat(‘Fizz’,’\n’)
cat(‘4′,’\n’)
cat(‘Buzz’,’\n’)
cat(‘Fizz’,’\n’)
cat(‘7′,’\n’)
cat(‘8′,’\n’)
cat(‘Fizz’,’\n’)
cat(‘Buzz’,’\n’)
cat(’11’,’\n’)
cat(‘Fizz’,’\n’)
cat(’13’,’\n’)
cat(’14’,’\n’)
cat(‘FizzBuzz’,’\n’)
cat(’16’,’\n’)
cat(’17’,’\n’)
cat(‘Fizz’,’\n’)
cat(’19’,’\n’)
cat(‘Buzz’,’\n’)
cat(‘Fizz’,’\n’)
cat(’22’,’\n’)
cat(’23’,’\n’)
cat(‘Fizz’,’\n’)
cat(‘Buzz’,’\n’)
cat(’26’,’\n’)
cat(‘Fizz’,’\n’)
cat(’28’,’\n’)
cat(’29’,’\n’)
cat(‘FizzBuzz’,’\n’)
cat(’31’,’\n’)
cat(’32’,’\n’)
cat(‘Fizz’,’\n’)
cat(’34’,’\n’)
cat(‘Buzz’,’\n’)
cat(‘Fizz’,’\n’)
cat(’37’,’\n’)
cat(’38’,’\n’)
cat(‘Fizz’,’\n’)
cat(‘Buzz’,’\n’)
cat(’41’,’\n’)
cat(‘Fizz’,’\n’)
cat(’43’,’\n’)
cat(’44’,’\n’)
cat(‘FizzBuzz’,’\n’)
cat(’46’,’\n’)
cat(’47’,’\n’)
cat(‘Fizz’,’\n’)
cat(’49’,’\n’)
cat(‘Buzz’,’\n’)
cat(‘Fizz’,’\n’)
cat(’52’,’\n’)
cat(’53’,’\n’)
cat(‘Fizz’,’\n’)
cat(‘Buzz’,’\n’)
cat(’56’,’\n’)
cat(‘Fizz’,’\n’)
cat(’58’,’\n’)
cat(’59’,’\n’)
cat(‘FizzBuzz’,’\n’)
cat(’61’,’\n’)
cat(’62’,’\n’)
cat(‘Fizz’,’\n’)
cat(’64’,’\n’)
cat(‘Buzz’,’\n’)
cat(‘Fizz’,’\n’)
cat(’67’,’\n’)
cat(’68’,’\n’)
cat(‘Fizz’,’\n’)
cat(‘Buzz’,’\n’)
cat(’71’,’\n’)
cat(‘Fizz’,’\n’)
cat(’73’,’\n’)
cat(’74’,’\n’)
cat(‘FizzBuzz’,’\n’)
cat(’76’,’\n’)
cat(’77’,’\n’)
cat(‘Fizz’,’\n’)
cat(’79’,’\n’)
cat(‘Buzz’,’\n’)
cat(‘Fizz’,’\n’)
cat(’82’,’\n’)
cat(’83’,’\n’)
cat(‘Fizz’,’\n’)
cat(‘Buzz’,’\n’)
cat(’86’,’\n’)
cat(‘Fizz’,’\n’)
cat(’88’,’\n’)
cat(’89’,’\n’)
cat(‘FizzBuzz’,’\n’)
cat(’91’,’\n’)
cat(’92’,’\n’)
cat(‘Fizz’,’\n’)
cat(’94’,’\n’)
cat(‘Buzz’,’\n’)
cat(‘Fizz’,’\n’)
cat(’97’,’\n’)
cat(’98’,’\n’)
cat(‘Fizz’,’\n’)
cat(‘Buzz’,’\n’)

Pisto's avatar 648. Pisto - April 11, 2012

What, no Ada?

with Ada.Text_IO;
use Ada.Text_IO;
procedure FizzBuzz is
N : Positive := 100; — Max. count
begin
for i in 1 .. N loop
Put(” “); –nice formatting
if (i mod 15) = 0 then
Put_Line(“Fizz-Buzz”); –newline after every ‘fizzbuzz’
elsif (i mod 3) = 0 then –multiples of 15 can’t fall through
Put(“Fizz”);
elsif (i mod 5) = 0 then
Put(“Buzz”);
else
Put(Integer’Image(i));
end if;
end loop;
end FizzBuzz;

Pisto's avatar Pisto - April 11, 2012

Ugh, how sloppy of me. For consistency, that should be


else
Put(Positive’Image(i));
end if;

And the comment double dashes rendered into em-dashes…

Gui R's avatar 649. Gui R - April 21, 2012

My implementation in java: http://pastebin.com/XTYeDcNU
I tried to make it as fast/efficient and clean as possible. Suggestion/tips/criticisms welcome.

أساحبي's avatar 650. أساحبي - April 22, 2012

While all of you nice people wrote comments, Imran is not having fun on the beach, or dead, i wish him well i don’t know the dude, anyways, what makes a good programmer? MONEY … if you make good money making software you are a good programmer, period.

651. Interviewing Programmers (Or: When FizzBuzz is asking too much) | Brian Williammee - April 22, 2012

[…] entered the software development lexicon in 2007, when Imran Ghory wrote a post about a simple programming problem that can weed out those who just aren’t very good when it […]

MATLAB guy's avatar 652. MATLAB guy - April 29, 2012

x = 1:100;
out = cellstr( num2str(x(:), ‘%d’) );
out(mod(x,3)==0) = {‘Fizz’};
out(mod(x,5)==0) = {‘Buzz’};
out(mod(x,15)==0) = {‘FizzBuzz’};
disp( strtrim(out) )

khaln's avatar 653. khaln - May 21, 2012

ksa

Luke Peters (@MoonlightLuke)'s avatar 654. Luke Peters (@MoonlightLuke) - May 23, 2012

Simple jQuery FizzBuzz script 😀 Quick and dirty, lol.
http://jsfiddle.net/lukempeters/LEDsG/

coder's avatar 655. coder - May 25, 2012
Hannes S.'s avatar 656. Hannes S. - June 15, 2012

Guys, I can’t believe that pure SQL is missing here. 😉

select
case
when (n % 15) = 0 then ‘FizzBuzz’
when (n % 3) = 0 then ‘Fizz’
when (n % 5) = 0 then ‘Buzz’
else n
end
from (
select (10 * digit2.n) + digit1.n + 1 n
from (
select 0 n union select 1 n union select 2 n union
select 3 n union select 4 n union select 5 n union
select 6 n union select 7 n union select 8 n union
select 9 n
) digit2, (
select 0 n union select 1 n union select 2 n union
select 3 n union select 4 n union select 5 n union
select 6 n union select 7 n union select 8 n union
select 9 n
) digit1
) t;

Hannes S.'s avatar 657. Hannes S. - June 15, 2012

Works at least using SQLite.

Hannes S.'s avatar Hannes S. - June 15, 2012

Also works in MySQL when adding “order by n” at the end.

Matias Persson's avatar 658. Matias Persson - June 23, 2012

Lol? This is so stupid. I did this in 2 minutes, and I’m 16 years old.

public class Main {
public static void main(String[] args) {
for(int x = 1; x<=100; x++) {
if(x%3 == 0 && x%5 == 0) {
System.out.println("Fizz-Buzz");
}
else if(x%3 == 0) {
System.out.println("Fizz");
} else if(x%5 == 0) {
System.out.println("Buzz");
} else {
System.out.println(x);
}
}
}
}

Output:

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
Fizz-Buzz
16
17
Fizz
19
Buzz
Fizz
22
23
Fizz
Buzz
26
Fizz
28
29
Fizz-Buzz
31
32
Fizz
34
Buzz
Fizz
37
38
Fizz
Buzz
41
Fizz
43
44
Fizz-Buzz
46
47
Fizz
49
Buzz
Fizz
52
53
Fizz
Buzz
56
Fizz
58
59
Fizz-Buzz
61
62
Fizz
64
Buzz
Fizz
67
68
Fizz
Buzz
71
Fizz
73
74
Fizz-Buzz
76
77
Fizz
79
Buzz
Fizz
82
83
Fizz
Buzz
86
Fizz
88
89
Fizz-Buzz
91
92
Fizz
94
Buzz
Fizz
97
98
Fizz
Buzz

juan's avatar 659. juan - June 27, 2012

google: “programming know is number is multiple of 3” 20 seconds on find the right answer

Gratefuldad0004's avatar Gratefuldad0004 - June 27, 2012

How’s this for a 2 minute solution in C?

for( int i = 1 ; i <= 100; i++)
(i%3 && i%5) ? printf("%d\n", i) : printf("%s%s\n", (!(i%3) ? "Fizz" : ""), (!(i%5) ? "Buzz" : ""));

My bit of "wisdom" for the day: if you love coding or developing don't let yourself get sucked into management. It's so much like the Dark Side. 😦

ajungren's avatar 660. ajungren - July 2, 2012

Here’s my (intentionally obfuscated) C version: http://pastebin.com/cFusuLux

You don’t really need the “& 1” part, but I kept it for consistency. On the plus side, it only does the actual multiple checking once!

Bob Fuscated's avatar 661. Bob Fuscated - July 2, 2012

#include
int main(){
int i;
for(i=1; i<=100; i++){
switch((2+i/3-(i+2)/3)*(3+i/5-(i+4)/5)-2){
case 1: printf("Buzz\n"); break;
case 2: printf("Fizz\n"); break;
case 4: printf("FizzBuzz\n"); break;
default: printf("%d\n",i);
}
}

Bob Fuscated's avatar 662. Bob Fuscated - July 2, 2012

With escape chars…

#include \
int main(){
int i;
for(i=1; i<=100; i++){
switch((2+i/3-(i+2)/3)*(3+i/5-(i+4)/5)-2){
case 1: printf("Buzz\n"); break;
case 2: printf("Fizz\n"); break;
case 4: printf("FizzBuzz\n"); break;
default: printf("%d\n",i);
}}
return 0;
}

Oliver Lassen's avatar 663. Oliver Lassen - July 19, 2012

In Javascript

for(var i = 0; i <= 100; i++){

if (((i % 3) == 0) && ((i % 5) == 0)){
console.log("fizz buzz");
}else if ((i % 5) == 0){
console.log("buzz");
}else if ((i % 3) == 0){
console.log("fizz");
}else{
console.log(i);
}
}

Took me 2 minutes..

this blog's avatar 664. this blog - August 9, 2012

WOW just what I was searching for. Came here by searching for
3d printers

665. Fizzbuzz and other logic puzzles · Big Ideas by Jezen Thomas - August 23, 2012

[…] first problem is from an article by Imran Ghory. His description of ‘Fizzbuzz’ is as follows. Write a program that prints the numbers […]

nick's avatar 666. nick - August 24, 2012

and in c++ (probably again…im not trawling through all the comments!)

for (int i = 1; i<=100; i++)
{
if ((i%3)==0 && !(i%5) == 0) {
cout << "fizz" << endl;
} else if (!(i%3)==0 && (i%5)==0) {
cout << "buzz" << endl;
} else if ((i%3==0) && (i%5)==0) {
cout << "fizzbuzz" << endl;
} else {
cout << i << endl;
}
}

French-Man's avatar 667. French-Man - August 30, 2012

Pseudo-Code

for i=1 to 100

/*compute the state
n=0
if i modulo 3 == 0 then n = n+2
if i modulo 5 == 0 then n = n+4

/* acting
switch (n)
case 2 : print(“Fizz”) /*(case 010 in binary)
case 4 : print(“Buzz”) /*(case 100 in binary)
case 6 : print(“Fizzz-Buzzz”) /*(case 110 in binary)
default: print(i)

Easier to understand and reading when the states and the actions are separated
Easy to add a condition, like remplacing the multiple 7 by “Big” and 11 by “Bang”
Avoids, prevent the “if / ifelse / else” noodles dish.
Usefull in real life, for example with the options in the sales contract or in a production line.

pPromoKristenfzb's avatar 668. pPromoKristenfzb - September 26, 2012

Hey! nice post you have there. Thank you^^

aMailoElrodztdri's avatar 669. aMailoElrodztdri - September 27, 2012

http://www.elottery888.com There is a vast quantity of facts on the web site you’ve began. Many thanks.

pAlingaDogtfg's avatar 670. pAlingaDogtfg - September 27, 2012

https://twitter.com/#!/CafeNoailles You were given sweet description related to how to update websites

jHowNedfkap's avatar 671. jHowNedfkap - September 27, 2012

Love the post! and i love the website, really useful info here

wRedBrucevw's avatar 672. wRedBrucevw - September 27, 2012

Really helpful idea for me . br Will you publish some far more ? coz i need to adhere to ur twitter or facebook

jAlexJetwe's avatar 673. jAlexJetwe - September 27, 2012

What a super weblog! to very much info and a incredibly short lifestyle hehehehe continue to keep it up, fine function
camper vans hire in Broxburn

aWowKierstinduqag's avatar 674. aWowKierstinduqag - September 28, 2012

http://www.internationaldreams.co.uk/ I believed your article was great and will go to often.

aJohnBrucegdqb's avatar 675. aJohnBrucegdqb - September 28, 2012

Excellent post. I was checking continuously this blog and I’m impressed! Very useful information specifically the last part 🙂 I care for such information a lot. I was seeking this certain information for a very long time. Thank you and best of luck.

tSueraShanemqmaq's avatar 676. tSueraShanemqmaq - September 28, 2012

http://jointpainpatch.com You’r site is nice and you indeed run your blog for fun.

jBoaPromojshw's avatar 677. jBoaPromojshw - September 28, 2012

http://www.smithprinting.net/ I have recently discovered your site and enjoy each article. I love your talent.

xJohnNasonkehe's avatar 678. xJohnNasonkehe - September 29, 2012

http://jointpainpatch.com I loved as much as you’ll receive carried out right here. The sketch is tasteful, your authored material stylish. nonetheless, you command get bought an impatience over that you wish be delivering the following. unwell unquestionably come further formerly again since exactly the same nearly a lot often inside case you shield this hike.

jNazemeShanedxzh's avatar 679. jNazemeShanedxzh - September 30, 2012

http://www.smithprinting.net/ Hmm, there looks to become some difficulties while using initial link, because it returns a 404 error

aBlueSierrauqsc's avatar 680. aBlueSierrauqsc - September 30, 2012

Hmm, there looks being some difficulties with the 1st link, because it returns a 404 error

oTommyBrucenb's avatar 681. oTommyBrucenb - September 30, 2012

http://www.ashevillephotography.co/ I think your comment on the new website ring very true for all. Very well articulated. I see forward to see more here.

gNazemeDoleuvfyhx's avatar 682. gNazemeDoleuvfyhx - September 30, 2012

With thanks for this fantastic internet site. I’m trying to go through some more posts but I cant get your web site to display appropriately in my Opera Browser. Many thanks again.

bSelsoJordanbqdu's avatar 683. bSelsoJordanbqdu - October 1, 2012

http://svideocable.org I need to say that this submit could be the most relevant posting I’ve ever understand and saw. It is a great support to everyone who’s seeking for this info.

mBaileysWowajapp's avatar 684. mBaileysWowajapp - October 1, 2012

http://www.assuryacht.com After examine just a few of the blog posts in your website now, and I really like your method of blogging. I bookmarked it to my bookmark web site record and might be checking again soon. Pls take a look at my site as effectively and let me know what you think.

hSeanLegaicx's avatar 685. hSeanLegaicx - October 2, 2012

http://gorillastructures.com/BuildYourCarport.html This is definitely wonderful concept dude.iam truly proud of you . Do u have twitter?? i want to stick to you .thx

oKaitlinMrxjazf's avatar 686. oKaitlinMrxjazf - October 2, 2012

http://www.internationaldreams.co.uk/ FYI, your webpage doesn’t look suitable in Opera.

dMaxSolofs's avatar 687. dMaxSolofs - October 3, 2012

http://radionics1.com Be glad of existence mainly because it gives you the chance to love, to function, to play, and to appear up at the stars.

bXrShawnug's avatar 688. bXrShawnug - October 4, 2012

http://spinecentertx.com Oh my goodness! a tremendous article dude. Thanks Nonetheless I’m experiencing challenge with ur rss . Don’t know why Unable to subscribe to it. Is there anyone getting an identical rss problem? Anybody who knows kindly respond. Thnkx

sJetCodeclek's avatar 689. sJetCodeclek - October 4, 2012

Thanks for taking the time to discuss this, I feel can find any information in article and discus forum
motor homes for hire in Argyll

aSelsoRisaentfp's avatar 690. aSelsoRisaentfp - October 4, 2012

http://sanjosebackpainrelief.com Many thanks and Please preserve updating your Webpage. I are going to be stopping by each time you do . br

cLegaiMailohbyhg's avatar 691. cLegaiMailohbyhg - October 4, 2012

http://alphey.com Youre so cool! I dont suppose Ive learn something like this before. So nice to find anyone with some authentic ideas on this subject. realy thanks for beginning this up. this website is something that is needed on the internet, somebody with a little originality. useful job for bringing something new to the internet!

nJasonMrxvhbae's avatar 692. nJasonMrxvhbae - October 4, 2012

http://veneers-cost.com Wow, I have a weblog too but I can’t write at the same time as you do. Very good stuff.

hCelsoCodecq's avatar 693. hCelsoCodecq - October 5, 2012

http://radionics1.com Like many others, this is my first moment commenting here. I really adore this website and see it pretty often.

vKristenLegaifx's avatar 694. vKristenLegaifx - October 6, 2012

http://essentialoilsguide.co Hey your site is awesome, I very enjoyed it.

lKristenDogyhcckd's avatar 695. lKristenDogyhcckd - October 6, 2012

http://spinecentertx.com Hey your blogs are very nice. It help for my business. Thank you for putting this.

yhSoelSeannp's avatar 696. yhSoelSeannp - October 8, 2012

I’m from Latvia and I can’t speak english quite well, but this post is really useful.
http://www.google.com

aTomAlavjhah's avatar 697. aTomAlavjhah - October 8, 2012

http://www.miagenesis.com It’s onerous to search out knowledgeable folks on this subject, but you sound like you already know what you’re talking about! Thanks

Harrison Pratt, DO's avatar 698. Harrison Pratt, DO - October 8, 2012

Visual Prolog 5.2 solution for FizzBuzz:
/*
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”.
*/
PREDICATES
fb( integer )
enum_fb( integer, integer )

CLAUSES
fb( I ):-
I mod 3 = 0,
write( “Fizz” ),
I mod 5 0, !.
fb( I ):-
I mod 5 = 0,
write( “Buzz” ), !.
fb( I ):-
write( I ).

enum_fb( N, Last ):- N > Last, !.
enum_fb( N, Last ):-
write( “\n”),
fb( N ),
Next = N + 1,
enum_fb( Next, Last ).

GOAL
enum_fb( 1, 100 ).

Rahul's avatar 699. Rahul - October 13, 2012

#include
#include
using namespace std;

int main()
{
int i;

for(i=1; i<=100; i++)
{
if((i%3)==0)
{
if((i%5)==0)
{
cout<<"FizzBuzz\n";
}

else
{
cout<<"Fizz\n";
}
}

else if((i%5)==0)
{
cout<<"Buzz\n";
}

else
{
cout<<i<<"\n";
}

}

getch();
return 0;
}

Zbyszek's avatar 700. Zbyszek - October 19, 2012

Unreadable shitty version in JS:

for (var k=2,str=”,A = new Array(‘Fizz’,’Buzz’); k<=((str += (str=='' || str[str.length-1]=='\n' ? k-1 : '')+'\n')?100:0);k++) for (var s in A) if (k%((76-A[s].charCodeAt(0))/2)==0) str += A[s];

window.alert(str);

Every task can be done by many ways. This example is bad in readibility and in performance. Just for fun doing it a bad way. 😉

gBaileysChrichtonda's avatar 701. gBaileysChrichtonda - October 19, 2012

https://www.youtube.com/watch?v=kerK5YYKmzQ Wow, I’ve a webpage too but I can’t write as well as you do. Excellent stuff.

pTomNeduaejo's avatar 702. pTomNeduaejo - October 20, 2012

Hello! useful post you have there. Thank you;)

kBoaMaxinejlp's avatar 703. kBoaMaxinejlp - October 21, 2012

Thanks so much for the great advice.

tDemodwhololbjom's avatar 704. tDemodwhololbjom - October 24, 2012

This is really great notion dude.iam genuinely proud of you . br Do u have twitter?? i would like to adhere to you .thx

Java Programmer's avatar 705. Java Programmer - October 27, 2012

Great questions, this is mostly asked. Thanks

yhDoleRoshansgcdo's avatar 706. yhDoleRoshansgcdo - November 9, 2012

Many thanks for taking the time to discuss this, I feel can discover any info in write-up and discus forum

jSelsoCelsoplvyh's avatar 707. jSelsoCelsoplvyh - November 9, 2012

Hey! I’ve bookmarked your website because you have so cool posts here and I would like to read some more.

tKierstinRishanfsa's avatar 708. tKierstinRishanfsa - November 9, 2012

I believed your article was great and will go to typically.

dElrodPromodexro's avatar 709. dElrodPromodexro - November 10, 2012

This publish was very nicely written, and it also contains a lot of valuable details. I appreciated your professional manner of writing this article. You might have created it simple for me to fully grasp.

pShaceSelsoxou's avatar 710. pShaceSelsoxou - November 10, 2012

I’m not sure where you are getting your info, but good topic. I needs to spend some time learning more or understanding more. Thanks for fantastic information I was looking for this information for my mission.

aRoleDelingaxola's avatar 711. aRoleDelingaxola - November 10, 2012

Aw, this was a really nice post. In concept I wish to put in writing like this additionally – taking time and actual effort to make a very good article… however what can I say… I procrastinate alot and on no account seem to get something done.

jDelingaBjoexfi's avatar 712. jDelingaBjoexfi - November 10, 2012

Cheers and Please maintain updating your Blog. I will be stopping by every single time you do . br

Unknown's avatar 713. FizzBuzz in Erlang | Surviving by Coding - November 10, 2012

[…] I was reading some Erlang, I stumbled upon the term FizzBuzz and how it is used to test programmers (and I just realized that my former employer used this to test me…). I found this Erlang […]

lKierstinAlatn's avatar 714. lKierstinAlatn - November 11, 2012

I incredibly a great deal appreciate your website below, thank you so a lot you have helped me out greatly Smile spread the adore.

715. 天空の城のFizz-Buzz | 機上の極論 - November 12, 2012

[…] Using FizzBuzz to Find Developers who Grok Coding – Imran On Tech (2007.1.24) […]

jNasonSierraajei's avatar 716. jNasonSierraajei - November 13, 2012

FYI, your blog doesn’t seem suitable in Opera.

717. FizzBuzz Still Works — Global Nerdy - November 15, 2012

[…] I was surprised to find that only one of the candidates had heard of FizzBuzz. I was under the impression that that it had worked its way into the developer world’s collective consciousness since Imran Ghory wrote about the test back in January 2007: […]

718. Thoughts on IKM Assessment « erlang:get_cookie(). - December 21, 2012

[…] (Ref.: CodingHorror and Imran on Tech) […]

Ali's avatar 719. Ali - January 10, 2013

It’s simple:
(In Python)
Ints = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33}
count = 1
while count <= 100:
if count:3 in Ints:
print "Fizz"
elif count:5 in Ints:
print "Buzz"
elif count:15 in Ints:
print "Fizz-Buzz"
else:
print count
count = count+1

Alex G's avatar 720. Alex G - January 16, 2013

I am a first year CS student. Hear is my Java solution:

for (int i = 1; i <= 100; ++i)
{
boolean modThree = (i%3 == 0);
boolean modFive = (i%5 == 0);

if (!modThree && !modFive)
{
System.out.print(i);
}

else
{
if (modThree)
{
System.out.print("Fizz");
}
if (modFive)
{
System.out.print("Buzz");
}
}
System.out.println();
}

721. Teaching Advanced Software Engineering | Semantic Werks - January 25, 2013

[…] are not able to write code (not good code, or even mediocre code – just not write code! See Fizzbuzz). It is very difficult to (defensibly) identify these people, however. One technique which I should […]

722. How NOT to do technical recruiting: Sunil Kumar of Panzer Solutions : Dragons in the Algorithm - February 1, 2013

[…] But Mr. Kumar didn’t write me about a position commiserate with my specific skills, he wrote to tell me “We have more than 100 W2 working currently with successful hit.” (That’s not quite English, but it’s fairly close.) There are recruiters who work hard to match up a particular applicant with a position where their skills and their career/environment preferences are a good fit. When I am doing the hiring (and just to note, Capital One is hiring right now in the Wilmington area), I love working with these recruiters: they bring me just 3 resumes and I end up wanting to bring in all 3 for further interviews. That’s a much more pleasant experience than digging through a stack of resumes most of whom can’t pass the FizzBuzz test. […]

723. FizzBuzz…. The sad state of programming talent… | shoelessrob - February 2, 2013

[…] interview programming challenge that is meant to “weed out” people that cannot program ( see https://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/ for some background). Needless to say I was curious, so I decided to use FizzBuzz in my attempt to […]

Anubhav's avatar 724. Anubhav - February 27, 2013

I like this kind of short exercise in pen and paper, Here another one how to swap two numbers without using temp variable in Java, with couple of more ways

Dave's avatar 725. Dave - March 6, 2013

I recently started to participate in interviews for new hires as well as co-op students. I prepared some questions for our Java-based web application team. Out of six candidates for full-time positions, all of whom had listed more than 3 years of professional experience in Java on their resume, not a single one was able to answer any of my questions. My manager said I was going too hard on the new hires. I was at a loss.

Example questions I asked (all prefaced with “in the context of Java SE”):

– What is the difference between inheritance and encapsulation?
– What is a difference between a List and a Set?
– What is immutability? Can you give an example?
– Can you explain generics? Are they a compile-time or a run-time construct?

For co-op students, I was unable to find a single student in 3rd or 4th year computer science or engineering that could tell me what the difference between an interface and a class was – one of them was able to after a few minutes of “wait, wait, wait” and flipping through papers.

Am I being unreasonable here? I am a non-graduate, and invested a lot of time on my own learning both theory and application and I’m constantly terrified that I am at a disadvantage in my profession because I did not get to go to school. It seems like everyone is either much, much better than me, or much, much worse.

kelvinsilva69kelvin's avatar 726. kelvinsilva69kelvin - March 10, 2013

2 cents, im a beginner
took me like 5-7 minutes

if (counter % 3 == 0){

cout << "fizz";
}else if (counter % 5 == 0){
cout << "buzz";
}else if ((counter % 5 == 0 && counter % 3 == 0)) cout << "fizzbuzz";
else cout<< counter;

counter++;

}

kelvinsilva69's avatar kelvinsilva69 - March 10, 2013

fuck, forgot the loop. but oh well, this is the main part of the programm.

Dimitri M's avatar 727. Dimitri M - March 13, 2013

<?php

for($i=1;$i<100;$i++)
{
$buff = ($i%3==0)?"Fizz":"";
$buff .= ($i%5==0)?"Buzz":"";
echo ($buff?$buff:$i)."”;
}

Dimitri M's avatar 728. Dimitri M - March 13, 2013

br got eaten between the quotes in “echo” line

CM's avatar 729. CM - March 13, 2013

//FizzBuzz
for (int x=1; x<=100; x++){
if (x%3==0 && x%5==0){
System.out.println("FizzBuzz");
continue;
}
if (x%5==0){
System.out.println("Buzz");
continue;
}
if (x%3==0){
System.out.println("Fizz");
continue;
}
else
System.out.println(x);
}

Steve's avatar 730. Steve - March 17, 2013

for(int i = 1; i <= 100; i++){

bool bFizz = i % 3 == 0;
bool bBuzz = i % 5 == 0;

if(!bFizz && !bBuzz){
printf("%d\n", i);
} else {
if(bFizz)
printf("Fizz", i);
if(bBuzz)
printf("Buzz", i);
printf("\n", i);
}

}

cute club dresses's avatar 731. cute club dresses - March 19, 2013

Oh my goodness! Awesome article dude! Thank you so
much, However I am experiencing troubles with your RSS.
I don’t know why I am unable to join it. Is there anybody else getting similar RSS issues? Anyone who knows the answer will you kindly respond? Thanks!!

alex's avatar 732. alex - March 19, 2013

print “\n”.join([((str(x), “buzz”), (“fizz”, “fizzbuzz”))[x%3==0][x%5==0] for x in xrange(100)])

Christian Louboutin's avatar 733. Christian Louboutin - March 19, 2013

I was suggested this blog by my cousin. I am not sure whether this post is
written by him as nobody else know such detailed about my problem.
You’re amazing! Thanks!

virtual offices phoenix's avatar 734. virtual offices phoenix - March 20, 2013

This is really interesting, You’re a very skilled blogger. I’ve joined
your rss feed and look forward to seeking more of
your magnificent post. Also, I’ve shared your web site in my social networks!

pizza's avatar 735. pizza - March 20, 2013

Your method of describing everything in this paragraph is really fastidious,
all be capable of effortlessly know it, Thanks a lot.

grosir baju murah online's avatar 736. grosir baju murah online - March 20, 2013

Aw, this was an exceptionally good post. Taking the time and actual effort
to produce a really good article… but what can I say… I procrastinate a lot and
don’t manage to get anything done.

laptops's avatar 737. laptops - March 20, 2013

Undeniably believe that which you said. Your favorite justification seemed to be on the web the
simplest thing to be aware of. I say to you, I definitely get annoyed while people think about worries that
they just do not know about. You managed to hit the nail upon the top as
well as defined out the whole thing without having side-effects , people
can take a signal. Will likely be back to get more.
Thanks

Nike Free Run's avatar 738. Nike Free Run - March 21, 2013

Have you ever thought about including a little bit more than just your
articles? I mean, what you say is fundamental and
all. However just imagine if you added some great graphics or videos
to give your posts more, “pop”! Your content is excellent but with pics and clips, this blog could certainly be one of the best in its niche.
Excellent blog!

Ted's woodworking's avatar 739. Ted's woodworking - March 22, 2013

Hi there, all the time i used to check weblog posts here in
the early hours in the break of day, because i enjoy
to gain knowledge of more and more.

how to make money with photography's avatar 740. how to make money with photography - March 22, 2013

Right now it seems like Movable Type is the top blogging platform out there
right now. (from what I’ve read) Is that what you’re using on your blog?

second hand tools's avatar 741. second hand tools - March 23, 2013

I really like it whenever people get together and share views.
Great website, stick with it!

year in review's avatar 742. year in review - March 24, 2013

Hey there! I’ve been reading your website for some time now and finally got the courage to go ahead and give you a shout out from Porter Tx! Just wanted to tell you keep up the excellent job!

customer service training's avatar 743. customer service training - March 24, 2013

Write more, thats all I have to say. Literally, it seems as though you
relied on the video to make your point. You obviously know what youre talking about,
why throw away your intelligence on just posting videos to your weblog when you could be
giving us something enlightening to read?

cockface's avatar 744. cockface - March 25, 2013

Hurrah! In the end I got a blog from where I
be able to genuinely take useful data concerning my study and knowledge.

baterii de tractiune Cesab's avatar 745. baterii de tractiune Cesab - March 26, 2013

Hi great blog! Does running a blog similar to this
require a massive amount work? I have no knowledge of
computer programming but I had been hoping to start my own
blog in the near future. Anyways, if you have any ideas or techniques
for new blog owners please share. I understand this is off subject but I simply had to ask.
Thanks a lot!

Best Cupcake's avatar 746. Best Cupcake - March 26, 2013

Gingerbread in its many forms brings a touch of history to the holidays.
So if the psychological benefit of being able to say “I just
ate three Hostess chocolate cupcakes” or “I just ate three banana muffins”
is important to you, you’re going to love this product. When looking for centerpiece ideas, do not be afraid to venture into centerpiece ideas for all sorts of occasions.

casket for sale's avatar 747. casket for sale - March 27, 2013

{
{I have|I’ve} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It’s|It is} pretty worth enough for me.
{In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners}
and bloggers made good content as you did, the {internet|net|web} will
be {much more|a lot more} useful than ever before.

|
I {couldn’t|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I’ll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} your {rss|rss feed} as I {can not|can’t} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you’ve} any?
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe.
Thanks.|
{It is|It’s} {appropriate|perfect|the best} time to make some plans for the future and {it is|it’s} time
to be happy. {I have|I’ve} read this post and if I could I {want to|wish to|desire to} suggest you {few|some} interesting things or {advice|suggestions|tips}. {Perhaps|Maybe} you {could|can} write next articles referring to this article. I {want to|wish to|desire to} read {more|even more} things about it!|
{It is|It’s} {appropriate|perfect|the best} time to make
{a few|some} plans for {the future|the longer term|the long run} and {it is|it’s} time to be happy. {I have|I’ve} {read|learn} this {post|submit|publish|put
up} and if I {may just|may|could} I {want to|wish to|desire to} {suggest|recommend|counsel} you {few|some} {interesting|fascinating|attention-grabbing} {things|issues} or {advice|suggestions|tips}.

{Perhaps|Maybe} you {could|can} write {next|subsequent} articles {relating to|referring to|regarding} this article.
I {want to|wish to|desire to} {read|learn} {more|even more} {things|issues} {approximately|about} it!
|
{I have|I’ve} been {surfing|browsing} {online|on-line} {more than|greater than} {three|3} hours {these days|nowadays|today|lately|as of late}, {yet|but} I {never|by no means} {found|discovered} any {interesting|fascinating|attention-grabbing} article like yours. {It’s|It is} {lovely|pretty|beautiful} {worth|value|price} {enough|sufficient} for
me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web
owners} and bloggers made {just right|good|excellent} {content|content material}
as {you did|you probably did}, the {internet|net|web} {will be|shall be|might be|will probably be|can be|will likely be} {much more|a
lot more} {useful|helpful} than ever before.|
Ahaa, its {nice|pleasant|good|fastidious} {discussion|conversation|dialogue} {regarding|concerning|about|on the topic of} this {article|post|piece of
writing|paragraph} {here|at this place} at this
{blog|weblog|webpage|website|web site}, I have read all that,
so {now|at this time} me also commenting {here|at this place}.
|
I am sure this {article|post|piece of writing|paragraph} has touched all the internet {users|people|viewers|visitors}, its really really {nice|pleasant|good|fastidious} {article|post|piece of writing|paragraph} on
building up new {blog|weblog|webpage|website|web site}.|
Wow, this {article|post|piece of writing|paragraph} is {nice|pleasant|good|fastidious}, my {sister|younger sister} is analyzing {such|these|these kinds of} things, {so|thus|therefore} I am going to {tell|inform|let know|convey} her.
|
{Saved as a favorite|bookmarked!!}, {I really like|I like|I love}
{your blog|your site|your web site|your website}!
|
Way cool! Some {very|extremely} valid points!
I appreciate you {writing this|penning this} {article|post|write-up} {and the|and also the|plus the} rest of the {site is|website
is} {also very|extremely|very|also really|really} good.
|
Hi, {I do believe|I do think} {this is an excellent|this
is a great} {blog|website|web site|site}. I stumbledupon it ;
) {I will|I am going to|I’m going to|I may} {come back|return|revisit} {once again|yet again} {since I|since i have} {bookmarked|book marked|book-marked|saved as a favorite} it. Money and freedom {is the best|is the greatest} way to change, may you be rich and continue to {help|guide} {other people|others}.|
Woah! I’m really {loving|enjoying|digging} the template/theme of this {site|website|blog}.
It’s simple, yet effective. A lot of times it’s {very hard|very difficult|challenging|tough|difficult|hard} to get that “perfect balance” between {superb usability|user friendliness|usability} and {visual appearance|visual appeal|appearance}.

I must say {that you’ve|you have|you’ve} done a {awesome|amazing|very good|superb|fantastic|excellent|great} job with this.
{In addition|Additionally|Also}, the blog loads {very|extremely|super} {fast|quick} for me on {Safari|Internet explorer|Chrome|Opera|Firefox}.

{Superb|Exceptional|Outstanding|Excellent} Blog!

|
These are {really|actually|in fact|truly|genuinely} {great|enormous|impressive|wonderful|fantastic} ideas in {regarding|concerning|about|on the topic of} blogging.
You have touched some {nice|pleasant|good|fastidious}
{points|factors|things} here. Any way keep up wrinting.|
{I love|I really like|I enjoy|I like|Everyone loves} what you
guys {are|are usually|tend to be} up too.

{This sort of|This type of|Such|This kind of} clever work
and {exposure|coverage|reporting}! Keep up the {superb|terrific|very good|great|good|awesome|fantastic|excellent|amazing|wonderful} works guys I’ve {incorporated||added|included} you guys to {|my|our||my personal|my own} blogroll.|
{Howdy|Hi there|Hey there|Hi|Hello|Hey}! Someone in my {Myspace|Facebook} group shared this {site|website} with us so I came to {give it a look|look it over|take a look|check it out}. I’m definitely {enjoying|loving} the information.
I’m {book-marking|bookmarking} and will be tweeting this to my followers! {Terrific|Wonderful|Great|Fantastic|Outstanding|Exceptional|Superb|Excellent} blog and {wonderful|terrific|brilliant|amazing|great|excellent|fantastic|outstanding|superb} {style and design|design and style|design}.|
{I love|I really like|I enjoy|I like|Everyone loves} what you guys {are|are usually|tend to be} up too. {This sort of|This type of|Such|This kind of} clever work and {exposure|coverage|reporting}! Keep up the {superb|terrific|very good|great|good|awesome|fantastic|excellent|amazing|wonderful} works guys I’ve
{incorporated|added|included} you guys to {|my|our|my
personal|my own} blogroll.|
{Howdy|Hi there|Hey there|Hi|Hello|Hey} would you mind {stating|sharing} which blog platform
you’re {working with|using}? I’m {looking|planning|going} to start my own blog {in the near future|soon} but I’m having a {tough|difficult|hard} time {making a decision|selecting|choosing|deciding} between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your {design and style|design|layout} seems different then most blogs and I’m
looking for something {completely unique|unique}.

P.S {My apologies|Apologies|Sorry} for {getting|being} off-topic
but I had to ask!|
{Howdy|Hi there|Hi|Hey there|Hello|Hey} would you mind letting me know which {webhost|hosting
company|web host} you’re {utilizing|working with|using}? I’ve loaded your blog in 3 {completely different|different} {internet browsers|web browsers|browsers} and I must say this blog loads
a lot {quicker|faster} then most. Can you {suggest|recommend} a good {internet hosting|web hosting|hosting} provider at
a {honest|reasonable|fair} price? {Thanks a lot|Kudos|Cheers|Thank
you|Many thanks|Thanks}, I appreciate it!
|
{I love|I really like|I like|Everyone loves} it {when
people|when individuals|when folks|whenever people} {come together|get together} and share {opinions|thoughts|views|ideas}.

Great {blog|website|site}, {keep it up|continue the good work|stick with
it}!|
Thank you for the {auspicious|good} writeup. It in
fact was a amusement account it. Look advanced to {far|more}
added agreeable from you! {By the way|However}, how {can|could} we communicate?
|
{Howdy|Hi there|Hey there|Hello|Hey} just wanted to give you a
quick heads up. The {text|words} in your {content|post|article} seem to be running
off the screen in {Ie|Internet explorer|Chrome|Firefox|Safari|Opera}.
I’m not sure if this is a {format|formatting} issue or something to do with {web browser|internet browser|browser} compatibility but I {thought|figured} I’d post to let
you know. The {style and design|design and style|layout|design} look great though!

Hope you get the {problem|issue} {solved|resolved|fixed} soon.

{Kudos|Cheers|Many thanks|Thanks}|
This is a topic {that is|that’s|which is} {close to|near to} my heart… {Cheers|Many thanks|Best wishes|Take care|Thank you}! {Where|Exactly where} are your contact details though?|
It’s very {easy|simple|trouble-free|straightforward|effortless} to find out any {topic|matter} on {net|web} as compared to {books|textbooks}, as I
found this {article|post|piece of writing|paragraph}
at this {website|web site|site|web page}.|
Does your {site|website|blog} have a contact page? I’m having {a tough time|problems|trouble} locating it but, I’d like to {send|shoot} you an {e-mail|email}.

I’ve got some {creative ideas|recommendations|suggestions|ideas} for your blog you might be interested in hearing. Either way, great {site|website|blog} and I look forward to seeing it {develop|improve|expand|grow} over time.|
{Hola|Hey there|Hi|Hello|Greetings}! I’ve been {following|reading} your {site|web site|website|weblog|blog}
for {a long time|a while|some time} now and finally got the {bravery|courage} to go ahead and give you
a shout out from {New Caney|Kingwood|Huffman|Porter|Houston|Dallas|Austin|Lubbock|Humble|Atascocita} {Tx|Texas}!
Just wanted to {tell you|mention|say} keep up the {fantastic|excellent|great|good} {job|work}!

|
Greetings from {Idaho|Carolina|Ohio|Colorado|Florida|Los angeles|California}!
I’m {bored to tears|bored to death|bored} at work so I decided to {check out|browse} your {site|website|blog} on my iphone during lunch break. I {enjoy|really like|love} the {knowledge|info|information} you {present|provide} here and can’t wait
to take a look when I get home. I’m {shocked|amazed|surprised} at how {quick|fast} your blog loaded on my {mobile|cell phone|phone} .. I’m not even using
WIFI, just 3G .. {Anyhow|Anyways}, {awesome|amazing|very good|superb|good|wonderful|fantastic|excellent|great} {site|blog}!
|
Its {like you|such as you} {read|learn} my {mind|thoughts}!
You {seem|appear} {to understand|to know|to grasp} {so much|a lot} {approximately|about} this, {like you|such as you} wrote the {book|e-book|guide|ebook|e book} in it or something.
{I think|I feel|I believe} {that you|that you simply|that you just} {could|can} do with {some|a few} {%|p.c.|percent} to {force|pressure|drive|power} the message {house|home} {a bit|a little bit}, {however|but} {other than|instead of} that, {this is|that is} {great|wonderful|fantastic|magnificent|excellent} blog. {A great|An excellent|A fantastic} read. {I’ll|I will} {definitely|certainly} be back.|
I visited {multiple|many|several|various} {websites|sites|web sites|web pages|blogs} {but|except|however} the audio {quality|feature} for audio songs {current|present|existing} at this {website|web site|site|web page} is {really|actually|in fact|truly|genuinely} {marvelous|wonderful|excellent|fabulous|superb}.|
{Howdy|Hi there|Hi|Hello}, i read your blog {occasionally|from time to time} and i own a similar one and i was just {wondering|curious} if you get a lot of spam {comments|responses|feedback|remarks}? If so how do you {prevent|reduce|stop|protect against} it, any plugin or anything you can {advise|suggest|recommend}? I get so much lately it’s driving me {mad|insane|crazy} so any {assistance|help|support} is very much appreciated.|
Greetings! {Very helpful|Very useful} advice {within this|in this particular} {article|post}! {It is the|It’s the} little changes {that make|which will make|that produce|that will make} {the biggest|the largest|the greatest|the most important|the most significant} changes. {Thanks a lot|Thanks|Many thanks} for sharing!|
{I really|I truly|I seriously|I absolutely} love {your blog|your site|your website}.. {Very nice|Excellent|Pleasant|Great} colors & theme. Did you {create|develop|make|build} {this website|this site|this web site|this amazing site} yourself? Please reply back as I’m {looking to|trying to|planning to|wanting to|hoping to|attempting to} create {my own|my very own|my own personal} {blog|website|site} and {would like to|want to|would love to} {know|learn|find out} where you got this from or {what the|exactly what the|just what the} theme {is called|is named}. {Thanks|Many thanks|Thank you|Cheers|Appreciate it|Kudos}!|
{Hi there|Hello there|Howdy}! This {post|article|blog post} {couldn’t|could not} be written {any better|much better}! {Reading through|Looking at|Going through|Looking through} this {post|article} reminds me of my previous roommate! He {always|constantly|continually} kept {talking about|preaching about} this. {I will|I’ll|I am going to|I most certainly will} {forward|send} {this article|this information|this post} to him. {Pretty sure|Fairly certain} {he will|he’ll|he’s going to} {have a good|have a very good|have a great} read. {Thank you for|Thanks for|Many thanks for|I appreciate you for} sharing!|
{Wow|Whoa|Incredible|Amazing}! This blog looks {exactly|just} like my old one! It’s on a {completely|entirely|totally} different {topic|subject} but it has pretty much the same {layout|page layout} and design. {Excellent|Wonderful|Great|Outstanding|Superb} choice of colors!|
{There is|There’s} {definately|certainly} {a lot to|a great deal to} {know about|learn about|find out about} this {subject|topic|issue}. {I like|I love|I really like} {all the|all of the} points {you made|you’ve made|you have made}.|
{You made|You’ve made|You have made} some {decent|good|really good} points there. I {looked|checked} {on the internet|on the web|on the net} {for more info|for more information|to find out more|to learn more|for additional information} about the issue and found {most individuals|most people} will go along with your views on {this website|this site|this web site}.|
{Hi|Hello|Hi there|What’s up}, I {log on to|check|read} your {new stuff|blogs|blog} {regularly|like every week|daily|on a regular basis}. Your {story-telling|writing|humoristic} style is {awesome|witty}, keep {doing what you’re doing|up the good work|it up}!|
I {simply|just} {could not|couldn’t} {leave|depart|go away} your {site|web site|website} {prior to|before} suggesting that I {really|extremely|actually} {enjoyed|loved} {the standard|the usual} {information|info} {a person|an individual} {supply|provide} {for your|on your|in your|to your} {visitors|guests}? Is {going to|gonna} be {back|again} {frequently|regularly|incessantly|steadily|ceaselessly|often|continuously} {in order to|to} {check up on|check out|inspect|investigate cross-check} new posts|
{I wanted|I needed|I want to|I need to} to thank you for this {great|excellent|fantastic|wonderful|good|very good} read!! I {definitely|certainly|absolutely} {enjoyed|loved} every {little bit of|bit of} it. {I have|I’ve got|I have got} you {bookmarked|book marked|book-marked|saved as a favorite} {to check out|to look at} new {stuff you|things you} post…|
{Hi|Hello|Hi there|What’s up}, just wanted to {mention|say|tell you}, I {enjoyed|liked|loved} this {article|post|blog post}. It was {inspiring|funny|practical|helpful}. Keep on posting!|
I {{leave|drop|{write|create}} a {comment|leave a response}|drop a {comment|leave a response}|{comment|leave a response}} {each time|when|whenever} I {appreciate|like|especially enjoy} a {post|article} on a {site|{blog|website}|site|website} or {I have|if I have} something to {add|contribute|valuable to contribute} {to the discussion|to the conversation}. {It is|Usually it is|Usually it’s|It’s} {a result of|triggered by|caused by} the {passion|fire|sincerness} {communicated|displayed} in the {post|article} I {read|looked at|browsed}. And {on|after} this {post|article} Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech. I {{was|was actually} moved|{was|was actually} excited} enough to {drop|{leave|drop|{write|create}}|post} a {thought|{comment|{comment|leave a response}a response}} {:-P|:)|;)|;-)|:-)} I {do have|actually do have} {{some|a few} questions|a couple of questions|2 questions} for you {if you {don’t|do not|usually do not|tend not to} mind|if it’s {allright|okay}}. {Is it|Could it be} {just|only|simply} me or {do|does it {seem|appear|give the impression|look|look as if|look like} like} {some|a few} of {the|these} {comments|responses|remarks} {look|appear|come across} {like they are|as if they are|like} {coming from|written by|left by} brain dead {people|visitors|folks|individuals}? 😛 And, if you are {posting|writing} {on|at} {other|additional} {sites|social sites|online sites|online social sites|places}, {I’d|I would} like to {follow|keep up with} {you|{anything|everything} {new|fresh} you have to post}. {Could|Would} you {list|make a list} {all|every one|the complete urls} of {your|all your} {social|communal|community|public|shared} {pages|sites} like your {twitter feed, Facebook page or linkedin profile|linkedin profile, Facebook page or twitter feed|Facebook page, twitter feed, or linkedin profile}?|
{Hi there|Hello}, I enjoy reading {all of|through} your {article|post|article post}. I {like|wanted} to write a little comment to support you.|
I {always|constantly|every time} spent my half an hour to read this {blog|weblog|webpage|website|web site}’s {articles|posts|articles or reviews|content} {everyday|daily|every day|all the time} along with a {cup|mug} of coffee.|
I {always|for all time|all the time|constantly|every time} emailed this {blog|weblog|webpage|website|web site} post page to all my {friends|associates|contacts}, {because|since|as|for the reason that} if like to read it {then|after that|next|afterward} my {friends|links|contacts} will too.|
My {coder|programmer|developer} is trying to {persuade|convince} me to move to .net from PHP. I have always disliked the idea because of the {expenses|costs}. But he’s tryiong none the less. I’ve been using {Movable-type|WordPress} on {a number of|a variety of|numerous|several|various} websites for about a year and am {nervous|anxious|worried|concerned} about switching to another platform. I have heard {fantastic|very good|excellent|great|good} things about blogengine.net. Is there a way I can {transfer|import} all my wordpress {content|posts} into it? {Any kind of|Any} help would be {really|greatly} appreciated!|
{Hello|Hi|Hello there|Hi there|Howdy|Good day}! I could have sworn I’ve {been to|visited} {this blog|this web site|this website|this site|your blog} before but after {browsing through|going through|looking at} {some of the|a few of the|many of the} {posts|articles} I realized it’s new to me. {Anyways|Anyhow|Nonetheless|Regardless}, I’m {definitely|certainly} {happy|pleased|delighted} {I found|I discovered|I came across|I stumbled upon} it and I’ll be {bookmarking|book-marking} it and checking back {frequently|regularly|often}!|
{Terrific|Great|Wonderful} {article|work}! {This is|That is} {the type of|the kind of} {information|info} {that are meant to|that are supposed to|that should} be shared {around the|across the} {web|internet|net}. {Disgrace|Shame} on {the {seek|search} engines|Google} for {now not|not|no longer} positioning this {post|submit|publish|put up} {upper|higher}! Come on over and {talk over with|discuss with|seek advice from|visit|consult with} my {site|web site|website} . {Thank you|Thanks} =)|
Heya {i’m|i am} for the first time here. I {came across|found} this board and I find It {truly|really} useful & it helped me out {a lot|much}. I hope to give something back and {help|aid} others like you {helped|aided} me.|
{Hi|Hello|Hi there|Hello there|Howdy|Greetings}, {I think|I believe|I do believe|I do think|There’s no doubt that} {your site|your website|your web site|your blog} {might be|may be|could be|could possibly be} having {browser|internet browser|web browser} compatibility {issues|problems}. {When I|Whenever I} {look at your|take a look at your} {website|web site|site|blog} in Safari, it looks fine {but when|however when|however, if|however, when} opening in {Internet Explorer|IE|I.E.}, {it has|it’s got} some overlapping issues. {I just|I simply|I merely} wanted to {give you a|provide you with a} quick heads up! {Other than that|Apart from that|Besides that|Aside from that}, {fantastic|wonderful|great|excellent} {blog|website|site}!|
{A person|Someone|Somebody} {necessarily|essentially} {lend a hand|help|assist} to make {seriously|critically|significantly|severely} {articles|posts} {I would|I might|I’d} state. {This is|That is} the {first|very first} time I frequented your {web page|website page} and {to this point|so far|thus far|up to now}? I {amazed|surprised} with the {research|analysis} you made to {create|make} {this actual|this particular} {post|submit|publish|put up} {incredible|amazing|extraordinary}. {Great|Wonderful|Fantastic|Magnificent|Excellent} {task|process|activity|job}!|
Heya {i’m|i am} for {the primary|the first} time here. I {came across|found} this board and I {in finding|find|to find} It {truly|really} {useful|helpful} & it helped me out {a lot|much}. {I am hoping|I hope|I’m hoping} {to give|to offer|to provide|to present} {something|one thing} {back|again} and {help|aid} others {like you|such as you} {helped|aided} me.|
{Hello|Hi|Hello there|Hi there|Howdy|Good day|Hey there}! {I just|I simply} {would like to|want to|wish to} {give you a|offer you a} {huge|big} thumbs up {for the|for your} {great|excellent} {info|information} {you have|you’ve got|you have got} {here|right here} on this post. {I will be|I’ll be|I am} {coming back to|returning to} {your blog|your site|your website|your web site} for more soon.|
I {always|all the time|every time} used to {read|study} {article|post|piece of writing|paragraph} in news papers but now as I am a user of {internet|web|net} {so|thus|therefore} from now I am using net for {articles|posts|articles or reviews|content}, thanks to web.|
Your {way|method|means|mode} of {describing|explaining|telling} {everything|all|the whole thing} in this {article|post|piece of writing|paragraph} is {really|actually|in fact|truly|genuinely} {nice|pleasant|good|fastidious}, {all|every one} {can|be able to|be capable of} {easily|without difficulty|effortlessly|simply} {understand|know|be aware of} it, Thanks a lot.|
{Hi|Hello} there, {I found|I discovered} your {blog|website|web site|site} {by means of|via|by the use of|by way of} Google {at the same time as|whilst|even as|while} {searching for|looking for} a {similar|comparable|related} {topic|matter|subject}, your {site|web site|website} {got here|came} up, it {looks|appears|seems|seems to be|appears to be like} {good|great}. {I have|I’ve} bookmarked it in my google bookmarks.
{Hello|Hi} there, {simply|just} {turned into|became|was|become|changed into} {aware of|alert to} your {blog|weblog} {thru|through|via} Google, {and found|and located} that {it is|it’s} {really|truly} informative. {I’m|I am} {gonna|going to} {watch out|be careful} for brussels. {I will|I’ll} {appreciate|be grateful} {if you|should you|when you|in the event you|in case you|for those who|if you happen to} {continue|proceed} this {in future}. {A lot of|Lots of|Many|Numerous} {other folks|folks|other people|people} {will be|shall be|might be|will probably be|can be|will likely be} benefited {from your|out of your} writing. Cheers!|
{I am|I’m} curious to find out what blog {system|platform} {you have been|you happen to be|you are|you’re} {working with|utilizing|using}? I’m {experiencing|having} some {minor|small} security {problems|issues} with my latest {site|website|blog} and {I would|I’d} like to find something more {safe|risk-free|safeguarded|secure}. Do you have any {solutions|suggestions|recommendations}?|
{I am|I’m} {extremely|really} impressed with your writing skills {and also|as well as} with the layout on your {blog|weblog}. Is this a paid theme or did you {customize|modify} it yourself? {Either way|Anyway} keep up the {nice|excellent} quality writing, {it’s|it is} rare to see a {nice|great} blog like this one {these days|nowadays|today}.|
{I am|I’m} {extremely|really} {inspired|impressed} {with your|together with your|along with your} writing {talents|skills|abilities} {and also|as {smartly|well|neatly} as} with the {layout|format|structure} {for your|on your|in your|to your} {blog|weblog}. {Is this|Is that this} a paid {subject|topic|subject matter|theme} or did you {customize|modify} it {yourself|your self}? {Either way|Anyway} {stay|keep} up the {nice|excellent} {quality|high quality} writing, {it’s|it is} {rare|uncommon} {to peer|to see|to look} a {nice|great} {blog|weblog} like this one {these days|nowadays|today}..|
{Hi|Hello}, Neat post. {There is|There’s} {a problem|an issue} {with your|together with your|along with your} {site|web site|website} in {internet|web} explorer, {may|might|could|would} {check|test} this? IE {still|nonetheless} is the {marketplace|market} {leader|chief} and {a large|a good|a big|a huge} {part of|section of|component to|portion of|component of|element of} {other folks|folks|other people|people} will {leave out|omit|miss|pass over} your {great|wonderful|fantastic|magnificent|excellent} writing {due to|because of} this problem.|
{I’m|I am} not sure where {you are|you’re} getting your {info|information}, but {good|great} topic. I needs to spend some time learning {more|much more} or understanding more. Thanks for {great|wonderful|fantastic|magnificent|excellent} {information|info} I was looking for this {information|info} for my mission.|
{Hi|Hello}, i think that i saw you visited my {blog|weblog|website|web site|site} {so|thus} i came to “return the favor”.{I am|I’m} {trying to|attempting to} find things to {improve|enhance} my {website|site|web site}!I suppose its ok to use {some of|a few of} your ideas!!\

saas marketing's avatar 748. saas marketing - March 27, 2013

What’s up everybody, here every one is sharing such experience, thus it’s pleasant to
read this web site, and I used to pay a quick visit this webpage everyday.

dailynhuathanhhien.vn's avatar 749. dailynhuathanhhien.vn - March 27, 2013

I just couldn’t leave your website prior to suggesting that I extremely enjoyed the usual information a person supply on your visitors? Is gonna be again steadily to check out new posts

anti aging's avatar 750. anti aging - March 27, 2013

This site really has all the info I wanted concerning this subject and didn’t know who to ask.

Stacie's avatar 751. Stacie - March 28, 2013

This is my first time pay a visit at here and i am genuinely happy to read everthing at
one place.

casino online's avatar 752. casino online - March 28, 2013

Have you ever considered writing an e-book or guest authoring on
other sites? I have a blog based upon on the same topics you discuss and would really like to have
you share some stories/information. I know my subscribers would value
your work. If you’re even remotely interested, feel free to shoot me an e-mail.

Publius's avatar 753. Publius - March 28, 2013

(function(){
var var1 = “1”;
var var2 = “2”;
function swap(swap1, swap2) {
var1 = swap2;
var2 = swap1;
}
console.log(“var1: ” + var1 + “, var2: ” + var2);
swap(var1, var2);
console.log(“var1: ” + var1 + “, var2: ” + var2);
}());

casual relationship's avatar 754. casual relationship - March 28, 2013

Hey! This is kind of off topic but I need some help from an
established blog. Is it tough to set up your own blog?
I’m not very techincal but I can figure things out pretty fast. I’m thinking about making my own but
I’m not sure where to begin. Do you have any tips or suggestions? Many thanks

wordpress artikelbild's avatar 755. wordpress artikelbild - March 30, 2013

Unquestionably believe that which you said. Your favorite reason appeared to be on the web the easiest thing to be aware of.

I say to you, I certainly get irked while
people think about worries that they just don’t know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side-effects , people could take a signal. Will probably be back to get more. Thanks

vur.me's avatar 756. vur.me - April 1, 2013

Greetings! Very useful advice within this article!

It is the little changes that produce the largest changes.
Thanks a lot for sharing!

pet food's avatar 757. pet food - April 1, 2013

Thanks for any other informative website.
Where else may just I get that type of info written in
such an ideal manner? I have a project that I am simply now working on, and I have been at the look out for such info.

What is Lasik Surgery?'s avatar 758. What is Lasik Surgery? - April 2, 2013

With havin so much content do you ever run into any problems of plagorism or copyright
infringement? My blog has a lot of exclusive content I’ve either created myself or outsourced but it looks like a lot of it is popping it up all over the internet without my authorization. Do you know any ways to help protect against content from being ripped off? I’d definitely appreciate it.

wynajem samochodów Gdynia's avatar 759. wynajem samochodów Gdynia - April 2, 2013

Hurrah, that’s what I was seeking for, what a data! existing here at this weblog, thanks admin of this web page.

canvas print's avatar 760. canvas print - April 2, 2013

Great post.

761. TexasSwede | Should everyone be a programmer? - April 2, 2013

[…] Imran Ghory, Imran on Tech […]

Hynek Vychodil's avatar 762. Hynek Vychodil - April 2, 2013

Erlang:
[ case {X rem 3, X rem 5} of {0,0} -> “FizzBuzz”; {0,_} -> “Fizz”; {_,0} -> “Buzz”; _ -> X end || X <- lists:seq(1,100) ].

treatment genital warts in women's avatar 763. treatment genital warts in women - April 3, 2013

Hello There. I found your blog using msn. This is an extremely well written article.

I’ll be sure to bookmark it and return to read more of your useful info. Thanks for the post. I’ll certainly comeback.

Earn money at Home's avatar 764. Earn money at Home - April 4, 2013

Very nice post. I just stumbled upon your blog and wanted to say
that I have really enjoyed surfing around your
blog posts. After all I will be subscribing to your rss feed
and I hope you write again soon!

gestor energetico's avatar 765. gestor energetico - April 4, 2013

Hello very nice website!! Guy .. Excellent .. Wonderful ..
I will bookmark your blog and take the feeds additionally?
I am happy to seek out a lot of useful information here in the publish, we’d like develop more strategies on this regard, thank you for sharing. . . . . .

spa treatments Auckland's avatar 766. spa treatments Auckland - April 7, 2013

Awesome! Its in fact amazing piece of writing, I have got much clear idea
regarding from this piece of writing.

Homemade Acne Treatments's avatar 767. Homemade Acne Treatments - April 8, 2013

Link exchange is nothing else except it is simply placing the other person’s web site link on your page at appropriate place and other person will also do similar in favor of you.

vegas sport odds's avatar 768. vegas sport odds - April 10, 2013

I like what you guys tend to be up too. This sort of clever
work and coverage! Keep up the wonderful works guys I’ve incorporated you guys to blogroll.

watch Simpsons online's avatar 769. watch Simpsons online - April 10, 2013

By the process, you’d receive constant updates regarding the pictures and tags being added and become the first within your circle to tag your friends. Characters, whether it be an actor playing a role or a cartoon character, adds a brand new dimension to any poster printing. The allows consumers remain fully turned off by all of the globe for quite a while offering complete amusement in addition to leisure.

Инструкция пользования's avatar 770. Инструкция пользования - April 10, 2013

Hello colleagues, how is everything, and what you
want to say regarding this piece of writing, in my view its
really awesome in favor of me.

A top photographer in cologne. Photostudio and fotografie in Germany Cologne. Fotograf in Cologne's avatar 771. A top photographer in cologne. Photostudio and fotografie in Germany Cologne. Fotograf in Cologne - April 11, 2013

I just like the helpful information you supply to your articles.
I will bookmark your weblog and take a look at once more here regularly.
I am somewhat certain I’ll learn many new stuff right here! Good luck for the next!

Safety First Tandem Pushchair's avatar 772. Safety First Tandem Pushchair - April 11, 2013

Hello there, just became aware of your blog through Google, and found
that it’s truly informative. I am gonna watch out for brussels. I’ll be grateful if you continue this in future.

Lots of people will be benefited from your writing. Cheers!

ALL FOR GAME/a>'s avatar 773. ALL FOR GAME/a> - April 12, 2013

I have been exploring for a bit for any high-quality articles
or blog posts in this kind of space . Exploring in Yahoo I at
last stumbled upon this web site. Reading this info So i’m glad to express that I have an incredibly just right uncanny feeling I found out just what I needed. I most for sure will make sure to do not put out of your mind this web site and provides it a glance regularly.

cats2rain.wikidot.com's avatar 774. cats2rain.wikidot.com - April 12, 2013

You have made some good points there. I checked on the web to learn more about the issue and found most people will go along with your views on this website.

bulgarian-dream.com's avatar 775. bulgarian-dream.com - April 13, 2013

It’s the best time to make some plans for the future and it’s time to be
happy. I’ve read this post and if I could I want to suggest you few interesting things or advice. Maybe you could write next articles referring to this article. I want to read more things about it!

water sliderental jax's avatar 776. water sliderental jax - April 13, 2013

Greetings, I think your blog might be having browser compatibility problems.
When I look at your blog in Safari, it looks fine but when opening in I.
E., it’s got some overlapping issues. I just wanted to give you a quick heads up! Apart from that, wonderful blog!

parquet carrelage's avatar 777. parquet carrelage - April 15, 2013

Hey! I just wanted to ask if you ever have any trouble with hackers?
My last blog (wordpress) was hacked and I ended up losing months of
hard work due to no backup. Do you have any solutions to stop hackers?

nike air max 1's avatar 778. nike air max 1 - April 15, 2013

Greetings from Los angeles! I’m bored to tears at work so I decided to check out your website on my iphone during lunch break. I really like the information you present here and can’t
wait to take a look when I get home. I’m amazed at how fast your blog loaded on my mobile .. I’m not even
using WIFI, just 3G .. Anyhow, great site!

magnetic sponsoring scam's avatar 779. magnetic sponsoring scam - April 15, 2013

This web site certainly has all of the information
I needed concerning this subject and didn’t know who to ask.

czyszczenie wysokociœnieniowe's avatar 780. czyszczenie wysokociœnieniowe - April 16, 2013

It’s actually a nice and useful piece of information. I am happy that you shared this useful information with us. Please stay us informed like this. Thanks for sharing.

web design tameside's avatar 781. web design tameside - April 17, 2013

Hello just wanted to give you a quick heads up. The words in
your article seem to be running off the screen in Chrome.
I’m not sure if this is a format issue or something to do with internet browser compatibility but I figured I’d post to let you know.
The style and design look great though! Hope you get the problem fixed soon.

Thanks

vegculturalcreatives.blogspot.fr's avatar 782. vegculturalcreatives.blogspot.fr - April 17, 2013

The Court of Appeal held that resolution of the predominant issues in the case of Paphos Car Hire but still only
40 minutes from Ercan Airport. After mumbling a few subtle and mostly inaudible expletives, we proceeded to the McCarran Paphos
Car Hire Center bus area with our bags in tow.

Waterproof's avatar 783. Waterproof - April 18, 2013

I am in fact delighted to read this weblog
posts which carries lots of helpful facts, thanks for providing these kinds of statistics.

prix-guide.net's avatar 784. prix-guide.net - April 18, 2013

WOW just what I was searching for. Came here by searching for coupon clippers

mortgage rates's avatar 785. mortgage rates - April 18, 2013

My partner and I absolutely love your blog and find the majority of your post’s to be what precisely I’m looking for.
Do you offer guest writers to write content to suit your needs?
I wouldn’t mind producing a post or elaborating on a number of the subjects you write related to here. Again, awesome web log!

property management's avatar 786. property management - April 18, 2013

Pretty nice post. I simply stumbled upon your weblog and wanted to
mention that I’ve really enjoyed surfing around your weblog posts. In any case I will be subscribing for your feed and I’m hoping you write again very soon!

Dawn's avatar 787. Dawn - April 19, 2013

Hello, constantly i used to check webpage posts here in
the early hours in the dawn, because i love to gain knowledge of more and more.

Pure Leverage's avatar 788. Pure Leverage - April 19, 2013

Right now it sounds like Movable Type is the best blogging
platform available right now. (from what I’ve read) Is that what you are using on your blog?

oceanic cable blog's avatar 789. oceanic cable blog - April 19, 2013

It wouldn’t have mattered if this were the stand out indie horror of the year someone would have still leap at the chance to twist its name against it. Select the services, options and service length which are right for your needs. Anyway I was happy when he awarded me an A+ for the topic.

Otto's avatar 790. Otto - April 19, 2013

Every weekend i used to visit this website, for the
reason that i want enjoyment, as this this web site
conations actually good funny data too.

canlı tv star's avatar 791. canlı tv star - April 20, 2013

Hey outstanding blog! Does running a blog like this require a large amount of work?
I’ve absolutely no knowledge of coding however I was hoping to start my own blog soon. Anyhow, if you have any recommendations or techniques for new blog owners please share. I understand this is off topic but I simply needed to ask. Appreciate it!

keratin treatment sydney's avatar 792. keratin treatment sydney - April 20, 2013

First off I want to say superb blog! I had a quick
question which I’d like to ask if you don’t mind. I was interested
to find out how you center yourself and clear your head
prior to writing. I’ve had a hard time clearing my mind in getting my ideas out there. I do enjoy writing however it just seems like the first 10 to 15 minutes are lost just trying to figure out how to begin. Any suggestions or tips? Kudos!

vestal watches for women's avatar 793. vestal watches for women - April 20, 2013

Have you ever considered about adding a little bit more than just your articles?

I mean, what you say is valuable and everything.
Nevertheless just imagine if you added some great graphics or videos to give your posts more,
“pop”! Your content is excellent but with pics and videos, this site
could certainly be one of the best in its niche.

Amazing blog!

coconut oil diet's avatar 794. coconut oil diet - April 20, 2013

It increases your metabolism and helps you burn
more fat. It has been known to reduce the risk of many major
diseases. Many people of these cultures benefit from the use coconut oil in this way by looking
younger than their actual years.

www.mwalter2.com's avatar 795. www.mwalter2.com - April 21, 2013

I tend not to write a leave a response, but after looking at a
lot of responses here Using FizzBuzz to Find Developers
who Grok Coding | Imran On Tech. I actually do have 2 questions for you if you don’t mind. Could it be just me or does it give the impression like some of these remarks look like they are left by brain dead people? 😛 And, if you are posting on other places, I’d like
to keep up with you. Could you list of the complete urls of
all your social pages like your Facebook page, twitter feed,
or linkedin profile?

796. Haskell Day 1 (Again) » Code Strokes - April 22, 2013

[…] I’ve restarted my haskell programming education. Here is my implementation of FizzBuzz […]

virtual offices in sacramento's avatar 797. virtual offices in sacramento - April 22, 2013

I just like the helpful information you provide on your articles.
I will bookmark your blog and test once more here regularly.

I’m fairly certain I will be told many new stuff proper here! Best of luck for the next!

Unknown's avatar 798. FizzBuzz | ToMi - April 23, 2013

[…] folgende Aufgabe nicht so schwer. Ich bin allerdings doch gescheitert. Schließlich wird die FizzBuzz Aufgabe oft bei Einstellungsgesprächen […]

http://www.weeklyvolcano.com/community/people/ClaytonGVT/posts/Very-best-Apple-iphone-Cases-For/'s avatar 799. http://www.weeklyvolcano.com/community/people/ClaytonGVT/posts/Very-best-Apple-iphone-Cases-For/ - April 28, 2013

I’ve read some good stuff here. Certainly worth bookmarking for revisiting. I surprise how a lot attempt you place to make this type of fantastic informative site.

case samsung galaxy s3's avatar 800. case samsung galaxy s3 - April 29, 2013

Excellent site you have got here.. It’s difficult to find high-quality writing like yours nowadays. I seriously appreciate people like you! Take care!!

unique iphone 4 cases's avatar 801. unique iphone 4 cases - April 29, 2013

What’s up colleagues, pleasant paragraph and pleasant urging commented here, I am in fact enjoying by these.

sound proofing's avatar 802. sound proofing - April 29, 2013

You can definitely see your expertise in the work you write.
The world hopes for even more passionate writers such as you who aren’t afraid to mention how they believe. All the time follow your heart.

prom dresses's avatar 803. prom dresses - April 30, 2013

{
{I have|I’ve} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It’s|It is} pretty worth enough for me.
{In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and
bloggers made good content as you did, the {internet|net|web} will be {much more|a lot more}
useful than ever before.|
I {couldn’t|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I’ll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} your {rss|rss feed} as I {can not|can’t} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you’ve}
any? {Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe.

Thanks.|
{It is|It’s} {appropriate|perfect|the best} time to make some plans for the future and {it is|it’s} time to be happy.
{I have|I’ve} read this post and if I could I {want to|wish to|desire to} suggest you {few|some} interesting things or {advice|suggestions|tips}. {Perhaps|Maybe} you {could|can} write next articles referring to this article. I {want to|wish to|desire to} read {more|even more} things about it!|
{It is|It’s} {appropriate|perfect|the best} time to make {a few|some} plans for {the
future|the longer term|the long run} and {it is|it’s} time to be happy. {I have|I’ve} {read|learn} this {post|submit|publish|put up} and if I {may
just|may|could} I {want to|wish to|desire to} {suggest|recommend|counsel} you {few|some} {interesting|fascinating|attention-grabbing} {things|issues} or {advice|suggestions|tips}.
{Perhaps|Maybe} you {could|can} write {next|subsequent} articles {relating to|referring to|regarding}
this article. I {want to|wish to|desire to} {read|learn} {more|even more} {things|issues} {approximately|about} it!
|
{I have|I’ve} been {surfing|browsing} {online|on-line} {more than|greater than} {three|3} hours {these days|nowadays|today|lately|as of late}, {yet|but} I {never|by no means} {found|discovered} any {interesting|fascinating|attention-grabbing} article like yours. {It’s|It is} {lovely|pretty|beautiful} {worth|value|price}
{enough|sufficient} for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers
made {just right|good|excellent} {content|content material} as {you did|you probably did},
the {internet|net|web} {will be|shall be|might be|will probably be|can be|will likely be} {much more|a
lot more} {useful|helpful} than ever before.
|
Ahaa, its {nice|pleasant|good|fastidious} {discussion|conversation|dialogue} {regarding|concerning|about|on the topic of}
this {article|post|piece of writing|paragraph} {here|at this place} at this {blog|weblog|webpage|website|web site}, I have read all that,
so {now|at this time} me also commenting {here|at this place}.
|
I am sure this {article|post|piece of writing|paragraph} has touched all the internet {users|people|viewers|visitors}, its
really really {nice|pleasant|good|fastidious} {article|post|piece of writing|paragraph} on building up
new {blog|weblog|webpage|website|web site}.|
Wow, this {article|post|piece of writing|paragraph} is
{nice|pleasant|good|fastidious}, my {sister|younger sister} is analyzing {such|these|these kinds of} things,
{so|thus|therefore} I am going to {tell|inform|let know|convey} her.
|
{Saved as a favorite|bookmarked!!}, {I really like|I like|I love} {your blog|your site|your web site|your website}!
|
Way cool! Some {very|extremely} valid points! I appreciate
you {writing this|penning this} {article|post|write-up} {and the|and also the|plus
the} rest of the {site is|website is} {also very|extremely|very|also really|really}
good.|
Hi, {I do believe|I do think} {this is an excellent|this is a great} {blog|website|web site|site}.
I stumbledupon it 😉 {I will|I am going to|I’m going to|I may} {come back|return|revisit} {once again|yet again} {since I|since i have} {bookmarked|book marked|book-marked|saved as a favorite} it. Money and freedom {is the best|is the greatest} way to change, may you be rich and continue to {help|guide} {other people|others}.|
Woah! I’m really {loving|enjoying|digging} the template/theme of this {site|website|blog}.

It’s simple, yet effective. A lot of times it’s {very hard|very difficult|challenging|tough|difficult|hard} to
get that “perfect balance” between {superb usability|user friendliness|usability} and {visual appearance|visual appeal|appearance}.
I must say {that you’ve|you have|you’ve} done a {awesome|amazing|very good|superb|fantastic|excellent|great} job with this.
{In addition|Additionally|Also}, the blog loads {very|extremely|super} {fast|quick} for me on {Safari|Internet
explorer|Chrome|Opera|Firefox}. {Superb|Exceptional|Outstanding|Excellent} Blog!
|
These are {really|actually|in fact|truly|genuinely} {great|enormous|impressive|wonderful|fantastic} ideas in {regarding|concerning|about|on the topic of} blogging.
You have touched some {nice|pleasant|good|fastidious} {points|factors|things} here.
Any way keep up wrinting.|
{I love|I really like|I enjoy|I like|Everyone loves}
what you guys {are|are usually|tend to be}
up too. {This sort of|This type of|Such|This kind of} clever work and {exposure|coverage|reporting}!
Keep up the {superb|terrific|very good|great|good|awesome|fantastic|excellent|amazing|wonderful} works guys I’ve {incorporated||added|included} you guys to {|my|our||my personal|my own} blogroll.|
{Howdy|Hi there|Hey there|Hi|Hello|Hey}! Someone in my {Myspace|Facebook} group shared this {site|website} with us so I came to {give it a look|look it over|take a look|check it out}. I’m definitely {enjoying|loving} the information.

I’m {book-marking|bookmarking} and will be tweeting this to my followers! {Terrific|Wonderful|Great|Fantastic|Outstanding|Exceptional|Superb|Excellent} blog and {wonderful|terrific|brilliant|amazing|great|excellent|fantastic|outstanding|superb} {style and design|design and style|design}.|
{I love|I really like|I enjoy|I like|Everyone loves} what you guys {are|are usually|tend to be} up too. {This sort of|This type of|Such|This kind of} clever work and {exposure|coverage|reporting}! Keep up the {superb|terrific|very good|great|good|awesome|fantastic|excellent|amazing|wonderful} works guys I’ve {incorporated|added|included} you
guys to {|my|our|my personal|my own} blogroll.|
{Howdy|Hi there|Hey there|Hi|Hello|Hey} would you mind {stating|sharing} which blog platform you’re {working with|using}? I’m {looking|planning|going} to start my own blog {in
the near future|soon} but I’m having a {tough|difficult|hard} time {making a decision|selecting|choosing|deciding} between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your {design and style|design|layout} seems different then most blogs and I’m looking for something {completely
unique|unique}. P.S {My apologies|Apologies|Sorry} for {getting|being} off-topic but I had to ask!
|
{Howdy|Hi there|Hi|Hey there|Hello|Hey} would
you mind letting me know which {webhost|hosting company|web host} you’re {utilizing|working with|using}? I’ve loaded your blog in
3 {completely different|different} {internet browsers|web
browsers|browsers} and I must say this blog loads a lot {quicker|faster} then
most. Can you {suggest|recommend} a good {internet hosting|web hosting|hosting} provider at a {honest|reasonable|fair} price?
{Thanks a lot|Kudos|Cheers|Thank you|Many thanks|Thanks}, I appreciate it!
|
{I love|I really like|I like|Everyone loves} it
{when people|when individuals|when folks|whenever people}
{come together|get together} and share {opinions|thoughts|views|ideas}.
Great {blog|website|site}, {keep it up|continue the good work|stick with it}!

|
Thank you for the {auspicious|good} writeup. It
in fact was a amusement account it. Look advanced to {far|more} added agreeable from
you! {By the way|However}, how {can|could} we communicate?
|
{Howdy|Hi there|Hey there|Hello|Hey} just wanted
to give you a quick heads up. The {text|words} in your {content|post|article} seem to be running off the screen in {Ie|Internet explorer|Chrome|Firefox|Safari|Opera}.

I’m not sure if this is a {format|formatting} issue or something to do with {web browser|internet browser|browser} compatibility but I {thought|figured} I’d post
to let you know. The {style and design|design and style|layout|design} look great though!

Hope you get the {problem|issue} {solved|resolved|fixed} soon.
{Kudos|Cheers|Many thanks|Thanks}|
This is a topic {that is|that’s|which is} {close to|near to} my heart… {Cheers|Many thanks|Best wishes|Take care|Thank you}! {Where|Exactly where} are your contact details though?|
It’s very {easy|simple|trouble-free|straightforward|effortless} to
find out any {topic|matter} on {net|web} as compared to {books|textbooks}, as I found this {article|post|piece of writing|paragraph} at this {website|web site|site|web page}.
|
Does your {site|website|blog} have a contact
page? I’m having {a tough time|problems|trouble} locating it but, I’d like to {send|shoot} you an
{e-mail|email}. I’ve got some {creative ideas|recommendations|suggestions|ideas} for your blog you might be interested in hearing. Either way, great {site|website|blog} and I look forward to seeing it {develop|improve|expand|grow} over time.|
{Hola|Hey there|Hi|Hello|Greetings}! I’ve been {following|reading} your {site|web site|website|weblog|blog}
for {a long time|a while|some time} now and finally
got the {bravery|courage} to go ahead and give you
a shout out from {New Caney|Kingwood|Huffman|Porter|Houston|Dallas|Austin|Lubbock|Humble|Atascocita} {Tx|Texas}!
Just wanted to {tell you|mention|say} keep up the {fantastic|excellent|great|good} {job|work}!
|
Greetings from {Idaho|Carolina|Ohio|Colorado|Florida|Los angeles|California}!
I’m {bored to tears|bored to death|bored} at work so I decided to {check out|browse} your {site|website|blog} on my iphone during lunch break. I {enjoy|really like|love} the {knowledge|info|information} you {present|provide} here and can’t wait
to take a look when I get home. I’m {shocked|amazed|surprised} at how {quick|fast} your blog loaded on my {mobile|cell phone|phone} .. I’m not even using WIFI, just 3G .
. {Anyhow|Anyways}, {awesome|amazing|very good|superb|good|wonderful|fantastic|excellent|great}
{site|blog}!|
Its {like you|such as you} {read|learn} my {mind|thoughts}!
You {seem|appear} {to understand|to know|to grasp} {so much|a lot} {approximately|about} this, {like you|such as you} wrote the {book|e-book|guide|ebook|e book} in it or something.
{I think|I feel|I believe} {that you|that you simply|that you just} {could|can} do with {some|a few} {%|p.c.|percent} to {force|pressure|drive|power} the message {house|home} {a bit|a little bit}, {however|but} {other than|instead of} that, {this is|that is} {great|wonderful|fantastic|magnificent|excellent} blog. {A great|An excellent|A fantastic} read. {I’ll|I will} {definitely|certainly} be back.|
I visited {multiple|many|several|various} {websites|sites|web sites|web pages|blogs} {but|except|however} the audio {quality|feature} for audio songs {current|present|existing} at this {website|web site|site|web page} is {really|actually|in fact|truly|genuinely} {marvelous|wonderful|excellent|fabulous|superb}.|
{Howdy|Hi there|Hi|Hello}, i read your blog {occasionally|from time to time} and i own a similar one and i was just {wondering|curious} if you get a lot of spam {comments|responses|feedback|remarks}? If so how do you {prevent|reduce|stop|protect against} it, any plugin or anything you can {advise|suggest|recommend}? I get so much lately it’s driving me {mad|insane|crazy} so any {assistance|help|support} is very much appreciated.|
Greetings! {Very helpful|Very useful} advice {within this|in this particular} {article|post}! {It is the|It’s the} little changes {that make|which will make|that produce|that will make} {the biggest|the largest|the greatest|the most important|the most significant} changes. {Thanks a lot|Thanks|Many thanks} for sharing!|
{I really|I truly|I seriously|I absolutely} love {your blog|your site|your website}.. {Very nice|Excellent|Pleasant|Great} colors & theme. Did you {create|develop|make|build} {this website|this site|this web site|this amazing site} yourself? Please reply back as I’m {looking to|trying to|planning to|wanting to|hoping to|attempting to} create {my own|my very own|my own personal} {blog|website|site} and {would like to|want to|would love to} {know|learn|find out} where you got this from or {what the|exactly what the|just what the} theme {is called|is named}. {Thanks|Many thanks|Thank you|Cheers|Appreciate it|Kudos}!|
{Hi there|Hello there|Howdy}! This {post|article|blog post} {couldn’t|could not} be written {any better|much better}! {Reading through|Looking at|Going through|Looking through} this {post|article} reminds me of my previous roommate! He {always|constantly|continually} kept {talking about|preaching about} this. {I will|I’ll|I am going to|I most certainly will} {forward|send} {this article|this information|this post} to him. {Pretty sure|Fairly certain} {he will|he’ll|he’s going to} {have a good|have a very good|have a great} read. {Thank you for|Thanks for|Many thanks for|I appreciate you for} sharing!|
{Wow|Whoa|Incredible|Amazing}! This blog looks {exactly|just} like my old one! It’s on a {completely|entirely|totally} different {topic|subject} but it has pretty much the same {layout|page layout} and design. {Excellent|Wonderful|Great|Outstanding|Superb} choice of colors!|
{There is|There’s} {definately|certainly} {a lot to|a great deal to} {know about|learn about|find out about} this {subject|topic|issue}. {I like|I love|I really like} {all the|all of the} points {you made|you’ve made|you have made}.|
{You made|You’ve made|You have made} some {decent|good|really good} points there. I {looked|checked} {on the internet|on the web|on the net} {for more info|for more information|to find out more|to learn more|for additional information} about the issue and found {most individuals|most people} will go along with your views on {this website|this site|this web site}.|
{Hi|Hello|Hi there|What’s up}, I {log on to|check|read} your {new stuff|blogs|blog} {regularly|like every week|daily|on a regular basis}. Your {story-telling|writing|humoristic} style is {awesome|witty}, keep {doing what you’re doing|up the good work|it up}!|
I {simply|just} {could not|couldn’t} {leave|depart|go away} your {site|web site|website} {prior to|before} suggesting that I {really|extremely|actually} {enjoyed|loved} {the standard|the usual} {information|info} {a person|an individual} {supply|provide} {for your|on your|in your|to your} {visitors|guests}? Is {going to|gonna} be {back|again} {frequently|regularly|incessantly|steadily|ceaselessly|often|continuously} {in order to|to} {check up on|check out|inspect|investigate cross-check} new posts|
{I wanted|I needed|I want to|I need to} to thank you for this {great|excellent|fantastic|wonderful|good|very good} read!! I {definitely|certainly|absolutely} {enjoyed|loved} every {little bit of|bit of} it. {I have|I’ve got|I have got} you {bookmarked|book marked|book-marked|saved as a favorite} {to check out|to look at} new {stuff you|things you} post…|
{Hi|Hello|Hi there|What’s up}, just wanted to {mention|say|tell you}, I {enjoyed|liked|loved} this {article|post|blog post}. It was {inspiring|funny|practical|helpful}. Keep on posting!|
I {{leave|drop|{write|create}} a {comment|leave a response}|drop a {comment|leave a response}|{comment|leave a response}} {each time|when|whenever} I {appreciate|like|especially enjoy} a {post|article} on a {site|{blog|website}|site|website} or {I have|if I have} something to {add|contribute|valuable to contribute} {to the discussion|to the conversation}. {It is|Usually it is|Usually it’s|It’s} {a result of|triggered by|caused by} the {passion|fire|sincerness} {communicated|displayed} in the {post|article} I {read|looked at|browsed}. And {on|after} this {post|article} Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech. I {{was|was actually} moved|{was|was actually} excited} enough to {drop|{leave|drop|{write|create}}|post} a {thought|{comment|{comment|leave a response}a response}} {:-P|:)|;)|;-)|:-)} I {do have|actually do have} {{some|a few} questions|a couple of questions|2 questions} for you {if you {don’t|do not|usually do not|tend not to} mind|if it’s {allright|okay}}. {Is it|Could it be} {just|only|simply} me or {do|does it {seem|appear|give the impression|look|look as if|look like} like} {some|a few} of {the|these} {comments|responses|remarks} {look|appear|come across} {like they are|as if they are|like} {coming from|written by|left by} brain dead {people|visitors|folks|individuals}? 😛 And, if you are {posting|writing} {on|at} {other|additional} {sites|social sites|online sites|online social sites|places}, {I’d|I would} like to {follow|keep up with} {you|{anything|everything} {new|fresh} you have to post}. {Could|Would} you {list|make a list} {all|every one|the complete urls} of {your|all your} {social|communal|community|public|shared} {pages|sites} like your {twitter feed, Facebook page or linkedin profile|linkedin profile, Facebook page or twitter feed|Facebook page, twitter feed, or linkedin profile}?|
{Hi there|Hello}, I enjoy reading {all of|through} your {article|post|article post}. I {like|wanted} to write a little comment to support you.|
I {always|constantly|every time} spent my half an hour to read this {blog|weblog|webpage|website|web site}’s {articles|posts|articles or reviews|content} {everyday|daily|every day|all the time} along with a {cup|mug} of coffee.|
I {always|for all time|all the time|constantly|every time} emailed this {blog|weblog|webpage|website|web site} post page to all my {friends|associates|contacts}, {because|since|as|for the reason that} if like to read it {then|after that|next|afterward} my {friends|links|contacts} will too.|
My {coder|programmer|developer} is trying to {persuade|convince} me to move to .net from PHP. I have always disliked the idea because of the {expenses|costs}. But he’s tryiong none the less. I’ve been using {Movable-type|WordPress} on {a number of|a variety of|numerous|several|various} websites for about a year and am {nervous|anxious|worried|concerned} about switching to another platform. I have heard {fantastic|very good|excellent|great|good} things about blogengine.net. Is there a way I can {transfer|import} all my wordpress {content|posts} into it? {Any kind of|Any} help would be {really|greatly} appreciated!|
{Hello|Hi|Hello there|Hi there|Howdy|Good day}! I could have sworn I’ve {been to|visited} {this blog|this web site|this website|this site|your blog} before but after {browsing through|going through|looking at} {some of the|a few of the|many of the} {posts|articles} I realized it’s new to me. {Anyways|Anyhow|Nonetheless|Regardless}, I’m {definitely|certainly} {happy|pleased|delighted} {I found|I discovered|I came across|I stumbled upon} it and I’ll be {bookmarking|book-marking} it and checking back {frequently|regularly|often}!|
{Terrific|Great|Wonderful} {article|work}! {This is|That is} {the type of|the kind of} {information|info} {that are meant to|that are supposed to|that should} be shared {around the|across the} {web|internet|net}. {Disgrace|Shame} on {the {seek|search} engines|Google} for {now not|not|no longer} positioning this {post|submit|publish|put up} {upper|higher}! Come on over and {talk over with|discuss with|seek advice from|visit|consult with} my {site|web site|website} . {Thank you|Thanks} =)|
Heya {i’m|i am} for the first time here. I {came across|found} this board and I find It {truly|really} useful & it helped me out {a lot|much}. I hope to give something back and {help|aid} others like you {helped|aided} me.|
{Hi|Hello|Hi there|Hello there|Howdy|Greetings}, {I think|I believe|I do believe|I do think|There’s no doubt that} {your site|your website|your web site|your blog} {might be|may be|could be|could possibly be} having {browser|internet browser|web browser} compatibility {issues|problems}. {When I|Whenever I} {look at your|take a look at your} {website|web site|site|blog} in Safari, it looks fine {but when|however when|however, if|however, when} opening in {Internet Explorer|IE|I.E.}, {it has|it’s got} some overlapping issues. {I just|I simply|I merely} wanted to {give you a|provide you with a} quick heads up! {Other than that|Apart from that|Besides that|Aside from that}, {fantastic|wonderful|great|excellent} {blog|website|site}!|
{A person|Someone|Somebody} {necessarily|essentially} {lend a hand|help|assist} to make {seriously|critically|significantly|severely} {articles|posts} {I would|I might|I’d} state. {This is|That is} the {first|very first} time I frequented your {web page|website page} and {to this point|so far|thus far|up to now}? I {amazed|surprised} with the {research|analysis} you made to {create|make} {this actual|this particular} {post|submit|publish|put up} {incredible|amazing|extraordinary}. {Great|Wonderful|Fantastic|Magnificent|Excellent} {task|process|activity|job}!|
Heya {i’m|i am} for {the primary|the first} time here. I {came across|found} this board and I {in finding|find|to find} It {truly|really} {useful|helpful} & it helped me out {a lot|much}. {I am hoping|I hope|I’m hoping} {to give|to offer|to provide|to present} {something|one thing} {back|again} and {help|aid} others {like you|such as you} {helped|aided} me.|
{Hello|Hi|Hello there|Hi there|Howdy|Good day|Hey there}! {I just|I simply} {would like to|want to|wish to} {give you a|offer you a} {huge|big} thumbs up {for the|for your} {great|excellent} {info|information} {you have|you’ve got|you have got} {here|right here} on this post. {I will be|I’ll be|I am} {coming back to|returning to} {your blog|your site|your website|your web site} for more soon.|
I {always|all the time|every time} used to {read|study} {article|post|piece of writing|paragraph} in news papers but now as I am a user of {internet|web|net} {so|thus|therefore} from now I am using net for {articles|posts|articles or reviews|content}, thanks to web.|
Your {way|method|means|mode} of {describing|explaining|telling} {everything|all|the whole thing} in this {article|post|piece of writing|paragraph} is {really|actually|in fact|truly|genuinely} {nice|pleasant|good|fastidious}, {all|every one} {can|be able to|be capable of} {easily|without difficulty|effortlessly|simply} {understand|know|be aware of} it, Thanks a lot.|
{Hi|Hello} there, {I found|I discovered} your {blog|website|web site|site} {by means of|via|by the use of|by way of} Google {at the same time as|whilst|even as|while} {searching for|looking for} a {similar|comparable|related} {topic|matter|subject}, your {site|web site|website} {got here|came} up, it {looks|appears|seems|seems to be|appears to be like} {good|great}. {I have|I’ve} bookmarked it in my google bookmarks.
{Hello|Hi} there, {simply|just} {turned into|became|was|become|changed into} {aware of|alert to} your {blog|weblog} {thru|through|via} Google, {and found|and located} that {it is|it’s} {really|truly} informative. {I’m|I am} {gonna|going to} {watch out|be careful} for brussels. {I will|I’ll} {appreciate|be grateful} {if you|should you|when you|in the event you|in case you|for those who|if you happen to} {continue|proceed} this {in future}. {A lot of|Lots of|Many|Numerous} {other folks|folks|other people|people} {will be|shall be|might be|will probably be|can be|will likely be} benefited {from your|out of your} writing. Cheers!|
{I am|I’m} curious to find out what blog {system|platform} {you have been|you happen to be|you are|you’re} {working with|utilizing|using}? I’m {experiencing|having} some {minor|small} security {problems|issues} with my latest {site|website|blog} and {I would|I’d} like to find something more {safe|risk-free|safeguarded|secure}. Do you have any {solutions|suggestions|recommendations}?|
{I am|I’m} {extremely|really} impressed with your writing skills {and also|as well as} with the layout on your {blog|weblog}. Is this a paid theme or did you {customize|modify} it yourself? {Either way|Anyway} keep up the {nice|excellent} quality writing, {it’s|it is} rare to see a {nice|great} blog like this one {these days|nowadays|today}.|
{I am|I’m} {extremely|really} {inspired|impressed} {with your|together with your|along with your} writing {talents|skills|abilities} {and also|as {smartly|well|neatly} as} with the {layout|format|structure} {for your|on your|in your|to your} {blog|weblog}. {Is this|Is that this} a paid {subject|topic|subject matter|theme} or did you {customize|modify} it {yourself|your self}? {Either way|Anyway} {stay|keep} up the {nice|excellent} {quality|high quality} writing, {it’s|it is} {rare|uncommon} {to peer|to see|to look} a {nice|great} {blog|weblog} like this one {these days|nowadays|today}..|
{Hi|Hello}, Neat post. {There is|There’s} {a problem|an issue} {with your|together with your|along with your} {site|web site|website} in {internet|web} explorer, {may|might|could|would} {check|test} this? IE {still|nonetheless} is the {marketplace|market} {leader|chief} and {a large|a good|a big|a huge} {part of|section of|component to|portion of|component of|element of} {other folks|folks|other people|people} will {leave out|omit|miss|pass over} your {great|wonderful|fantastic|magnificent|excellent} writing {due to|because of} this problem.|
{I’m|I am} not sure where {you are|you’re} getting your {info|information}, but {good|great} topic. I needs to spend some time learning {more|much more} or understanding more. Thanks for {great|wonderful|fantastic|magnificent|excellent} {information|info} I was looking for this {information|info} for my mission.|
{Hi|Hello}, i think that i saw you visited my {blog|weblog|website|web site|site} {so|thus} i came to “return the favor”.{I am|I’m} {trying to|attempting to} find things to {improve|enhance} my {website|site|web site}!I suppose its ok to use {some of|a few of} your ideas!!\

dentist teeth whitening kit's avatar 804. dentist teeth whitening kit - April 30, 2013

At this moment I am going to do my breakfast, when having my breakfast coming yet again to read
further news.

תעודת גמר's avatar 805. תעודת גמר - April 30, 2013

It’s really a nice and useful piece of information. I am happy that you just shared this useful info with us. Please stay us up to date like this. Thank you for sharing.

mcm 激安's avatar 806. mcm 激安 - May 1, 2013

Hello! This post could not be written any better!
Reading through this post reminds me of my old room mate!
He always kept chatting about this. I will forward this post to him.

Pretty sure he will have a good read. Thanks for
sharing!

807. Rust to OCaml via FizzBuzz | The ByteBaker - May 1, 2013

[…] fellow PL grad student Lindsey Kuper wrote a post about the Rust programming language and used the FizzBuzz problem as a running example to demonstrate Rust’s pattern matching features. While reading the post […]

titan online casino's avatar 808. titan online casino - May 2, 2013

Nevertheless will it be total as well as aloof a great
chaotic scam Online Casinos, even so, tend not to need book a college accommodation, journey
prolonged kilometers, as well as have dinner in expensive too
costly dining places as you enjoy. The actual
right-hander, even though, discovered his / her initial test for a 6th win within 2006 pass by the wayside Thursday, when Wagner granted a couple of ninth-inning works prior to a Mets rallied for just
a 4-3, 12-inning glory.

SEO收費's avatar 809. SEO收費 - May 3, 2013

Hey! I simply want to give a huge thumbs up for the good
data you could have here on this post. I will be coming again to your weblog
for more soon.

Authentic Kris Letang Jersey's avatar 810. Authentic Kris Letang Jersey - May 3, 2013

My brother suggested I might like this blog.
He was entirely right. This post truly made my day. You cann’t imagine just how much time I had spent for this information! Thanks!

Jerry Loh's avatar 811. Jerry Loh - May 6, 2013

for (var i = 1; i <= 100; i++)
{
if(i % 15 === 0)
{
console.log("FizzBuzz");
}
else if(i % 3 === 0)
{
console.log("Fizz");
}

else if (i % 5 === 0)
{
console.log("Buzz");
}
else
{
console.log(i);
}

}

Ezra's avatar 812. Ezra - May 13, 2013

fantastic issues altogether, you just gained
a new reader. What would you recommend about your put up that you
just made some days ago? Any certain?

weight loss program's avatar 813. weight loss program - May 14, 2013

You can definitely see your enthusiasm in the article you write.
The sector hopes for even more passionate writers such as you who aren’t afraid to say how they believe. At all times go after your heart.

Générateur de Minecraft Compte Premium Gratuit's avatar 814. Générateur de Minecraft Compte Premium Gratuit - May 15, 2013

Great post. I used to be checking continuously
this weblog and I am inspired! Very useful information specifically the ultimate
part 🙂 I deal with such info a lot. I was looking for this certain info for a long time.
Thank you and good luck.

Annis's avatar 815. Annis - May 15, 2013

ły poganin. Chyba oraz dodatkowo
diabłu ogarek potrafił w kaplicy Annis formułować.
Tudzież smok był tymże, co okrutnie drażniło mieszczan.
Rycerz podjął decyzję.
Przerwał von Eggerowi niecierpliwym machnięciem d�.

heart disease in apes's avatar 816. heart disease in apes - May 16, 2013

Hi there i am kavin, its my first occasion to commenting
anyplace, when i read this post i thought i could also make comment due to this brilliant piece of
writing.

Fred's avatar 817. Fred - May 18, 2013

Hello to all, how is the whole thing, I think every one
is getting more from this website, and your views are good designed
for new users.

hampshire fireworks's avatar 818. hampshire fireworks - May 19, 2013

I all the time emailed this website post page to
all my friends, for the reason that if like to read it then my friends will too.

Ramona's avatar 819. Ramona - May 20, 2013

Hi! Someone in my Facebook group shared this website with us so I came to look it over.
I’m definitely loving the information. I’m book-marking and will be tweeting this to my followers!
Fantastic blog and amazing style and design.

Terrance's avatar 820. Terrance - May 20, 2013

I visited many blogs however the audio quality for audio songs
present at this site is really excellent.

dyson dc41 multi floor reviews's avatar 821. dyson dc41 multi floor reviews - May 20, 2013

Hello! Quick question that’s totally off topic. Do you know how to make your site mobile friendly? My site looks weird when viewing from my iphone. I’m trying to find a template
or plugin that might be able to fix this issue.
If you have any recommendations, please share. Thank you!

online poker's avatar 822. online poker - May 23, 2013

Great on the net bingo websites handle the invariably winners (and losers) together with value, and it is your dollars, in the end!
Last night in Raleigh, Idaho your Developed Canadian
workforce carefully dominated the particular Carolina Hurricanes for
nearly 50 units and the ceiling caved within.

Student Loan People's avatar 823. Student Loan People - May 24, 2013

Express your concerns to your child that he must
ask you before entering any personal details on any website.
Upload speeds will increase from 15 Mbps downstream to up to 20 Mbps.
Sending and receiving fax over the the student loan people.
I learned to ask around and investigate a few companies out before I invest in
leads.

Willard's avatar 824. Willard - May 24, 2013

Avocado Oil – This natural oil can successfully hydrates and is also compatible with the skin’s own oils. There are real natural face moisturizers on the market; you just have to know what to look for. Like Jojoba oil, it can help in reducing stretch marks on the skin.

backyard landscaping jobs's avatar 825. backyard landscaping jobs - May 26, 2013

There are three required core courses, namely: (1) “Soils for Environmental Professionlas” (2) “Environmental Soil, Water and Land Use” (3) “Forest and Soil Ecosystem”.

The UK, like many parts of the world, serves as a centre point for business and because of this, people are left with very little time to properly
maintain their homes or property. It is a good idea to research these schools, check their accreditation, and see what past and present students are saying about the course.

826. FizzBuzz « Project Drake dev blog - May 27, 2013

[…] friend today reminded me of the FizzBuzz test. Written about in 2007 by Imran Ghory and in 2012 by Joey Devilla. I was bored and decided to see if I could solve it in a single line in […]

827. An extensible FizzBuzz | Stack Trace - May 29, 2013

[…] during technical interviews. The original idea for FizzBuzz was seen on the blog Imran on Tech in a post from 2007. The original problem is stated as […]

seo friendly free directory submission list's avatar 828. seo friendly free directory submission list - June 3, 2013

Whats up! I just would like to give a huge thumbs up for the great info you’ve
got right here on this post. I shall be coming back to your blog for extra soon.

Video's avatar 829. Video - June 3, 2013

This is my first time pay a quick visit at here and i
am actually pleassant to read everthing at one place.

blog.supernova-movie.com's avatar 830. blog.supernova-movie.com - June 4, 2013

I¡¯m not that much of a online reader to be honest but your sites really nice, keep it up!
I’ll go ahead and bookmark your site to come back down the road. Cheers

831. hollister Consume Cheap Jerseys,Cheap NFL Jerseys,NFL Cheap Jerseys Healthful With Your Personal Org | fengkuopjj - June 5, 2013

[…] hollister france Kuala Lumpur – A Good Holiday Destination […]

832. symptom of depression | wapv2qq0 - June 7, 2013

[…] 525Popularity […]

zakhead214's avatar 833. zakhead214 - June 9, 2013

Just did this in java.
for (int count = 1; count <=100; count++)
{
int mod3 = (count%3);
int mod5 = (count%5);
if((mod3==0) && (mod5==0))
System.out.println("FizzBizz");
else if (mod3==0)
System.out.println("Fizz");
else if(mod5==0)
System.out.println("Bizz");
else
System.out.println(count);
}//end for loop
Pretty new to programming, but only took me about 2 minutes.

Dota 2 Match's avatar 834. Dota 2 Match - June 11, 2013

First of all I want to say fantastic blog! I had a
quick question which I’d like to ask if you don’t mind.
I was curious to know how you center yourself and clear your head
before writing. I’ve had trouble clearing my mind in getting my ideas out. I truly do take pleasure in writing but it just seems like the first 10 to 15 minutes are usually wasted simply just trying to figure out how to begin. Any ideas or hints? Kudos!

compare life insurance uk's avatar 835. compare life insurance uk - June 12, 2013

Howdy would you mind letting me know which hosting company you’re utilizing? I’ve loaded your
blog in 3 completely different internet browsers and I must say this
blog loads a lot faster then most. Can you suggest a
good hosting provider at a honest price? Cheers, I appreciate
it!

Itay Alfia's avatar 836. Itay Alfia - June 14, 2013

here is a nice one liner in c:
main(_,l)int _;char **l;{printf(“%s\n”,(_%3==0?_%5==0?”fizzbuzz”:”fizz”:_%5==0?”buzz”:itoa(_,l,10)))^4&&main(_+1,l);}

Itay Alfia's avatar 837. Itay Alfia - June 14, 2013

and if you cant use itoa you can do:
main(_,l)int _;char **l;{sprintf(l,”%d”,_)+printf(“%s\n”,(_%3==0?_%5==0?”fizzbuzz”:”fizz”:_%5==0?”buzz”:l))^8&&main(_+1,l);}

Unknown's avatar 838. JavaScript FizzBuzz in a tweet | My CMS - June 15, 2013

[…] FizzBuzz challenge has been around a while but I stumbled across it again after reading another unique Giles […]

839. Fizz Buzz in Python « qgi and me - June 19, 2013

[…] Fizz Buzz is a simple programming puzzle usually used to verify that an interviewee has minimal proficiency in a given programming language. The task goes something like this: Print all numbers from 1 to 100, but print “fizz” instead of numbers dividable by 3, “buzz” instead of numbers dividable by 5 and “fizzbuzz” instead of numbers dividable by 3 and 5. […]

hollister outlet's avatar 840. hollister outlet - June 20, 2013

A good credit score is a vital asset for your financial present and future. To a large extent, your credit standing determines what opportunities are open to you, especially as it concerns finances. Therefore, hollister the importance of building a good credit rating cannot be over emphasized. ‘It’s a thing you really can take to the bank’. There are several steps you must follow and some rules you will have to adhere to if you sincerely want a good credit standing. However, after establishing your credit worthiness, you will find that it was worth the stress. hollister france Another strong point you can air jordan make while building good credit is a solid income history. Maintaining a good record with banks and other creditors will also go a long way in portraying you as credit worthy. Your Independent guide to Finance Apart from retailers’ cards and others, it will also help to open a checking account when building your credit. When potential lenders check your hollister credit with abercrombie pas cher your bank, they, most often, only learn Louboutin Pas cher about your initial deposit. It makes sense, therefore to open your checking account with a large initial deposit, as much as you can afford. It is also reasonable to keep the account balanced and active and to ensure that you do not overdraw the account. Just like repairing bad credit, building a good credit rating requires time and a lot of financial discipline, but in the end, you will be proud of what you have achieved. Michael Russell Article Author: Michael_Russell 二月 9, 2006 12:00 上午 A secured credit card is another tool you will find useful in your quest for a solid credit standing. With secured credit cards you have to maintain a minimum deposit hollister outlet in your account. hogan The attached credit line is always a percentage of the minimum deposit. This serves several purposes and is very useful in building a good credit rating. A secured credit card ensures that you don’t over spend or accumulate unhealthy debts. It creates financial discipline hollister uk in you that is essential in maintaining a good credit history. You won’t need to bother about secured cards, it is not in any way different from regular cards and no one will know you have a hollister secured card unless you tell them. Debt is one monster that pulls down your credit and destroys your credit history. It does more harm than louboutin is generally mulberry acknowledged. The first step in building a louboutin pas cher good credit rating is always to cut down on debts as much as possible. It is recommended that you keep your total short term debts e.g. credit card balances, large telephone karen millen outlet bills, installment loans etc. at a total of not more than 20% of your total income. This will make it easier to pay off the debts, without missing payments or defaulting. It also creates a very low debt profile that looks very good on your credit report. To build good credit, it is hollister also useful to get national or local retailer’s card. It is always easy to win mulberry outlet credit from retailers and once you have established a good track record with a retailer, you could use the reference to boost your credit and also to secure additional credit from others. You will find it quite easy to establish a good record with retailers and will also be pleasantly surprised at the positive influence it can have on your credit rating. 相关的主题文章: hollister france 3 Easy Crockpot Pork Recipes hogan Why More People Are Getting Their Own Home Espresso Ma karen millen outlet Hilo – A Land Of Heavenly Attractions

louboutin pas cher's avatar 841. louboutin pas cher - June 20, 2013

‘s largest wine auction house Ake Meiluo Er and Condit company on the 28th held in Hong Kong wine auction to 164,mulberry,000 HKD shoot Year of a bottle of vintage champagne in 1928,toms shoes, setting a world record auction price of champagne. The largest U.S. wine auction house launched a total of more than 1,hogan,000 pieces of the auction,hollister outlet, the total turnover rate of 96%,louboutin pas cher, the total turnover of approximately HK $ 35 million. Auction CEO John Capon very satisfied with the results of the auction,ray ban pas cher, he said will work to promote Hong Kong as a wine trading center,louboutin, and plans to meet again in May in Hong Kong wine auctions. Ake Meiluo Er and Condit is the United States largest and oldest wine auction house. Since the abolition of wine duty after the auction house has three wine auction held in Hong Kong,hollister, where last May an auction turnover of HK $ 64 million,hogan outlet, a record total turnover of the Asian wine auction record last November Autumn Auction amounting to over 52 million Hong Kong dollars. 相关的主题文章: distribute another’s privacy drivers without a fight. Hu a home with a friend the driver side has deceased paid $ 50

mulberry's avatar 842. mulberry - June 20, 2013

‘s vehicle purchase tax is false, you need to Baoding seventy-one Administrative Service Center East Hall of the pay procedures. Kang initially thought that this phone is definitely a lie,17-year-old boy was too hard to work at night to steal my colleagues hope to be open mobile phone, at night to their house to play because the phone can not work. But he then I thought, the other caller’s telephone number clearly,louboutin, and explained to him that the Chief Service Center, is likely to be true. In this way, Kang and his wife over and over again like a night with almost no sleep. The next morning, he put the phone dial back, pick a lady, and the lady told him that the phone is Vehicle Administration office phone is indeed a vehicle purchase tax fraud to happen. Since then, a call telling him to pay the vehicle purchase tax,mulberry outlet, saying his family’s car has been locked, if not handled, will likely be revoked driving license. April 19 afternoon, the reporter went to Kang Tang County county in stores, Mr. Kang said, November 10, 2008, he bought one from Beijing Bora sedan, using the name of love, seventy-eight days later, Tang County county in South Central an insurance agency points to the other side sole agent to handle the vehicle purchase tax, insurance and other procedures on the license and pay the twelve thousand dollars,Husband suspected his wife was having an affair to, agency point person in charge to take him to a section of Baoding, let His seven all the way to one side of the road waiting for,ray ban pas cher, saying it was to pay the vehicle purchase tax. Afternoon in the founding of the road of the old motor vehicle market on the edge handled according to procedures. After about 10 days, he received EMS, which has a license and driving the car. By the end of 2010, he handled the vehicle inspection required. Unexpectedly, suddenly informed vehicle purchase tax owed, he really can not figure out how this is all about. Mr. Tang Xianniu circumstances and Kang, as his car was December 2, 2008 from Beijing to buy the next day to let relatives through a section of Baoding handled the vehicle purchase tax,mulberry, insurance and procedures on the photo, one week After the car license plates and vehicle permits sent by express courier his hands. Handled properly by the end of 2010 annual inspection, the morning of April 17 was informed vehicle purchase tax evasion,mulberry outlet, need to pay. April 18, he made a special trip to Baoding administrative service hall and found that six or seven people, and his case, one from each Wangdu, Quyang County, of which one also reluctantly pay the more than 30,000 yuan of tax payments and late fees. Hundreds of car purchase tax disappeared in Tang County on the South Loop section of a proxy point to a section of eight reporters provided a list of counties which have their own possessions and mobile phone number. A paragraph that he had to Baoding an insurance agent insurance agents, their business primarily in Tang County territory. Like him to the company’s insurance agency cis an agent surnamed Qiu County, in July 2008, Qiu Baoding certain to set up his own insurance agency. Qiu certain to Baoding, the liaison agency insurance business in the city and county agency staff,louboutin pas cher, said he and the insurance agency license in addition to the business, but also agency vehicle purchase tax, and a discount. Thus, there are a lot of people through the fur of a charge d’affaires of the vehicle purchase tax, insurance and procedures on the photo. Until the summer of 2009,mulberry outlet, vehicle purchase tax to pay the IRS down on the county, and in the county to apply for car license, we only terminate an agent to let fur business. In about a year’s time,mulberry, a section through the fur of a new car handled 25 vehicle purchase tax procedures,mulberry, are household sedan. And the segment is the same in a similar Tangxian she had got her through the fur is more than 30 cars of a handle of the vehicle purchase tax, and many of them are big trucks. Ms. Zhou told reporters that she felt a lot of pressure now,13-year-old girl police said was stepfather sexual, her new car purchase tax agents have several hundred thousand dollars,louboutin, not from their own lifetime, but some owners face every day,hollister, hound, she really wanted to come to this usurious loans paying the money. Reporters contacted the eight man squad of seven people who feel they have been cheated. These agents,hollister, or more to buy your new car handled through the fur of a vehicle purchase tax, or agent of someone else’s car, as well as his own relatives and friends to the fur of a proxy, add about one hundred cars. Qingyuan County, a female representative said that he cheated miserable. Qiu a preferential vehicle purchase tax to be able to lure everyone fooled, and now they have a vehicle for six car owners pay the purchase tax and fines of 10 million, there is this really afraid of being cheated during her agent to find a vehicle She, she really can not afford it. Look forward to open the truth April 20, the reporter went to Baoding administrative service center lobby, the IRS office window to a staff counseling, the answer is there is indeed some vehicles vehicle purchase tax evasion thing, now undergoing pay procedures. Some cheated vehicle owners and agents told reporters that in this event the vehicle purchase tax cheated, the actual dupe certainly much more than a hundred people, so many people, more than a year’s time has cheated , again in more than two years after the incident after being informed cheated, you need to pay. These deceived people say, according to a single tax is the right and proper thing, they also required to pay, and who knows the middle of such a big turn of events, we look forward to early to know the whole truth, and to hold relevant personnel responsibilities.

prakster's avatar 843. prakster - June 22, 2013

Hi folks, isn’t this a sure-fire solution:

Print “1”
Print “2”
Print “Fizz”
Print “4”
Print “Buzz”
Print “Fizz”
Print “7”
Print “8”
Print “Fizz”
Print “10”
Print “11”
Print “Fizz”
Print “13”
Print “14”
Print “FizzBuzz”
Print “16”
Print “17”
Print “Fizz”
Print “19”
Print “Buzz”
Print “Fizz”
Print “22”
Print “23”
Print “Fizz”
Print “Buzz”
Print “26”
Print “Fizz”
Print “28”
Print “29”
Print “FizzBuzz”
Print “31”
Print “32”
Print “Fizz”
Print “34”
Print “Buzz”
Print “Fizz”
Print “37”
Print “38”
Print “Fizz”
Print “Buzz”
Print “41”
Print “Fizz”
Print “43”
Print “44”
Print “FizzBuzz”
Print “46”
Print “47”
Print “Fizz”
Print “49”
Print “Buzz”
Print “Fizz”
Print “52”
Print “53”
Print “Fizz”
Print “Buzz”
Print “56”
Print “Fizz”
Print “58”
Print “59”
Print “FizzBuzz”
Print “61”
Print “62”
Print “Fizz”
Print “64”
Print “Buzz”
Print “Fizz”
Print “67”
Print “68”
Print “Fizz”
Print “Buzz”
Print “71”
Print “Fizz”
Print “73”
Print “74”
Print “FizzBuzz”
Print “76”
Print “77”
Print “Fizz”
Print “79”
Print “Buzz”
Print “Fizz”
Print “82”
Print “83”
Print “Fizz”
Print “Buzz”
Print “86”
Print “Fizz”
Print “88”
Print “89”
Print “FizzBuzz”
Print “91”
Print “92”
Print “Fizz”
Print “94”
Print “Buzz”
Print “Fizz”
Print “97”
Print “98”
Print “Fizz”
Print “Buzz”

www.nodepositbonusman.com's avatar 844. www.nodepositbonusman.com - June 23, 2013

Some fairly straightforward procedures are obligatory prior
to taking part in online roulette. A keno
round is known as a “race” and ahead of the keno race starting, you should be able to watch the preceding
keno race’s results – on the screen that shows the game (called “keno table”) you can see the called numbers, the numbers of the earlier race and so on. In a sea of portals, finding the best online casino is of utmost importance.

led signs canada led signs led signs toronto led sign canada outdoor led signs led open sign canada led sign toronto electronic signs canada open signs canada neon open sign canada led display signs canada led display signs toronto digital signs canada ou's avatar 845. led signs canada led signs led signs toronto led sign canada outdoor led signs led open sign canada led sign toronto electronic signs canada open signs canada neon open sign canada led display signs canada led display signs toronto digital signs canada ou - June 23, 2013

Hi to every body, it’s my first pay a visit of this website; this weblog includes amazing and really fine data for visitors.

mulberry outlet's avatar 846. mulberry outlet - June 24, 2013

dead” purposes,ray ban, the result was the police on the spot caught. “Suicide” did not become the man squatting prison because of the crime of kidnapping to 3 years. This is a reporter yesterday afternoon from the Haizhu District Court was informed. According to the court verified,gucci outlet, 23-year-old Yang Chao Sun Wu County in Heilongjiang Province. January 6, 2009,louboutin, Yang Chao,mulberry outlet, but no courage to commit suicide because of their implementation,gucci, then premeditated by hijacking the police station staff to enable the police to kill him. Around 17:00 the same day,louis vuitton, Yang Chao rainbow to the Public Security Bureau police station Haizhu hall, after a security guard by Huang Moumou not prepared machine,louboutin pas cher, hand knife hijacked as a hostage,mulberry outlet, because Huang Moumou timely response without break succeeded, In this process, Huang Moumou neck injuries (The forensic identification, is a minor injury),hollister, Yang Chao, were arrested by the police presence. April 23,louis vuitton outlet, Yang Chao was Procuratorate kidnapping to court, but it also made the public security organs psychiatric evaluation, the conclusion is the normal state of mind when committing the crime Yang Chao, bears full criminal responsibility. In the trial, the Yang Chao confessed to the allegations,louboutin pas cher, but because it is an attempt to commit a minor, the court dealt with leniently them,mulberry outlet, then made the decision. 相关的主题文章: 500 yuan of money. absorbing funds 259 the work of master swim earn more than 2

abercrombie's avatar 847. abercrombie - June 24, 2013

‘elope resort’.” The nearby village is said: “We’ve got to apply the name of the city to elope.” Gu Yi said,hollister outlet, slogans in the entrance area,abercrombie, and not far from the ancient town of Pingle signs embraced. Why write slogans is recommended Who recommended Out of curiosity,hollister, Gu beneficial to the surrounding villagers to inquire about the origin of this ridiculous slogan,karen millen, the villagers are not sure that whomever,hogan, but repeatedly confirmed: “We are here to apply for the city’s name to elope.” For to whom application The villagers do not know. However,ray ban, the ancient town of Pingle indeed “run away” associated – Here is the year Simaxiangru and Zhuo Wenjun eloped place,ralph lauren pas cher, the town where a pier was named “elopement pier.” Pingle ancient town MC Marketing Pujing Li said that the slogan of the entrance to town is not as scenic as the MC,ray ban, but the villagers self-suspension,toms outlet, and scenic spots have never applied the so-called “elopement city” label. Pujing Li also feel a little thunder,hogan outlet, will be sent at noon yesterday,ray ban pas cher, banners removed. Complex 相关的主题文章: Taxi is now at the national level to protect anima 6-year-old girl was dragged agricultural vehicles rolling mi Drivers will hit seven late Granny abandoned roadside after

tralalala's avatar 848. tralalala - June 27, 2013

omg, this site shoud have a spam filter

minecraft beta's avatar 849. minecraft beta - June 30, 2013

Oh my goodness! Incredible article dude! Thank you so much, However
I am having issues with your RSS. I don’t understand why I can’t join it.
Is there anyone else getting similar RSS problems?
Anyone that knows the answer can you kindly respond? Thanks!
!

Rosty's avatar 850. Rosty - July 3, 2013

Visual Foxpro:

FOR lnNumber = 1 TO 100
DO CASE
CASE INT(lnNumber/5) = lnNumber/5 .AND. INT(lnNumber/3) = lnNumber/3
? “FizzBuzz”
CASE INT(lnNumber/3) = lnNumber/3
? “Fizz”
CASE INT(lnNumber/5) = lnNumber/5
? “Buzz”
OTHERWISE
? TRANSFORM(lnNumber)
ENDCASE
ENDFOR

Minecraft Premium Hack's avatar 851. Minecraft Premium Hack - July 4, 2013

It’s remarkable in support of me to have a site, which is useful in support of my know-how. thanks admin

bathroom renovation quote's avatar 852. bathroom renovation quote - July 6, 2013

Great information. Lucky me I ran across your website
by accident (stumbleupon). I have book-marked it for later!

olrfkqlyymld's avatar 853. olrfkqlyymld - July 8, 2013

jjmbulrgoorr

Wilhemina's avatar 854. Wilhemina - July 10, 2013

We absolutely love your blog and find the majority
of your post’s to be exactly what I’m looking for.

Does one offer guest writers to write content in your case?
I wouldn’t mind writing a post or elaborating on most of the subjects you write regarding here. Again, awesome web site!

gta 4 xbox money cheats's avatar 855. gta 4 xbox money cheats - July 12, 2013

If you are going for best contents like I do, just
pay a quick visit this web page every day because
it provides quality contents, thanks

xbox one release date leaked's avatar 856. xbox one release date leaked - July 12, 2013

Everything is very open with a clear description of the challenges.

It was really informative. Your website is very useful. Many thanks
for sharing!

Darla's avatar 857. Darla - July 12, 2013

I think this is one of the so much significant information for me.
And i’m happy studying your article. However want to statement on some normal issues, The web site taste is ideal, the articles is truly nice : D. Excellent activity, cheers

aa's avatar 858. aa - July 12, 2013

This thread is full of Autism.

whatsapp for pc's avatar 859. whatsapp for pc - July 18, 2013

Great blog here! Also your web site loads up very fast! What host are you using?
Can I get your affiliate link to your host? I wish my site
loaded up as quickly as yours lol

homepage's avatar 860. homepage - July 18, 2013

Wow, this piece of writing is fastidious, my younger sister is analyzing such things, thus I am going to
inform her.

Kevin's avatar 861. Kevin - July 18, 2013

Ahh, the simplicity of “The Litmus Test for Programmers.”

The problem with this whole approach to hiring is that everything after the initial question, which sums up to, “Can you write an algorithm?” has become, “Which tool solves a specific sub-case of the general question?”

To make it worse, the _real_ question should be, “How do *I* (the manager) locate actual talent instead of just some hack that knows a specific tool?” This, of course, points out that many managers are trying to fill a chair rather than find a talent. Because if 1 woman can have a baby in 9 months, then 9 women can have a baby in 1 month, right?

Real managers, the really good ones, look for talent. They try to find people who know how to go about finding solutions. Not the first solution that comes along and rarely the obvious one. Obvious questions have obvious answers that can be supplied by those who ask them. The questions which have answers that are NOT obvious are the ones that are interesting and which attract talent.

“This sort of question won’t identify great programmers, but it will identify the weak ones. And that’s definitely a step in the right direction.”

Or, at least it will identify weak managers who resort to this sort of “trick the applicant” tactic to make their job easy finding drone programmers that can solve mindlessly simple problems, but can’t solve real world, difficult, complex problems that require real programmers. To the individual every single one of the very WORST managers I’ve ever known were poor managers because they didn’t know how to identify talent. They can’t identify real talent by actually talking to people because they lack that very talent themselves. And, they invariably asked these kinds of questions. And, I passed on their contracts.

So, be careful. This kind of low-brow tactic may cost you the best potential talent.

A better kind of question would be something like, “How would you go about determining the total surface area of all of the plant leaves on the planet?” This question determines that the applicant

1) knows how to approach a problem that they’ve never seen before,
2) knows how to go about formulating a plan to solve the problem,
3) knows how to determine what are the right questions to ask that identify which bits of data they need to solve the specific problem and often the problem in general,

and probably most importantly,
4) knows when to say, “The problem cannot be solved with the information given, unless we make this particular set of assumptions which are known and accepted by all.”

The actual answer is irrelevant. It’s their approach to solving it which is the real test of talent.

Damian's avatar 862. Damian - July 19, 2013

[print(y) for y in map(lambda x: {(False,False):””,(True,False):”Fiz”,(True,True):”FizBuzz”,(False,True):”Buzz”}[(x % 3==0,x % 5==0)],range(0,101))]

rfremotecontrol.wordpress.com's avatar 863. rfremotecontrol.wordpress.com - July 21, 2013

I quite like looking through a post that can make men
and women think. Also, thank you for permitting me to comment!

Fernando's avatar 864. Fernando - July 27, 2013

8 minutes to do a fizzbuzz program…

Public Class Form1

‘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”.

‘Started
‘2013-07-27
‘3:21

‘Finished
‘2013-07-27
‘3:29

‘Delta time: 8 minutes
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

For i As Integer = 1 To 100 Step 1

Dim FizzBuzz As New FizzBuzz(Number:=i)
Me.TextBox1.Text = Me.TextBox1.Text & i & “: ” & FizzBuzz.Fizzbuzz & vbCrLf

Next

End Sub

End Class

Class FizzBuzz
Private Number As Integer

Sub New(ByVal Number As Integer)
Me.Number = Number
End Sub

ReadOnly Property Fizzbuzz As String
Get
If Me.isFizz And Me.isBuzz Then
Return “FizzBuzz”
ElseIf Me.isFizz Then
Return “Fizz”
ElseIf Me.isBuzz Then
Return “Buzz”
Else
Return Me.Number.ToString
End If
End Get

End Property

Private Function isFizz() As Boolean
Return Me.Number Mod 3 = 0
End Function

Private Function isBuzz() As Boolean
Return Me.Number Mod 5 = 0
End Function

End Class

865. Lambda Extensible FizzBuzz 2.0 With LINQ - July 27, 2013

[…] I think it started from here […]

help.vth.ru's avatar 866. help.vth.ru - July 28, 2013

If you are in American liberty property management modesto
or real liberty property management modesto number, allowed
us to interview him for this article. Sometimes,
dealing with rental applications, maintenance and problem tenants make it seem like
it is not even worth the rental income. You also able
to give you an additional channel for complaint should the worst happen.

100 pure green coffee bean extract 800 mg's avatar 867. 100 pure green coffee bean extract 800 mg - August 1, 2013

What’s up, the whole thing is going nicely here and ofcourse every one is sharing data, that’s genuinely good,
keep up writing.

Laverne's avatar 868. Laverne - August 2, 2013

Face the family “competitive”, “and female Cheng – Feng” high expectations – Drum dryer,Artificial sand maker
and other machines are the sand making equipment,, facing the school high test scores pressure of study, the network has become middle school students from burden and pressure “bomb shelter,”
one of the academic and psychological pressure release burden the spirit of paradise.
Monoclonal antibody technology uses the cells
from the immune system to make antibodies. Technology is great and can bring great possibilities, but we need to exercise moderation and focus on intent.

spectacles spectacular spectacularism spectacularity spectacularly spectaculars spectant spectate spectated spectates spectating spectator spectator's spectatordom spectatorial spectators spectatorship spectatory spectatress spectatrix specter specter's s's avatar 869. spectacles spectacular spectacularism spectacularity spectacularly spectaculars spectant spectate spectated spectates spectating spectator spectator's spectatordom spectatorial spectators spectatorship spectatory spectatress spectatrix specter specter's s - August 3, 2013

Excellent enthusiastic synthetic vision just for detail and may foresee troubles prior to these people
occur.

Mungovan Munhall Muni Munia Munich Munich Agreement Munich Pact Munich beer Munichism Munin Munippus Munising Munith Munitus Munmro Munn Munniks Munnopsidae Munnopsis Munnsville Munro Munroe Munroe effect Muns Munsee Munsell chroma Munsell scale Munsey Mu's avatar 870. Mungovan Munhall Muni Munia Munich Munich Agreement Munich Pact Munich beer Munichism Munin Munippus Munising Munith Munitus Munmro Munn Munniks Munnopsidae Munnopsis Munnsville Munro Munroe Munroe effect Muns Munsee Munsell chroma Munsell scale Munsey Mu - August 5, 2013

Excellent enthusiastic analytical vision for the purpose of fine
detail and may foresee complications just before these people happen.

webpage's avatar 871. webpage - August 7, 2013

Because it is simpler than to run a shop in the marketplace
to run an electronic on-line shop that to some shop which offers you
every thing beneath the sun that can be bought online stores offer year-long discounts.
Also these online retailers like Overstock.com provide specific discount
including overstock promotion code for promotional and advertising purpose.

Though a geniune Overstock promotion is hard to find but when you acquire it be sure to be
dazzled.

Overstock Coupon is of very great use, as it has improved the fad of on
line shopping by often among your brain of individuals.
It’s also several obtaining things which improve its need. Several types of voucher requirements are there specifically Money Saver Coupon Code, Free Ship Coupon Code and several more; all are used for different uses.
Today these codes are being sold-out to accomplish business. That is also comfortable for that customers because they are now free from the risk of marketing using a large amount of money. Also some charge websites and internet sites have started the Overstock Coupon system. They offer plans like on a recharge of Rs.10 only 1 will get two decades concession on buying Rs 999 and above. By using these plans, even the small-scale web sites are extending their sales. Many shopping web sites have mounted a border such that shopping beyond that certain amount would undergo no delivery charge. Coupon codes are now available to even reduce the delivery charge.

Foreign exchange Scalping: BRAND NEW Examined Forex currency trading Programs or even $600 daily.'s avatar 872. Foreign exchange Scalping: BRAND NEW Examined Forex currency trading Programs or even $600 daily. - August 7, 2013

Currently it sounds like WordPress is the best blogging platform available right now.
(from what I’ve read) Is that what you are using on your blog?

Gedichte zum Geburtstag's avatar 873. Gedichte zum Geburtstag - August 7, 2013

Jeder weiß gut , dass nicht nur ein gutes Geburtstagsgeschenk auf einer Geburtstagsparty wichtig ist.
Selbstverständlich freut sich das Geburtstagskind auch über einen deklamierten Geburtstagspruch, der seinen Geburtstag unvergesslich macht.

Jetzt gibt es sehr viele Möglichkeiten, einen tollen Geburtstagsspruch auszuwählen.
Ganz allgemein gesagt, kann man sich sowohl für kürzere Wünsche zum
Geburtstag als auch für lange Geburtstagsgrüße entschließen.
Die kürzeren Sprüche zum Geburtstag kann man ohne Zweifel per SMS schicken.
Die auf vielen Webseiten gebotenen längeren Sprüche zum Geburtstag
kann man einfach auf der Party zum Geburtstag vortragen – offensichtlich wird der Jubilar
davon begeistert.
Komische Geburtstagssprüche sind eine interessante Lösung, im
Fall, wenn man einen Spruch z.B. zum 18. Geburtstag
braucht. Wenn man aber eher neutrale Geburtstagswünsche sucht, die sich für
jedes Geburtstagskind eignen, soll man einfach eine Lebensweisheit wählen.
Ein neutraler Geburtstagsspruch oder ein nicht sehr langes Geburtstagsgedicht kann man z.
B. während der Party zum Geburtstag des Vorgesetzten oder eines Mitarbeiters
deklamieren.
In jedem Fall kann man auch einen gewählten Spruch ein bisschen abwandeln, damit er
besser zur Gelegenheit und zum Charakter des Geburtstagskindes passt.
Man kann sicher sein, gut gewählte Geburtstagsgrüße werden nie vergessen.

amazon coupons's avatar 874. amazon coupons - August 7, 2013

Hello! I’ve been following your web site for a while now and finally got the bravery to go ahead and give you a shout out from Humble Tx! Just wanted to mention keep up the great work!

socialekaart-rotterdam.nl's avatar 875. socialekaart-rotterdam.nl - August 7, 2013

This is my first time visit at here and i am truly impressed to read all
at one place.

kays engagement rings cheap engagement rings for women engagement rings princess cut emerald cut engagement rings sapphire engagement rings neil lane engagement rings's avatar 876. kays engagement rings cheap engagement rings for women engagement rings princess cut emerald cut engagement rings sapphire engagement rings neil lane engagement rings - August 8, 2013

This ring is the cream of the crop with the amazing brilliant cut round stone reflecting the light with the most beautiful facets.

A good cut will usually hide some of the inclusions and enhance the clarity
of the stone. But it is a fact that real diamonds cost a lot – even a modest diamond
engagement ring can set you back by several hundred dollars, or even more.

http://lapelpinsyourway.tblog.com's avatar 877. http://lapelpinsyourway.tblog.com - August 8, 2013

This app lets you browse New York art galleries by area and category,
find nearby art exhibitions and events by distance or popularity, view details of exhibitions including
price, start and end dates, gallery details including address, opening
times and location. Hunters, wildlife management officers, and
game control agencies often use night vision rifle scopes
and other night vision equipment to assist in deer hunting, varmint control, and other
activities that are easier at night. ll find them proudly sporting
their pins all over town for weeks or months to come, sharing
their barbecue secrets with everyone they meet.

best gold companies's avatar 878. best gold companies - August 9, 2013

It’s amazing to visit this website and reading the views of all mates about this paragraph, while I am also eager of getting knowledge.

Roxana's avatar 879. Roxana - August 9, 2013

Even if a property is being purchased by some bachelor, more often his
mum finalizes the decision after taking a look. Reputable providers never charge for
artwork and revisions, so you can tinker with your team.
These give your custom trading pins both visual appeal and
historical context.

Adam's avatar 880. Adam - August 20, 2013

Couldn’t avoid it 🙂

Simple ActionScript 3 version:

var printValue:String;

for (var i:int = 1; i < 101; i++) {
printValue = "";
if ((i % 3) == 0) printValue += "Fizz"; // *
if ((i % 5) == 0) printValue += "Buzz"; // *
if (printValue = "") printValue = String(i);
trace(printValue);
}

* Could also be just !(i % 3) / !(i % 5) – chose the more readable version.

weight loss supplement for women's avatar 881. weight loss supplement for women - August 21, 2013

Hello to every single one, it’s really a nice for me to pay a visit this web site, it contains helpful Information.

I. S. Art's avatar 882. I. S. Art - August 28, 2013

It’s a nice question but seriously, is speed what you really look for; or ability to code with good practices?
The question is good since you can check the ability to think logical and simply.

883. Programming's Not for Everyone | Journal of Interest - August 28, 2013

[…] Ghory has a fascinating blog post about his experience with interviews for programming positions. He […]

cannock estate agents's avatar 884. cannock estate agents - August 30, 2013

First off I would like to say terrific blog! I had a quick question that I’d like to ask if you do not mind. I was curious to find out how you center yourself and clear your thoughts before writing. I have had a difficult time clearing my mind in getting my thoughts out. I do take pleasure in writing however it just seems like the first 10 to 15 minutes tend to be lost simply just trying to figure out how to begin. Any recommendations or hints? Many thanks!

web page's avatar 885. web page - September 6, 2013

Wow, amazing blog layout! How long have you been blogging for?
you made blogging look easy. The overall look
of your website is great, let alone the content!

886. Javascript FizzBuzz | ferretfarmer - September 10, 2013

[…] overheard this question at a coffee-shop interview with a programmer. Seriously old […]

Serkan Serttop's avatar 887. Serkan Serttop - September 12, 2013

Took me a minute.
function fizzbuzz(upto, from, print){
var q = [];
function single(n){
var tx = n;
if( n % 15 === 0){ tx = ‘fizzbuzz’; }
else if( n % 5 === 0){ tx = ‘buzz’; }
else if( n % 3 === 0){ tx = ‘fizz’; }
return tx;
}
function build(from, upto){
for(var i = from; i <= upto; i++){
q.push( single(i) );
}
}
function default_print(q){
console.log(q.join('’));
}
from = (!from) ? 1 : from;
upto = (!upto) ? 100 : upto;
print = ( typeof print === ‘function’) ? print : default_print;
build(from, upto);
print(q);
}
fizzbuzz(100, 1, function(q){ $(‘body’).html(q.join()); } );

Johnny Wezel's avatar 888. Johnny Wezel - September 17, 2013

Come on Pythonistas, we can do better than that:

print ‘\n’.join({(False, False): str(i), (True, False): ‘Fizz’, (False, True): ‘Buzz’, (True, True): ‘FizzBuzz’}[(i % 3 == 0, i% 5 == 0)] for i in range(1, 101))

Unknown's avatar 889. Coding as Jazz Piano | Dan Dreams of Coding - September 19, 2013

[…] with a candidate who knows exactly what she or he’s doing is a joy. Getting through the fizzbuzz equivalents quickly and having time to focus on the fun, difficult problems – talking about […]

Misti Keppler's avatar 890. Misti Keppler - September 22, 2013

F*ckin’ amazing issues here. I am very satisfied to look your post. Thank you so much and i’m looking ahead to contact you. Will you please drop me a e-mail?

col's avatar 891. col - September 29, 2013

In python:

#!/usr/local/bin/python

if __name__ == “__main__”:
for n in range(1,100):
if n % 3 == 0 and n % 5 != 0:print “Fizz”
elif n % 5 == 0 and n % 3 != 0:print “Buzz”
elif n % 5 == 0 and n % 5 == 0:print “FizzBuzz”
else: print n

ferretfarmer's avatar 892. ferretfarmer - October 2, 2013

Javascript:

for(i=1;i<100;++i)console.log((i%3?'':'Fizz')+(i%5?'':'Buzz')||i+'\n')

FerretGrower's avatar FerretGrower - October 7, 2013

for the console.log you don’t need the extra ‘\n’ and you will need to count i to 101 in order to have that last multiple of 5 detected.

for(i=1;i<101;++i)console.log((i%3?'':'Fizz')+(i%5?'':'Buzz')||i)

ferretfarmer's avatar ferretfarmer - October 7, 2013

true – thanks

893. Video 31: Meer PHP (en een beetje Koding) | Scripting4Designers - October 3, 2013
bluehost coupon 2014's avatar 894. bluehost coupon 2014 - October 18, 2013

And additionally, it provides them a lot of uncertainty relating to financial management capability when they
encounter problems with their credit debt bluehost coupon
2014 the 3 legs to growing rich: like a few legs of the stool, all are equally crucial in ensuring
financial independence.

twitter's avatar 895. twitter - October 19, 2013

Great site you’ve got here.. It’s difficult to find excellent writing like yours these days.
I really appreciate individuals like you! Take care!!

gold watches's avatar 896. gold watches - October 23, 2013

I for all time emailed this web site post page to all my associates, because if like to read it afterward my friends will too.

windows 8.1 activation key's avatar 897. windows 8.1 activation key - October 29, 2013

Greate article. Keep writing such kind of information on your site.
Im really impressed by it.
Hi there, You’ve done an excellent job. I’ll certainly digg it and personally recommend to my friends.
I’m confident they’ll be benefited from this web
site.

noise cancelling headphones's avatar 898. noise cancelling headphones - November 2, 2013

Hi, I would like to subscribe for this blog to take most recent updates, therefore where can i do
it please help.

canada goose's avatar 899. canada goose - November 15, 2013

I am really impressed together with your writing abilities and also with the layout to your blog.
Is that this a paid subject or did you customize it yourself?
Anyway keep up the nice high quality writing, it’s rare to look a nice
weblog like this one today..

Evan Xexex's avatar 900. Evan Xexex - November 20, 2013

public class FizzBuzz{
public static void main(String[] args){
for (int f = 1; f <= 100; f++){
String pr = "";
if (f % 3 == 0)
pr = "Fizz";
if (f % 5 == 0)
pr += "Buzz";
if (pr == "")
pr = f.toString;
System.out.println(pr);
}
}
}

Evan Xexex's avatar Evan Xexex - November 20, 2013

Sorry, I meant “Integer.toString(f);”. That’s embarrassing.

Kaplan's avatar 901. Kaplan - November 24, 2013

My c# in ASP.NET version :
for (int i = 1; i <= 100; i++)
{
if (i % 15 == 0) Response.Write("FizzBuzz");
else if (i % 3 == 0) Response.Write("Fizz");
else if (i % 5 == 0) Response.Write("Buzz");
else Response.Write(i.ToString());

Response.Write("”);
}

toggle switch's avatar 902. toggle switch - November 27, 2013

I like to disseminate understanding that will I’ve built up through the season to assist enhance team functionality.

energy efficient commercial lighting's avatar 903. energy efficient commercial lighting - December 5, 2013

Heya i’m for the primary time here. I found this board and I in finding It truly helpful & it
helped me out much. I hope to offer one thing back and aid others like you aided me.

liste des Comptes premium minecraft privé's avatar 904. liste des Comptes premium minecraft privé - December 7, 2013

Let us seem at how guard towers had been constructed with protection in thoughts.
Star gates: – Working thousand of blocks to
discover the town where your friend are is actually boring then why not make
a star gate that playing to different server towns and monuments during the entire map.
The first thing you will need to do is open your command prompt and find out which version of Java is installed on your
computer.

download unblocked's avatar 905. download unblocked - December 20, 2013

One example is the Kaspersky anti-virus that’s currently featured
as the must-download software. Unlike many synthetics this material also has a really natural feel, and offers excellent breath-ability, allowing body moisture to escape, ensuring the driest ride possible.
ISO Hunt behaves as a search engine, scouring other torrent sites for the
best results.

tej's avatar 906. tej - December 26, 2013

tej

http://audioboo.fm's avatar 907. http://audioboo.fm - December 29, 2013

Hey there! I’m at work surfing around your blog
from my new iphone 3gs! Just wanted to say I love reading your blog and look forward
to all your posts! Keep up the excellent work!

where to buy colored buying duct tape online's avatar 908. where to buy colored buying duct tape online - January 1, 2014

Hello! Do you use Twitter? I’d like to follow you if that
would be ok. I’m absolutely enjoying your blog and look forward to new updates.

JLH Shoes's avatar 909. JLH Shoes - January 11, 2014

Heya i’m for the first time here. I found this board
and I find It really useful & it helped me out much. I hope to give something back and
help others like you aided me.

910. Less Than Dot - Blog - Awesome - January 12, 2014

[…] by Imram as the […]

http://Nianfans.com?key=Cheapest+Michael+Kors+Handbags's avatar 911. http://Nianfans.com?key=Cheapest+Michael+Kors+Handbags - January 14, 2014

Hurrah, that’s what I was exploring for, what a data!
existing here at this blog, thanks admin of this web site.

%file-d:\projects\GSA-20140114\GetArticle\a3.txt

912. Lateral Tester Exercise V: FizzBuzz | thoughts from the test eye - January 19, 2014

[…] the lookout for new testing exercises, since I teach a lot. Today I found a programming exercise at https://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/ that I thought could be turned into something for testers. Since it doesn’t fit any of my current […]

bathroom remodel atlanta's avatar 913. bathroom remodel atlanta - January 29, 2014

If you are not familiar with hiring home renovation contractors, the following guide will help you remove uncertainty from your mind and take an informed decision on the best professional to carry out your home decoration project.
However, do not just settle for a contractor because his charges are low.
Customers trust a contractor because of the quality, which has been created by excellent track record of the previous days and the earlier achievements of the contractor.

http://tinyurl.com/lqoy2s6's avatar 914. http://tinyurl.com/lqoy2s6 - February 3, 2014

Black celebrity sex tapes pillow am going to access administered along
with abused along with absolutely actually appreciated as a good deal of as a aspect of art ability hanging on a choices.

915. How to Outsource Web Development - February 3, 2014

[…] to ask the developer to write a simple program. Imran Ghory developed a simple test called “FizzBuzz,” a test that can be completed by good developers in a few minutes. Though, as the article […]

Watch Arsenal Vs Liverpool's avatar 916. Watch Arsenal Vs Liverpool - February 6, 2014

When someone writes an piece of writing he/she retains the thought of a user in his/her mind that how a user
can be aware of it. So that’s why this article is amazing.
Thanks!

kim kardashian nude sex tape's avatar 917. kim kardashian nude sex tape - February 7, 2014

As they mention almost no Kim kardashian sex tape download, and we stone along side each other a chat along with
of arm gestures additionally nodding.

Delsol Construction's avatar 918. Delsol Construction - February 10, 2014

If you are not familiar with hiring home renovation contractors,
the following guide will help you remove uncertainty from your mind and take an informed decision on the best professional to carry
out your home decoration project. In evaluating the contractors in your area,
keep in mind the following tips:. How to Plan for life as a Government Contractor in A War Zone – Damaged Tank, photo by
Charles Buchanan – Things you’ll need to have prior to deploying:
· Passport and several photo copies of the identification
page.

Del Sol Construction Atlanta's avatar 919. Del Sol Construction Atlanta - February 10, 2014

Make sure the things in your home are insured before you plan any repairs.
Contractors receive a form 1099 that shows only the gross amount paid to the contractor.
These so-called cowboy contractors are the people who rip off their clients by
taking more money than necessary then botching up the job
they were paid to do.

Del Sol Construction Home Renovation's avatar 920. Del Sol Construction Home Renovation - February 11, 2014

Ask the contractor to provide at least three referees and check them out.

A good contractor should also have contacts in the Denver area and be able to manage sub-contractors such as plumbers, electricians, and general construction
workers. The agreement should specify whether
the contractor is paid on an hourly or time and materials basis, or is
paid a project fee based on deliverables.

staples coupon printable's avatar 921. staples coupon printable - February 11, 2014

This page truly has all the info I wanted about this subject and didn’t know who to
ask.

staples coupon codes's avatar 922. staples coupon codes - February 12, 2014

Thank you for the good writeup. It in fact was a amusement
account it. Look advanced to more added agreeable from
you! By the way, how could we communicate?

google api console's avatar 923. google api console - February 12, 2014

Great goods from you, man. I have understand your stuff previous to and you are just too wonderful.
I actually like what you have acquired here, really like what you’re stating and the way in
which you say it. You make it entertaining and you still take care of
to keep it wise. I can’t wait to read much more from you.

This is really a tremendous website.

https://www.facebook.com/jaideeseo's avatar 924. https://www.facebook.com/jaideeseo - February 21, 2014

Howdy, i read your blog occasionally and i own a similar one and i was just
curious if you get a lot of spam comments? If so how do you stop
it, any plugin or anything you can suggest? I get so much lately it’s driving me insane so any assistance is very much
appreciated.

วิธีรักษาฝ้า's avatar 925. วิธีรักษาฝ้า - February 22, 2014

I usually do not write a ton of responses, but after looking at through a great deal
of remarks here Using FizzBuzz to Find Developers
who Grok Coding | Imran On Tech. I actually do have a few questions for you if it’s okay.
Could it be just me or do some of these remarks come
across like they are coming from brain dead folks?

😛 And, if you are posting at additional online sites, I’d
like to follow you. Could you list of all of your public pages like your twitter feed, Facebook page or
linkedin profile?

หาเงินผ่านเน็ต's avatar 926. หาเงินผ่านเน็ต - February 23, 2014

I do agree with all the ideas you’ve introduced in your post.
They’re very convincing and will certainly work.
Nonetheless, the posts are too brief for newbies. May just you
please extend them a little from subsequent time? Thank you for
the post.

งานออนไลน์ได้เงินจริง's avatar 927. งานออนไลน์ได้เงินจริง - February 23, 2014

I do consider all of the ideas you have presented to your post.
They are very convincing and will definitely work. Nonetheless, the posts are too short for beginners.

May just you please prolong them a little from next time?
Thanks for the post.

biometric gun safe reviews's avatar 928. biometric gun safe reviews - February 26, 2014

Great article. I am facing a few of these issues as well..

รักษาสิวอุดตัน's avatar 929. รักษาสิวอุดตัน - February 27, 2014

Hmm is anyone else experiencing problems with the images on this blog loading?

I’m trying to determine if its a problem on my end or if it’s
the blog. Any responses would be greatly appreciated.

how to delete google plus accounts's avatar 930. how to delete google plus accounts - March 3, 2014

I pay a quick visit every day some blogs and blogs to read articles or reviews, except this weblog offers
feature based posts.

David L. Paktor's avatar 931. David L. Paktor - March 4, 2014

Re: Doug Hoffman – October 8, 2012
> a b to a to b
> Forth!

This does use a temporary variable: the stack location where the first “a” is kept.
Common “misteak”: just because you don’t assign a formal name does not make it any less a variable.
It is equivalent to either of the “C” examples shown a few postings later by Brian – June 20, 2013 (depending on how strictly you count stack locations as temp v’bles…)

Also “languages … that don’t require a temporary variable” usually work by creating one behind the scenes

I know I’m answering old posts. I only came to this blog today, and indirectly, but it’s fun… ;-}

life insurance quote's avatar 932. life insurance quote - March 5, 2014

A appoint Life insurance quotes online appears as
if approach to manly about associated with
furball.

how to win lotto powerball numbers's avatar 933. how to win lotto powerball numbers - March 11, 2014

Adniring the hard work you put into your blog and detailed information you provide.
It’s good to come across a blog every once iin a while that isn’t the same out of date rehashed material.

Excellent read! I’ve bookmarked your site and I’mincluding your RSS
feeds to myy Google account.

best nonstick cookware's avatar 934. best nonstick cookware - March 12, 2014

A person necessarily assist to make severely posts
I’d state. That is the very first time I frequented your web page and thus far?
I amazed with the research you made to create this
particular submit amazing. Great process!

best top loading washing machine's avatar 935. best top loading washing machine - March 12, 2014

Hello, its fastidious paragraph regarding media print,
we all know media is a enormous source of data.

range hood reviews's avatar 936. range hood reviews - March 12, 2014

Very soon this site will be famous among all blogging
and site-building people, due to it’s nice content

pirate bay's avatar 937. pirate bay - March 12, 2014

In a release posted Monday, October 1, Anonymous hacktivists issued a listing of Swedish
government websites to get targeted in retaliation for that raid by Swedish police.

The Panasonic design might be bought at a value of about fifty $.

OR that China counts for upwards of 34 percent of all current torrent
connections to The Pirate Bay.

gold & silver prices's avatar 938. gold & silver prices - March 18, 2014

Thank you for the auspicious writeup. It in fact was a amusement account it.

Look advanced to more added agreeable from you! However, how
can we communicate?

Thanh's avatar 939. Thanh - March 20, 2014

What’s Taking place i am new to this, I stumbled upon this I have found It absolutely useful and it has aided me out loads.
I hope to give a contribution & aid different customers like its aided me.

Great job.

Lavonne's avatar 940. Lavonne - March 20, 2014

Heya i am for the first time here. I found this board and
I find It truly useful & it helped me out much. I’m hoping
to provide one thing again and help others like you aided me.

Laurence's avatar 941. Laurence - March 20, 2014

Thanks to my father who informed me regarding this web
site, this web site is really remarkable.

Unknown's avatar 942. What makes a good interview question | Dan Dreams of Coding - March 21, 2014

[…] be easy for a great candidate, hard for a good candidate, and impossible for a bad candidate. Fizzbuzz has its uses, but fails on this axis since its only purpose is to knock out candidates who […]

AjinkyaZ's avatar 943. AjinkyaZ - March 28, 2014

a php solution with no complicated if-else constructs
does the job(checked twice)..
<?php
$i;
for($i=1;$i<=100;$i++)
{
echo "$i";
if($i%3==0){echo "fizz";}
if($i%5==0){echo "buzz";}
echo "”;
}
?>

944. FizzBuzz Algorithm | 0x2c2b[N] - March 31, 2014

[…] has been used as an interview screening device for computer programmers. Imran Ghori introduced this test to find good […]

import only's avatar 945. import only - April 5, 2014

Write more, thats all I have to say. Literally, it seems as though you relied
on the video to make your point. You definitely know what youre talking about, why waste your
intelligence on just posting videos to your site when you could be giving us something informative to read?

Unknown's avatar 946. Anonymous - April 10, 2014

Nice blog! Is your theme custom made or did you download it from somewhere?
A design like yours with a few simple adjustements would really make my blog jump out.
Please let me know where you got your theme. With thanks

online Excel training courses's avatar 947. online Excel training courses - April 11, 2014

Actually when someone doesn’t know then its up to other viewers that they will help, so
here it happens.

Mr. Mike's avatar 948. Mr. Mike - April 11, 2014

5 REM FIZZ-BUZZ IN APPLESOFT BASIC FOR THE APPLE II
10 FOR I=1 TO 100
12 REM F IS A FLAG VARIABLE
15 F=0
18 REM MOD IS NOT AVAILABLE IN APPLESOFT
20 IF I/3=INT(I/3) THEN PRINT “FIZZ”;:F=1
30 IF I/5=INT(I/5) THEN PRINT “BUZZ”:F=2
35 IF F=1 THEN PRINT
40 IF F=0 THEN PRINT I
45 REM TIME DELAY LOOP SO YOU CAN SEE THE NUMBERS BEFORE THEY SCROLL OFF THE SCREEN
50 FOR D=1 TO 100: NEXT D
60 NEXT I
70 END

War of the Vikings Multiplayer Crack - RELOADED's avatar 949. War of the Vikings Multiplayer Crack - RELOADED - April 15, 2014

Warr of the Vikings Multiplayer Crack – RELOADED
Download: http://bit.ly/1h0IVLs

1. Download the War of the Vikings Multiplayer Crack archive
2. Run Autoinstaller
3. Play the game
Tags:
War off the Vikings Crack,
War of the Vikings steam crack

Caridad's avatar 950. Caridad - April 17, 2014

I have to thank you for the efforts you’ve put in penning this website.
I am hoping to see the same high-grade blog posts from you later on as well.
In truth, your creative writing abilities has encouraged me to get my very own website now 😉

Some Guy's avatar 951. Some Guy - April 17, 2014

for i in range(1,101):
a = ”
b = ”
if i%3 == 0:
a = “fizz”
if i%5 == 0:
b = “buzz”
print “i: “+str(i)+” “+a+b

Here it is in python.

Glen's avatar 952. Glen - April 17, 2014

int main(void)
{
int i, flag;

for (i = 1; i <= 100; i++) {
flag = 0;

if (i % 3 == 0) {
flag |= 1;
printf("Fizz ");
}

if (i % 5 == 0) {
flag |= 2;
printf("Buzz ");
}

printf(flag == 3 ? "FizzBuzz\n" : "\n");
}

return 0;
}

David L. Paktor's avatar David L. Paktor - April 17, 2014

There was a time when the “Divide” operation required many cycles to complete and the “Modulo” operation was even more costly in terms of execution-time.
I wanted something that would not depend on either of those, so I came up with this:

#include

void main(void)
{
int Indx = 0;
int Three = 3;
int Five = 5;

while ( Indx < 101 ) {
char *fiz = "";
char *buz = "";

Indx++;
if ( Indx == Three ) {
fiz = "Fizz";
Three +=3;
}
if ( Indx == Five ) {
buz = "Buzz";
Five += 5;
}
printf( "%3i %s%s\n", Indx, fiz, buz);
}
}

'Nuff said…

www.ghanaweb.com's avatar 953. www.ghanaweb.com - April 18, 2014

My family members all the time say that I am wasting my
time here at net, but I know I am getting
familiarity everyday by reading such fastidious
posts.

Work From Home Ideas's avatar 954. Work From Home Ideas - April 18, 2014

If some one wants to be updated with most recent technologies
therefore he must be pay a quick visit this web site and be up to date everyday.

leveling's avatar 955. leveling - April 19, 2014

Hello colleagues, nice piece of writing and good urging commented
here, I am in fact enjoying by these.

p90x3 equipment required's avatar 956. p90x3 equipment required - April 21, 2014

I believe everything said made a great deal of sense.
However, consider this, what if you wrote a catchier post title?
I ain’t saying your information is not solid., but what if
you added a title that grabbed people’s attention?

I mean Using FizzBuzz to Find Developers who Grok Coding |
Imran On Tech is a little boring. You could glance at Yahoo’s home
page and watch how they create news titles to grab viewers interested.

You might add a video or a related pic or two to get readers interested about everything’ve got to say.
Just my opinion, it might make your posts a little livelier.

more info's avatar 957. more info - April 22, 2014

Hello there my children new member! I must state that this article is awesome, nice written and include most very important infos. Let me glimpse excess content like that .

scroll saw reviews's avatar 958. scroll saw reviews - April 23, 2014

Howdy very cool blog!! Guy .. Excellent ..
Wonderful .. I will bookmark your site and take the feeds also?
I’m happy to search out a lot of useful info right here within the put up,
we need develop extra techniques in this regard, thanks for sharing.
. . . . .

Stanley's avatar 959. Stanley - April 24, 2014

Almost every child loves tonplay them and they can make them smarter too.
This game is considered as a timed game so the rider who makes the toss and stops firstly
is the one who prevails. How do you create the balance between video
games and fresh air.

Jerrod's avatar 960. Jerrod - April 25, 2014

It’s hard to find well-informed peopke in this particular topic,
but you sound like you knopw what you’re talkinhg about!

Thanks

skin types's avatar 961. skin types - April 29, 2014

Iཿll immediately grab your rss as I can not
find your e-mail subscription link or newsletter service.

Do you have any? Kindly let me know so that I could subscribe.
Thanks.

Ex Recovery System Reviews's avatar 962. Ex Recovery System Reviews - May 1, 2014

of course like your website but you have to test the spelling
on several of your posts. A number of them are rife with spelling problems
and I to find it very bothersome to tell the reality then again
I will surely come back again.

theitemassortment.yolasite.com's avatar 963. theitemassortment.yolasite.com - May 2, 2014

Almost every child loves tonplay them and they can
make them smarter too. The great part about games if
you not sure you like it or not, there are demo’s to try out.
Time they could be developing a passion for dance, art, or music.

best inversion table's avatar 964. best inversion table - May 4, 2014

I’d like to thank you for the efforts you
have put in writing this site. I am hoping to see the same high-grade blog posts from you later on as
well. In truth, your creative writing abilities has
inspired me to get my own site now 😉

top av receivers 2014's avatar 965. top av receivers 2014 - May 4, 2014

Hi there are using WordPress for your blog platform?
I’m new to the blog world but I’m trying to get started and create my
own. Do you need any html coding knowledge to make your own blog?

Any help would be really appreciated!

abszessbildung akne inversa hidradenitis suppurativa forum's avatar 966. abszessbildung akne inversa hidradenitis suppurativa forum - May 5, 2014

Greetings from Ohio! I’m bored to tears at work so I decided to check out your blog on my iphone during lunch
break. I really like the knowledge you provide here and can’t wait to take a look when I get home.
I’m shocked at how quick your blog loaded on my
mobile .. I’m not even using WIFI, just 3G .. Anyways, good blog!

Rakesh sharma's avatar 967. Rakesh sharma - May 14, 2014

public static void main(String[] args) {
for(int i=1;i<=100;i++) {
if(i%3==0&&i%5==0) {
System.out.println("FizzBuzz");
continue;
}
else if(i%5==0) {
System.out.println("Buzz");
continue;
}
else if(i%3==0){
System.out.println("Fizz");
continue;
}
System.out.println(i);
}

top it security certifications 2013's avatar 968. top it security certifications 2013 - May 17, 2014

Ahaa, its nice dialogue regarding this paragraph here at this weblog, I have read all that, so now me also
commenting here.

how to get your press release published's avatar 969. how to get your press release published - May 18, 2014

Hi there, its nice piece of writing concerning media print,
we all understand media is a great source of information.

n-urbs.com's avatar 970. n-urbs.com - May 18, 2014

Since this water treatment plant too raise revenue.

The oxygen content of the wate cycle because if we didn’t have photosynthesis then the oxygen supply is uniform.
Under the secondary treatment system which I have indicated as 6.

Top sgeps of stairways be supposed to aid the filtration process.

free press release distribution service's avatar 971. free press release distribution service - May 18, 2014

If you want to grow your familiarity only keep visiting this
web site and be updated with the hottest gossip posted here.

fashion press release example's avatar 972. fashion press release example - May 22, 2014

Thanks on your marvelous posting! I really enjoyed reading it, you happen to
be a great author. I will make certain to bookmark your blog and will come back from now on. I want
to encourage one to continue your great work, have a nice
evening!

survey bypasser's avatar 973. survey bypasser - May 22, 2014

Serious injury meant that Taaffe was unable to ride in the 1956 National after a fall at Kilbeggan, where he didn’t regain consciousness
until he got to a Dublin hospital. Keep in might that not only are there correct ways to
go about attempting to reconcile, there are at least twice
as many more wrong ways to do this. Because just returned from a DSLR rookie
with the numerous selections scare, Nikon has refined its Guide mode
on.

google plus hangouts's avatar 974. google plus hangouts - May 22, 2014

My spouse and I absolutely love your blog and find nearly all
of your post’s to be what precisely I’m looking for.
Would you offer guest writers to write content available for you?
I wouldn’t mind creating a post or elaborating on some of the subjects you write
regarding here. Again, awesome site!

top juicers brands's avatar 975. top juicers brands - May 23, 2014

My brother suggested I might like this blog. He was entirely right.
This post truly made my day. You cann’t imagine simply how much time I had spent
for this information! Thanks!

mentoring and coaching's avatar 976. mentoring and coaching - May 23, 2014

Attractive section of content. I just stumbled upon your weblog and in accession capital to assert
that I acquire actually enjoyed account your blog posts.

Any way I’ll be subscribing to your feeds and
even I achievement you access consistently quickly.

977. Sightseeing in New York - May 26, 2014

Sightseeing in New York

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

http://www.nickgames.tv/uprofile.php?UID=28387's avatar 978. http://www.nickgames.tv/uprofile.php?UID=28387 - May 28, 2014

Thanks in favor of sharing such a fastidious thought, paragraph is fastidious, thats
why i have read it completely

Censloc.it's avatar 979. Censloc.it - May 28, 2014

My brother suggested I would possibly like this blog. He was once totally right.

This submit actually made my day. You cann’t imagine just how
so much time I had spent for this information! Thank you!

www.gogobot.com's avatar 980. www.gogobot.com - May 28, 2014

When I initially commented I seem to have clicked the -Notify me
when new comments are added- checkbox and now whenever a comment is added I
receive 4 emails with the exact same comment.
Is there a means you can remove me from that service?
Thank you!

Rosaura's avatar 981. Rosaura - May 29, 2014

Can I just say what a comfort to discover a person that genuinely
understands what they’re discussing online. You certainly realize how to bring a problem
to light and make it important. More people have to check
this out and understand this side of the story.

I was surprised you are not more popular because you surely have the gift.

customized fat Loss kyle leon's avatar 982. customized fat Loss kyle leon - May 29, 2014

First off I want to say excellent blog! I had a quick question that I’d like to ask if you don’t mind.
I was curious to know how you center yourself and clear your thoughts prior to writing.
I’ve had a tough time clearing my thoughts in getting my thoughts out there.
I truly do take pleasure in writing but it just seems like the first 10 to 15 minutes
are generally wasted just trying to figure out how to begin. Any
ideas or tips? Appreciate it!

wp seo advice's avatar 983. wp seo advice - May 29, 2014

Great goods frtom you, man. I’ve understand your
stuff previous to and you’re just too fantastic.

I actually like what you’ve acquired here, certainly like what you’re srating and the way
inn which you say it. You make it enjoyable annd you still care for to keep it smart.
I can’t wait to read far more from you. Thiss is really a
tremendous site.

Chiquita's avatar 984. Chiquita - May 30, 2014

What’s up, I read your blogs daily. Your humoristic style is awesome, keep it up!

www's avatar 985. www - June 2, 2014

I couldn’t refrain from commenting. Exceptionally well
written!

Schaffhausen.Net's avatar 986. Schaffhausen.Net - June 3, 2014

Hey there! I just wanted to ask if you ever have any problems with hackers?
My last blog (wordpress) was hacked and I ended up losing a few months
of hard work due to no data backup. Do you have any methods to prevent hackers?

detoxmaxinfo.de's avatar 987. detoxmaxinfo.de - June 3, 2014

You can certainly see your expertise within the article you write.
The arena hopes for more passionate writers such as you who are not
afraid to mention how they believe. Always go after your heart.

http://musclerevxonline.com/'s avatar 988. http://musclerevxonline.com/ - June 4, 2014

My brother suggested I might like this blog.
He was totally right. This post actually made my day. You can not imagine just how much time
I had spent for this info! Thanks!

easter dresses's avatar 989. easter dresses - June 8, 2014

Their ringer t-shirt will be the type connected women’s clothing used mostly as
their sports uniform. To my surprise, specific brands of clothing were the hot sellers, and overwhelmingly teenage
brand of clothing. Wholesale fashion clothing appeals to nearly all everybody.

Sheena's avatar 990. Sheena - June 11, 2014

Everything is very open with a very clear description of the
issues. It was definitely informative. Your website is extremely helpful.
Thanks for sharing!

https://archive.org/'s avatar 991. https://archive.org/ - June 11, 2014

May I ask if you are okay with payed blog posts?

All I would need is for you to generate articles for me
and just a hyperlink or reference to my site. I really
could pay you.

growth factor's avatar 992. growth factor - June 11, 2014

Oh my goodness! Incredible article dude! Many thanks, However
I am going through problems with your RSS. I don’t understand
why I can’t join it. Is there anybody else having the same
RSS problems? Anybody who knows the solution can you kindly respond?

Thanx!!

Does The Cruise Control Diet Really WorK's avatar 993. Does The Cruise Control Diet Really WorK - June 12, 2014

Hey there…. I made a wonderful Website seo service that can rank any internet page in various market (regardless of whether a competitive niche for instance acai berry) to rank easily.
Yahoo or google will not ever unearth because we have one of a kind ways to avoid leaving a footprint.

Will you be fascinated to make use of it at zero cost?

http://acaiberrymaxunddetoxmax.de's avatar 994. http://acaiberrymaxunddetoxmax.de - June 12, 2014

Fantastic beat ! I wish to apprentice while you amend
your website, how could i subscribe for a blog web site?
The account aided me a acceptable deal. I had been tiny bit acquainted of this your broadcast
provided bright clear idea

call center dostep online's avatar 995. call center dostep online - June 20, 2014

Jestem naprawdę zadowolony polecam

Vandroiy's avatar 996. Vandroiy - June 21, 2014

[0..100]
|> List.map (function
| i when i % (3*5) = 0 -> “FizzBuzz”
| i when i % 5 = 0 -> “Buzz”
| i when i % 3 = 0 -> “Fizz”
| i -> i.ToString()
)
|> List.iter Console.WriteLine

(F#) It’s obvious that the problem hits a nerve, looking at all the programmers posting about it. Due to its simplicity, lack of context, and the redundancy in the FizzBuzz case, EVERY solution looks somewhat ugly. Are perhaps the interviewed nerd-sniped rather than incapable of answering?

Dollie's avatar 997. Dollie - June 23, 2014

There is definately a lot to know about this subject. I like
all the points you’ve made.

Fat Loss Factor review's avatar 998. Fat Loss Factor review - June 25, 2014

I read this article fully regarding the resemblance of hottest and previous technologies, it’s awesome article.

how to get your ex back's avatar 999. how to get your ex back - July 1, 2014

When someone writes an post he/she keeps the idea
of a user in his/her mind that how a user can be aware of it.
Thus that’s why this post is amazing. Thanks!

Oakland Park's avatar 1000. Oakland Park - July 3, 2014

From right here onwards the procedure is far more than easy.
If you want to purchase a car at online auto auctions your efforts would be really
minimal and the outcomes would be really pleasant and surprising for customers.
As opposed to letting your vehicle is an eyesore and also worse a pollutant,
why not enabling it is set to far better use.

Liliana's avatar 1001. Liliana - July 4, 2014

This post is very interesting but it took me a long time to find it in google.
I found it on 21 spot, you should focus on quality backlinks building, it will help you to increase
traffic. And i know how to help you, just search in google – k2 seo tips

fighting family's avatar 1002. fighting family - July 5, 2014

Excellent post. Keep posting such kind of information on your
site. Im really impressed by it.
Hello there, You’ve done a great job. I will certainly digg
it and individually recommend to my friends.
I’m confident they will be benefited from this website.

best photo printer's avatar 1003. best photo printer - July 9, 2014

Hi friends, its enormous article on the topic of teachingand
completely explained, keep it up all the time.

Hannah's avatar 1004. Hannah - July 9, 2014

Hi there! I know this is sort of off-topic however I had to ask.
Does managing a well-established blog such as yours take a massive amount work?
I’m completely new to writing a blog however I do write in my diary everyday.
I’d like to start a blog so I will be able to share my experience and thoughts online.

Please let me know if you have any kind of ideas or tips for new aspiring
blog owners. Appreciate it!

Rafaela's avatar 1005. Rafaela - July 10, 2014

The Credit Card Fair Fee Act is the type of legislation that any member of Congress should
be supporting regardless of party. Large and well established
corporate houses and business firms seek their services since they provide highly reliable accounting services with attractive packages.

Salaried individuals cannot get tax benefits on the interest paid
on loans against fixed deposits.

Get free talk time's avatar 1006. Get free talk time - July 11, 2014

i figured its bogus…… However its realy doing work..

farewell quotes funny's avatar 1007. farewell quotes funny - July 12, 2014

Does your site have a contact page? I’m having a tough time locating it but, I’d like to shoot
you an e-mail. I’ve got some recommendations for your blog you
might be interested in hearing. Either way, great site and I look forward to seeing it expand over time.

best psychic in new york's avatar 1008. best psychic in new york - July 13, 2014

Some photos make us really feel pleased and some make us feel
sad. Check in with your self and ask your Self to show you what the issue is.
All together, studying to study tarot playing cards is simple and fun.

boost your bust guide's avatar 1009. boost your bust guide - July 15, 2014

Greetings! Very helpful advice within this article!
It is the little changes that will make
the most important changes. Thanks for sharing!

sold out after crisis pdf's avatar 1010. sold out after crisis pdf - July 15, 2014

Hello to all, the contents present at this web site are in fact amazing for people knowledge, well,
keep up the good work fellows.

Pearly Penile Papules Removal Review's avatar 1011. Pearly Penile Papules Removal Review - July 15, 2014

I don’t even know how I stopped up here, however I assumed this put up was good.
I do not recognise who you might be however certainly you’re going to a famous blogger in case you are not already.

Cheers!

http://www.dailymile.com/people/nederik3's avatar 1012. http://www.dailymile.com/people/nederik3 - July 15, 2014

Great post.

Coco Amo's avatar 1013. Coco Amo - July 16, 2014

I’ll let Becky, one of the veteran coconut oil users, explain this
to you:. Though this oil is rich in saturated fats, it is still ideal for cooking.

Coconut oil extract benefits our health in many
ways.

Http://Oboe88Thomas.Roon.Io's avatar 1014. Http://Oboe88Thomas.Roon.Io - July 16, 2014

Ahaa, its pleasant conversation regarding this piece of writing here at this website, I have read all that, so
at this time me also commenting here.

college essay writing service reviews's avatar 1015. college essay writing service reviews - July 16, 2014

Every weekend i used to pay a quick visit this web site, because i want enjoyment, as this this web site
conations truly good funny data too.

Nancy's avatar 1016. Nancy - July 18, 2014

Hello, this weekend is good in favor of me, since this occasion i am reading
this great informative article here at my house.

3d animation bangladesh's avatar 1017. 3d animation bangladesh - July 20, 2014

Want to become an expert in the area of visual effects. Even if you have the most comprehensive
fittings system, lamps are always good to have in the home,
as they provide light at different heights and angles,
casting more interesting and varied light throughout a room.
You can use totally different videos together or cut up
one video clip into two.

Rheometric Scientific's avatar 1018. Rheometric Scientific - July 21, 2014

Howdy I am so glad I found your web site, I really found you by error, while I was searching on Yahoo for something else, Regardless I am
here now and would just like to say cheers for a fantastic post and a all round interesting blog (I also
love the theme/design), I don’t have time to browse it all at the moment but I have
bookmarked it and also added your RSS feeds, so when I have
time I will be back to read more, Please do keep up the
excellent job.

Unknown's avatar 1019. Various Approaches to a Simple Interview Problem | Dan Dreams of Coding - July 24, 2014

[…] the perfect interview question should be easy for a good candidate, impossible for a bad one. Even FizzBuzz will weed out a large percentage of candidates, and this is a little less insulting. (N.B. this is […]

Lynne's avatar 1020. Lynne - July 25, 2014

Networks contractor work best in each household.
Buying a home improvement contractors are seasoned professionals
in the tax money. Many of them might not be aware of the elements into their dream home
you will get the best renovation contractor must put into
place. In the same leads call them and also while
fixing the gutter channel and smoothly without any
sudden failure.

omadav311's avatar 1021. omadav311 - July 26, 2014

In Julia (which I love) it goes like this:

for i = 1:100
if i % 3 == 0 && i % 5 != 0
println(“Fizz”)
elseif i % 5 == 0 && i % 3 != 0
println(“Buzz”)
elseif i % 5 == 0 && i % 3 == 0
println(“FizzBuzz”)
else
println(i)
end
end

But I think that the interesting part would be either to have to use the divisibility property of numbers and check for each i = 1,2,…,100 or simply construct 3 vectors, seq(1,100, step=3(or 5 or 15)) and check if i belongs to either of them.

Ram Madhavan's avatar 1022. Ram Madhavan - July 27, 2014

I have interviewed many candidates in the past, some times it is shocking to find that some so called “experienced” folks can’t code something simple enough. But sometimes I noticed that the pressure of an interview is too much for some people to absorb – I have hired people failing to pass simple tests like this but doing very well on the job. Usually I divide an interview into four sections a) General programming knowledge including knowledge of algorithms, complexity, design principles etc b) Abstract principles of the particular programming knowledge c) Coding skill in the particular language d) Knowledge of libraries etc. If the candidate is doing well on a) and b), sometimes I let go of shortcomings in c) and d). Coding on a piece of paper is tougher than what it appears, especially under the stress of an interview. I have also seen many of these “one line coders” (which is probably done by memorizing large sections of code just for the interview) failing to produce high quality readable code on larger projects. Clarity in code and ability to code quickly and correctly is much more important than “optimized code” and “geek code”.

Galen's avatar 1023. Galen - July 28, 2014

I’ve been surfing on-line more than 3 hours nowadays, yet I never found any interesting article like
yours. It’s pretty value enough for me. In my opinion, if all webmasters and bloggers made just right content as you did, the web can be much
more useful than ever before.

farmville cheat engine water's avatar 1024. farmville cheat engine water - July 28, 2014

What’s up, I want to subscribe for this blog to get most up-to-date updates, so where can i do it please assist.

cazalcqqu8hblog.geekblog.com's avatar 1025. cazalcqqu8hblog.geekblog.com - July 28, 2014

As the admin of this website is working, no uncertainty very shortly it
will be famous, due to its quality contents.

Genie's avatar 1026. Genie - July 31, 2014

Not often do I encounter a weblog that’s both informative and entertaining, and let me tell you,
you might have hit the nail on the head. Your conceptis
fantastic; the issue is something that not sufficient individuals are speaking
intelligently about. I’m happy that I found this in my pursuit of something relating to this.

free skype credit generator online's avatar 1027. free skype credit generator online - July 31, 2014

Heya terrific website! Does running a blog like this require
a massive amount work? I’ve no expertise in programming
however I was hoping to start my own blog in the near future.

Anyway, should you have any ideas or tips for new
blog owners please share. I know this is off topic however I
just had to ask. Kudos!

Rochell's avatar 1028. Rochell - August 1, 2014

I always spent my half an hour to read this website’s posts every day along with a cup of coffee.

Urdu Lughat's avatar 1029. Urdu Lughat - August 2, 2014

Wonderful website. Plenty of useful information here. I am sending it to several pals ans additionally sharing inn delicious.And of course, thank you on your effort.

Delores's avatar 1030. Delores - August 2, 2014

It’s amazing to pay a quick visit this web site and reading the views of all colleagues on the topic of this post, while I am also keen of getting
experience.

Kurtis's avatar 1031. Kurtis - August 3, 2014

I have read a few good stuff here. Definitely price
bookmarking for revisiting. I surprise how so much attempt you place to make one of these fantastic informative
website.

Cindi's avatar 1032. Cindi - August 4, 2014

each time i used to read smaller articles or reviews that as well clear their motive, and
that is also happening with this piece of writing which I am
reading at this time.

Donnell's avatar 1033. Donnell - August 4, 2014

Hmm it seems like your site ate my first comment (it was
super long) so I guess I’ll just sum it up what I wrote and say, I’m thoroughly enjoying your blog.
I as well am an aspiring blog blogger but I’m still new to the whole thing.
Do you have any suggestions for newbie blog writers?

I’d definitely appreciate it.

Fredericka's avatar 1034. Fredericka - August 4, 2014

Hey would you mind letting me know which hosting company you’re using?
I’ve loaded your blog in 3 different web browsers and I must say
this blog loads a lot quicker then most. Can you recommend
a good internet hosting provider at a honest price?
Kudos, I appreciate it!

Baby Weight Milk's avatar 1035. Baby Weight Milk - August 5, 2014

Fine way of explaining, and good article to obtain data about my presentation subject, which i am going to convey in university.

เรียนพิเศษคณิตศาสตร์'s avatar 1036. เรียนพิเศษคณิตศาสตร์ - August 5, 2014

Hurrah! In the end I got a weblog from where I
be able to really get valuable facts concerning my study and knowledge.

carpet houston store's avatar 1037. carpet houston store - August 5, 2014

Aw, this was a very good post. Spending some time and actual effort to produce a top
notch article… but what can I say… I procrastinate a lot and don’t seem to get nearly anything done.

Paris Longchamp Hotel's avatar 1038. Paris Longchamp Hotel - August 5, 2014

Paris Longchamp Hotel Longchamp Sale Price azUJX
Le nostre idee non dette, opinioni e contributi non solo andare via.
E ‘probabile a marcire dentro e erodere il nostro senso di dignità..
longchamp Le pliage wholesale Longchamp Sales In Usa apjcn Inoltre, ogni ultima moda completa senza un elegante borsetta.
Fornitori Hndvesker sempre il vostro veterinario su questo e prver dare alle donne una scelta che sempre hanno.
Paris Longchamp Racecourse Longchamp Large Backpack UBWUi Si tratta di un lungo e doloroso processo di Giosuè nero Wilkins a guardare i suoi jeans di firma
e maglietta bianca, scarpe da lavoro sono stati trovati come parte di classici americani e condita con croccante non so se le vecchie fedora.
Che è dato solo a lui (ci siamo incontrati qualche anno fa, un servizio fotografico in Watertown) fintanto che io so, lo
so, e funziona davvero per lei.. Longchamp Handbag Organizer 2013 Longchamp Bags Longchamp Large
Backpack AjlQe In precedenza, borse per notebook signore non sono disponibili in pelle, così coloro che amano indossare borse in pelle
sono stati lasciati con una sola opzione, e che era di due tasche separate, e portano
il loro computer portatile per i loro beni, che ha reso tutto più complicato them.As sappiamo tutti,
il cuoio è un materiale, in particolare nella produzione di borse da
viaggio, ma quando il laptop è guadagnato la popolarità e la gente iniziato
a cercare i sacchetti robusti che non indossano solo la
loro proprietà, ma anche la loro sicurezza dispositivo palmare, molti deviato alla produzione di borse per
notebook in pelle per le donne e presto furono anche borse di lavoro
per le donne è la stessa material.Best parte di queste borse di
business per le donne che hanno particolare una tasca speciale
per il vostro computer portatile e un paio di altre tasche per altre cose.

Mentre il vostro computer portatile e rimanere saldamente in posizione
durante il viaggio, è possibile mettere tutte le cose in altre
borse e ReiseDump senza preoccuparsi di nulla qualsiasi computer portatile o il
vostro roba.. Red Garance Longchamp Longchamp Bags Order Online wABgt
Con SCSIstasjon, rotola tre cavi (elettrici, tubi e IDkonfigurasjon) Per nContatta per
l’installazione e rimozione rapida.), Una società controllata Tokyobased Sony Corporation. Attività globali di SPE comprendono la produzione e la distribuzione di film
cinematografici, spettacoli televisivi e syndication, l’acquisizione e la distribuzione home video, il funzionamento delle
apparecchiature di studio, lo sviluppo di nuove tecnologie
di intrattenimento e distribuzione di intrattenimento cinematografico in 67countries voi..

How Much Are Longchamp Bags In Paris2013 Longchamp Bags Longchamp Soft Pink 2013 Longchamp Bags RrsDk Se si utilizza limegrnn e manca una finitura maniglia, che sarà assolutamente accettare una
limegrnn come colori er. Non poteva sorridere la gente non è un amaro NO
web wizard s Nazionale e sette serie di perline lì. Paris Department Store Longchamp Small Longchamp Tote HbhfW Marc by
Marc Jacobs Totally Turnlock Quinn Bag è realizzata in pelle e
hardware tono argento scintillante. Questo designer
borsa attraente è disponibile nei colori nero o svetlokrasny..

Longchamp Handbag Organizer 2013 Longchamp Bags Pre
Order Longchamp Pink Gold YWHZT L’unico mezzo
decente erano WarioWare: Touched & Puzzle Mr Driller: Drill Spirits e Zoo Keeper.

Grazie a te ho ottenuto più punti di vista che io
mai avrei fatto.

handsomebedding60.jimdo.com's avatar 1039. handsomebedding60.jimdo.com - August 5, 2014

Wonderful blog! I found it while surfing around on Yahoo News.
Do you have any tips on how to get listed in Yahoo
News? I’ve been trying for a while but I never seem to get there!
Appreciate it

Lottie's avatar 1040. Lottie - August 6, 2014

It’s amazing in favor of me to have a web
page, which is useful in favor of my knowledge.
thanks admin

cube world download's avatar 1041. cube world download - August 6, 2014

Everything is very open with a very clear explanation of
the issues. It was definitely informative. Your website is useful.
Thank you for sharing!

Printing belfast's avatar 1042. Printing belfast - August 6, 2014

This piece of writing presents clear idea in support of the new visitors of blogging, that truly how to
do blogging and site-building.

dark avenger hack download's avatar 1043. dark avenger hack download - August 7, 2014

Thank you, I’ve just been searching for info approximately this subject for a long
time and yours is the best I have discovered so far. But, what about the bottom line?
Are you certain concerning the supply?

Alica's avatar 1044. Alica - August 7, 2014

Please let me know if you’re looking for a article writer for your blog.
You have some really great articles and I feel I would be a good asset.

If you ever want to take some of the load off, I’d absolutely
love to write some articles for your blog in exchange for
a link back to mine. Please blast me an email if interested.
Cheers!

insurance's avatar 1045. insurance - August 7, 2014

My sister proposed I could in this way blog. He appeared to be altogether correct. This particular blog post in fact created the time. You can not think about the way in which a lot occasion I did wasted for this information! Thanks!

Fallon's avatar 1046. Fallon - August 7, 2014

Hello friends, nice article and pleasant urging commented at this place, I am actually enjoying
by these.

Cheap Insurance's avatar 1047. Cheap Insurance - August 8, 2014

It’s proper a chance to generate ideas with the long term as well as it time for it to smile. I study this post of course, if I can I need to propose people very few exciting issues or maybe ideas. You could could write subsequent articles or blog posts concerning this report. I would like to learn more problems close to the idea!

health care's avatar 1048. health care - August 9, 2014

I’ve truly learn a few outstanding stuff below. Definitely worth book-marking regarding returning to. I delight how much energy you placed for making any such magnificent informative web-site.

buy hoodia gordonii australia's avatar 1049. buy hoodia gordonii australia - August 12, 2014

It’s not my first time to pay a visit this site, i am browsing this website dailly and
take pleasant facts from here all the time.

massage gold coast helensvale's avatar 1050. massage gold coast helensvale - August 12, 2014

It’s hard to find knowledgeable people for this subject, but you sound like you know what you’re talking
about! Thanks

http://Bestroboticvacuumcleaner-reviews.com's avatar 1051. http://Bestroboticvacuumcleaner-reviews.com - August 13, 2014

This piece of writing presents clear idea in favor of the new
viewers of blogging, that actually how to do blogging.

Fifa 14 point Gratuit's avatar 1052. Fifa 14 point Gratuit - August 13, 2014

I don’t even know the way I finished up right here,
but I believed this submit was good. I do not recognize who you’re
but definitely you are going to a well-known blogger for those
who are not already. Cheers!

Scrap Car Hertford's avatar 1053. Scrap Car Hertford - August 14, 2014

Howdy just wanted to give you a brief heads up and let you know a few of the images aren’t
loading correctly. I’m not sure why but I think its a linking issue.
I’ve tried it in two different browsers and both show the
same results.

Make money online with paid surveys | Free cash at DCD Group's avatar 1054. Make money online with paid surveys | Free cash at DCD Group - August 16, 2014

http://market-dcd.com
Offers, Make Money With Surveys, Win Free Money, The Easy Way
To Earn Money Make money online, Earn money by complet offer, survey, offers, multi media, ads, get paid
, make money at home, Paid Offers, How to get money fast, Get Paid To
Complete
Every time you will got money for complete an offers.
This money you can earn per every offer.

avant credit reviews's avatar 1055. avant credit reviews - August 16, 2014

Do you mind if I quote a few of your articles as long as I provide credit and sources back to your webpage?
My blog site is in the exact same niche as yours and my visitors would
certainly benefit from a lot of the information you present here.
Please let me know if this okay with you. Regards!

teaching yoga's avatar 1056. teaching yoga - August 16, 2014

Every weekend i used to pay a quick visit this web page, for the reason that i want enjoyment, since this this web site conations genuinely pleasant funny material too.

ジャックスペード 人気's avatar 1057. ジャックスペード 人気 - August 17, 2014

Today, I went to the beach with my kids. I found a sea shell
and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her
ear and screamed. There was a hermit crab inside and it pinched her ear.
She never wants to go back! LoL I know this is totally off
topic but I had to tell someone!

live casino på nett's avatar 1058. live casino på nett - August 18, 2014

of course like your web site but you need to test the spelling on several of your posts.
A number of them are rife with spelling issues and I in finding it very troublesome to tell the truth however I’ll definitely come again again.

ficwad.com's avatar 1059. ficwad.com - August 19, 2014

Attractive section of content. I just stumbled upon your weblog
and in accession capital to assert that I get actually enjoyed account your blog posts.

Any way I’ll be subscribing to your feeds and even I achievement you access consistently fast.

voyance gratuite par chat's avatar 1060. voyance gratuite par chat - August 19, 2014

Contre Denise, enfant, celui-ci cadeau était conforme une truc normale, avec laquelle elle-même vivait
à l’exclusion de se rendre prévision lequel exhaustif ceci
monde n’était enjambée identiquement elle-même.
« Moi-même voyais seul amie monter sur bizarre muret
après je me demandais pourquoi elle-même y montait puisqu’elle
allait tomber. » Et elle tombait. Parmi nombre de voyants
puis médiums, Mina possède des qualités de encaissement rares alors recherchées.
Elle-même dit celui dont’elle-même voit avec calme alors sérénité.

Elle capte ces émotions alors ces énergies qui vous-même entourent puis peut vous aider à comprendre des blocages ensuite vous-même octroyer des apparition d’autre part
exécuter. C’est bizarre bon moyen d’autre part les personnes souhaitant franchir cela promontoire de la spiritualité de cela réaliser en in extenso discrétion sans peur d’être jugé.

Mes examen sont précises, détaillées ensuite datées.

samsung case's avatar 1061. samsung case - August 19, 2014

Hi! Would you mind if I share your blog with my myspace group?
There’s a lot of people that I think would really enjoy your content.
Please tell me. Many thanks

tab lg's avatar 1062. tab lg - August 19, 2014

With choosing so much content do you ever run into any issues of copied content or right of first publication infringement?
My site has a lot of exclusive content I’ve either authored myself or outsourced but
it looks like a lot of it is popping it up all over the web without my
agreement. Do you know any solutions to help prevent content from being stolen? I’d genuinely
appreciate it.

laertespl's avatar 1063. laertespl - August 19, 2014

With these kind of problems you can identify the way of thinking and not the skills.

Here is my solution in C# which is different of others solution I have seen so far, it took me more than 5 minute.

static void Main(string[] args)
{

for (int i = 1; i <= 100; i++)
{

if (MultiplesOf(3).Contains(i) && MultiplesOf(5).Contains(i))
{
Console.WriteLine("FizzBuzz " + i);
}
else if (MultiplesOf(5).Contains(i))
{
Console.WriteLine("Buzz " + i);
}
else if (MultiplesOf(3).Contains(i))
{
Console.WriteLine("Fizz " + i);
}
else
{
Console.WriteLine(i);
}

}
Console.ReadLine();
}

public static List MultiplesOf(int toMultiply)
{
List listOfMultiples = new List();
for (int i = 1; i <= 100; i++)
{
listOfMultiples.Add(i * toMultiply);
}
return listOfMultiples;
}

extreme diet pills's avatar 1064. extreme diet pills - August 20, 2014

Amazing! Its truly awesome article, I have got much clear idea on the topic of from this post.

Roderick's avatar 1065. Roderick - August 20, 2014

Hey there are using WordPress for your site platform?
I’m new to the blog world but I’m trying to get started and set up my own. Do you
need any coding knowledge to make your own blog? Any help would be really appreciated!

text your ex back pdf's avatar 1066. text your ex back pdf - August 21, 2014

I’m not that much of a internet reader to be honest but your sites really nice, keep it
up! I’ll go ahead and bookmark your site
to come back later on. Cheers

african Mango diet's avatar 1067. african Mango diet - August 21, 2014

I couldn’t refrain frdom commenting. Well written!

Tao of Badass Author Josh Pellicer's avatar 1068. Tao of Badass Author Josh Pellicer - August 21, 2014

If some one wants expert view about running a blog
afterward i suggest him/her to pay a visit this weblog, Keep up the good job.

1069. best hotels cheap hotels in london west end - August 22, 2014

best hotels cheap hotels in london west end

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

Daniele's avatar 1070. Daniele - August 22, 2014

Appreciating the time and effort you put into your website and in depth information you present.
It’s nice to come across a blog every once in a while that isn’t the same unwanted rehashed information. Excellent
read! I’ve saved your site and I’m adding your RSS feeds to my
Google account.

best gas grill 2014's avatar 1071. best gas grill 2014 - August 23, 2014

Hello! I know this is kinda off topic nevertheless I’d figured I’d ask.
Would you be interested in trading links or maybe guest writing a blog article
or vice-versa? My website addresses a lot of the same topics as yours and I feel we could greatly benefit from
each other. If you might be interested feel free to shoot me an e-mail.
I look forward to hearing from you! Great blog by
the way!

Máy đo đường huyết's avatar 1072. Máy đo đường huyết - August 24, 2014

That funny to using FizzBuzz to Find Developers.

http://Lintas.me/article/oketekno.com/edugame-ilmu-kimia-chemquest-hasil-kerja-sama-malaysia-dan-indonesia's avatar 1073. http://Lintas.me/article/oketekno.com/edugame-ilmu-kimia-chemquest-hasil-kerja-sama-malaysia-dan-indonesia - August 24, 2014

According to the case above, it’s not difficult to focus more important factors when you
purchase a tablet. This is simply known as severe video game
addiction. Instead of aliens and humans, you will be choosing a variety of cute little animals with special abilities.

top Car gps 2014's avatar 1074. top Car gps 2014 - August 25, 2014

My spouse and I stumbled over here from a different page and thought I may as well check things out.
I like what I see so i am just following you. Look forward to checking
out your web page for a second time.

Best treadmills 2014's avatar 1075. Best treadmills 2014 - August 25, 2014

Great goods from you, man. I have understand your stuff previous to
and you’re just too excellent. I really like what you’ve acquired here, certainly like what you are stating and the way in which
you say it. You make it entertaining and you still care for to keep it smart.
I cant wait to read much more from you. This is really a tremendous web site.

support www.northcash.com's avatar 1076. support www.northcash.com - August 25, 2014

If you want to get much from this article then you have to apply
such methods to your won blog.

Jay's avatar 1077. Jay - August 26, 2014

In FreeBASIC, and overdocumented to hell because you know something like this will break when you’re not on-site:

‘Fizzbuzz revision 0

‘This program will print the numbers from 1 to 100
‘Except for multiples of three, it will print “Fizz”
‘and for multiples of five, it will print “Buzz”
‘and for mutliples of both three and five it will print “FizzBuzz”.

‘Rev 0 – JKF – Initial program written to spec

dim i as integer

dim isFizz as integer
dim isBuzz as integer

for i = 1 to 100

‘Check if i is a multiple of 3. If it is, then this number is fizz.
isFizz = (i mod 3) = 0

‘Check if i is a multiple of 5. If it is, then this number is buzz.
isBuzz = (i mod 5) = 0

‘If i is Fizz, then print Fizz without a new line.
if isFizz then
print “Fizz”;
end if

‘If i is Buzz, then print Buzz without a new line.
if isBuzz then
print “Buzz”;
end if

‘If i is neither Fizz nor Buzz, then print the number without a new line.
if (isFizz = 0) and (isBuzz = 0) then
print i;
end if

‘Print a new line, completing this cycle.
print

next i

sleep

best baby monitors 2014's avatar 1078. best baby monitors 2014 - August 26, 2014

What’s up Dear, are you in fact visiting this site on a regular basis, if so then you will
without doubt obtain pleasant know-how.

Toko Online's avatar 1079. Toko Online - August 27, 2014

I am regular visitor, how are you everybody?
This paragraph posted at this website is actually good., http://goo.gl/Zj5gKv

MI40X shoulders's avatar 1080. MI40X shoulders - August 27, 2014

It’s nearly impossible to find well-informed people in this particular topic, but you sound like you know what you’re talking about!
Thanks

smaller business owner's avatar 1081. smaller business owner - August 28, 2014

Hi! Do you use Twitter? I’d like to follow you if that would be okay.
I’m absolutely enjoying your blog and look forward to new updates.

Best Led TV Brand's avatar 1082. Best Led TV Brand - August 28, 2014

Today, I went to the beachfront with my children. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the
shell to her ear and screamed. There was a
hermit crab inside and it pinched her ear. She never wants to go back!

LoL I know this is totally off topic but I had to tell someone!

biolyn's avatar 1083. biolyn - August 28, 2014

Outstanding quest there. Whaat occurred after?
Good luck!

Sammie's avatar 1084. Sammie - August 28, 2014

Very nice article. I absolutely appreciate this website.
Continue the good work!

www.foodspotting.com's avatar 1085. www.foodspotting.com - August 28, 2014

It’s remarkable to pay a quick visit this
website and reading the views of all mates concerning this article, while I am
also eager of getting know-how.

bodybuilding cookbook's avatar 1086. bodybuilding cookbook - August 29, 2014

excellent submit, very informative. I wonder why the opposite specialists of this sector
do not realize this. You must continue your writing.

I am sure, you’ve a huge readers’ base already!

Meir Ezra Business Details's avatar 1087. Meir Ezra Business Details - August 29, 2014

The lazy people are symbolized by X, even though
the perfect staff are symbolized by Y. Only some seasoned and dedicated Ce – MAP
training companies offers the very best quality Ce – Guide training at inexpensive value with assured good results.
Alright – regardless of the name that has come to be related to this kind of
frivolous legal action, it provides absolutely nothing concerning hot coffee, burns or Mc – Donalds.

earn your income online's avatar 1088. earn your income online - August 30, 2014

Hi, after reading this remarkable piece of writing i am as well glad to share my experience here with mates.

windows 7 loader download's avatar 1089. windows 7 loader download - August 30, 2014

One way to check your Microsoft software is by reviewing the Certificate of
Authenticity. In step 4, it is a DOS interface, but no nags, no complicated computer terms; you can handle with the steps with ease.
It makes you capable of measuring the efficiency and return on investment of your marketing
campaigns.

jasa Seo surabaya's avatar 1090. jasa Seo surabaya - August 30, 2014

The above reasons clearly show the benefits of joining a search engine
optimization course. Once you have written your
website’s content with your targeted keyword,
you also need to think of a page title that will also contain the keyword.
Visitors and search engines alike use the site map, sometimes called a navigation bar, makes it
easier to find the pages on your site.

Angelika's avatar 1091. Angelika - August 31, 2014

I read a lot of interesting articles here. Probably you spend
a lot of time writing, i know how to save you a lot of work, there is an online tool
that creates unique, SEO friendly articles in minutes,
just type in google – laranitas free content source

best green superfood powder's avatar 1092. best green superfood powder - August 31, 2014

It’s the best time to make some plans for the future and it is time to be happy.
I’ve read this post and if I could I wish to suggest you some interesting
things or advice. Perhaps you could write next articles referring to this
article. I desire to read more things about it!

halloween costumes ideas for women's avatar 1093. halloween costumes ideas for women - August 31, 2014

Yesterday, while I was at work, my sister stole my iPad and tested
to see if it can survive a 25 foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she has 83 views.
I know this is totally off topic but I had to share it
with someone!

Unknown's avatar 1094. On Hiring and FizzBuzz – Insights into Software Development - September 1, 2014

[…] 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”. -Imran Ghory, Using FizzBuzz to Find Developers Who Grok Coding […]

deer hunter 2014 cheats mac os x's avatar 1095. deer hunter 2014 cheats mac os x - September 1, 2014

What’s up to every body, it’s my first go to see of this web site; this webpage consists
of awesome and really fine material in support of visitors.

hotrolamdep.com's avatar 1096. hotrolamdep.com - September 1, 2014

There is certainly a lot to learn about this issue.
I really like all of the points you’ve made.

ダコタ 財布's avatar 1097. ダコタ 財布 - September 1, 2014

Hi! I’m at work surfing around your blog from my new iphone!
Just wanted to say I love reading your blog and look
forward to all your posts! Keep up the great work!

Sac Longchamp Pliable's avatar 1098. Sac Longchamp Pliable - September 1, 2014

Sac Longchamp Pliable Sac Cuir Longchamp CJFgB Cresciuto nei progetti in Alabama,
dice il designer 30letny ha realizzato in tenera età, per me,
di vedere la bellezza, ho dovuto fare it.When vivere ad Atlanta come stilista freelance di moda, Williams ha disegnato abiti
per Heidi Klum e Keshia Cavaliere Pulliam. Attualmente sta creando un guardaroba per l’attrice Stacey Dash e il suo nuovo show VH1, Single Ladies.
Longchamp Site Officiel Kate Moss Longchamps ROnAM
Questo assicura che il bagagliaio mantiene la sua forma corretta sotto pressione si
dovrebbe exert.Using un buon cemento di contatto progettato per ciabattino (goo scarpa e chiatta sono
due esempi), lubrificare il cuoio e suola cui due erano una volta entrato e lasciato solo!
Attendere che il cemento è quasi asciutto, ma ancora tacky.Next, premere
delicatamente la base in posizione sulla parte superiore.
Usare una mano ferma ed essere sicuri di accoppiare i due pezzi esattamente come si
riferiscono alle parti cementati appena cemented.Dig un Cclamp del toolbox,
e pizzicare lo stivale più vicino al sito corrente.
Sac Longchamp Pas Cher Pliage Sac Longchamp Nouvelle Collection uFpkA Ho deciso
che avevo bisogno di seppellire la sicurezza
formaximum. Thiswould per tenerli al sicuro da tutti, ma i teppisti governo deterministico minato.
Sac Longchamp Cuir Sac Longchamp Pliage M RiYYU Io non sono il piede torto incinta di un bambino, quindi non ho questa particolare esperienza,
sono qui, sto cercando la risposta. Ma ho due
figli ei bambini che piangono ottiene risultati, come si impara molto velocemente come
arrivare qualcun altro a prendere le chiavi imparato che è possibile saperlo?
Una cosa che non è il modo in cui vogliamo essere, e se non dalla nascita di mia figlia, molto persistente e in grado di
urlare volto per ore.. Sac Longchamp Cosmos Serviette Longchamps QEvII L’industria
del matrimonio americano porta in una cifra stimata 40000000000 dollari all’anno.
Quindi non è esattamente sorprendente che le imprese
con presunti legami con la felicità coniugale vorrebbe ancora trovare
un modo per incassare dentro Quale può essere il motivo per
cui la società che ha scatenato gli stivali di pelle di pecora su un mondo ignaro ora saltare nel mercato
di nozze..

Sacs Longchamp Saint Francois Longchamp Webcam rZxJM Queste
finestre possono indossare la maglia completo controllo persona aniPhone o altro touch screen touch screen device.For vedere la
facilità e la comodità di un telefono cellulare e lettore MP3 con thetravel West, oltre a Windows Phone con schermo rigido thetravel Ovest
ha un sistema di scala per cuffie incorporato .

All’inizio ero scettico, come mi sembra sempre di impigliarsi nei miei cavi delle cuffie, ma sotto l’aspetto assicurativo occidentale
casco thetravel facilmente senza dolore e offhidden e untangled.There sono due problemi minori con theScottevest Vestand Viaggio con piccolo sarà dico è minore .

Longchamps Sac Besace Longchamp Homme XllEd L’organizzazione è importante
nella vostra vita quotidiana: Soggiorno organizzato in reti di lavoro migliore prestazione
di lavoro, durante il soggiorno organizzato in filato casa migliore igiene (o parate
scarafaggi almeno più efficienti). E se mai hai bisogno di puntare
a una competenza che i videogiochi ti hanno insegnato
molto meglio di qualsiasi altro mezzo, non guardare oltre l’organizzazione.
Prix Sacs Longchamp Sac A Main Longchamp Pas Cher tRGxL Il denunciante sosteneva ASG
Presidente RK Anand, che ha anche il leader di destra Comitato NGOC, Segretario Generale JOA, SM
Hashmi e tesoriere MK Pathak per appropriazione
indebita acquistare sport. Un altro PIL è stata depositata
presso la Corte Hye NGOC accusato di irregolarità in asta per
la selezione di una società di gestione degli eventi..

csr racing hack android's avatar 1099. csr racing hack android - September 2, 2014

I hope you enjoyed my article on radiation exposure
and now have a better understanding about it. This workshop also received support from the globe
well being company WHO’s Indonesia representative,
IAKMI-General public Health Specialist Affiliation of Indonesia and SEATCA-The Southeast Asia Tobacco Handle Alliance.
The best thing about these kit’s is installation does not require a whole
lot of bodywork, usually just some two-sided tape and some
nuts and bolts.

first aid kit's avatar 1100. first aid kit - September 3, 2014

Inspiring quest there. What occurred after?Goodd luck!

orlando taxi rates's avatar 1101. orlando taxi rates - September 3, 2014

Using an online database to narrow down the aisles much more.
Funeral ceremony is held on the interior of the funeral would be at
the age of 69 after suffering a blood drainage
pit, and extra. You can check out the funeral-tips website for their funeral taxi
orlando before dying.

facebook astuce springfield's avatar 1102. facebook astuce springfield - September 4, 2014

I think this is among the most vital information for me.

And i’m glad studying your article. But
want to statement on few general things, The site
taste is wonderful, the articles is truly nice :
D. Good activity, cheers

free pdf download into the wild's avatar 1103. free pdf download into the wild - September 5, 2014

If you wish for to take a good deal from this article then you have to appply such techniques to your won webpage.

Renate's avatar 1104. Renate - September 6, 2014

I delight in, lead to I discovered just what I was taking a look for.
You’ve ended my 4 day lengthy hunt! God Bless you man. Have a great day.

Bye

1105. line rangers cheat apk - September 7, 2014

line rangers cheat apk

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

antoine walker's avatar 1106. antoine walker - September 7, 2014

I think the admin of this website is in fact working hard in favor of
his web page, because here every stuff is quality based information.

bingo online gratis bonus's avatar 1107. bingo online gratis bonus - September 8, 2014

You should take part in a contest for one of
the greatest blogs on the internet. I most certainly will recommend this website!

Felix's avatar 1108. Felix - September 8, 2014

This may also involve slopes. People fall into this new technology.

By hiring competent contractors, it s a seemingly qualified individual resulted
in judgments of unlicensed contractors more appliances.

There are many places that requires replacement after
they lent large sums to charity, is growing by the unlicensed contractors contractor.

The proficient teams may perhaps handle any surge protections, TVSS.

A special case of BFS-containing pastes.

Judith's avatar 1109. Judith - September 10, 2014

Other credentials to show their numbers school bus
much less than a century the interior walls. Get your St Francois
County sheriff’s office took place at the heart of the price is too small or large scale companies to file estimations every quarter.
The contractor is not. Find out also if the new fence system not only allows for the Iraqis filed a lawsuit
against is an architectural concept that is just that!

http://nsfa.Us/alphafuelx848089's avatar 1110. http://nsfa.Us/alphafuelx848089 - September 10, 2014

Hi there! Do you use Twitter? I’d like to follow
you if that would be ok. I’m absolutely enjoying your blog and look forward to new updates.

1111. SQL Administrators Interview Questions | SQL Administrators Interview Questions - September 10, 2014

[…] Here’s a quote of the FizzBuzz problem: […]

Matt's avatar 1112. Matt - September 10, 2014

A good contractor will aid budget your payment terms and conditions of a potential customer, wants
done and, in one painting consumers tools don t hear from you?
Third party contractor accountants are specialist jobs, the major dilemma
of people will offer you a lot of space. Electricians can be regularly updated with the Governor
issue the call centre provider Capita. Inc ERM Group was chosen and why.
This type of wood they weren’t able to take a couple.

The Penis Enlargement Bible's avatar 1113. The Penis Enlargement Bible - September 11, 2014

Good way of telling, and good paragraph to obtain facts about my presentation topic, which i am going to present in academy.

Margery's avatar 1114. Margery - September 12, 2014

What’s up, just wanted to tell you, I loved this article.
It was helpful. Keep on posting!

how to create ecommerce website's avatar 1115. how to create ecommerce website - September 13, 2014

What’s up, its nice article regarding media print, we all be familiar with media is a enormous source oof data.

glycemate Reviews's avatar 1116. glycemate Reviews - September 13, 2014

Thanks in support of sharing such a pleasant idea, post is fastidious,
thats why i have read it completely

1117. in this commercial - September 15, 2014

in this commercial

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

pinterest's avatar 1118. pinterest - September 15, 2014

As you learn more and more about the platform,
take notes and come up with ideas on how to use it better.
Google+ is a social networking site that has a range of different features that you can use to connect with patients and other
healthcare professionals. The “following” and “followers” selection operates in the same fashion as Google+ and Twitter.

Shani's avatar 1119. Shani - September 15, 2014

Right hetе is thhe right webpage for anyone who
wishes to understɑnd this tߋpic. You know a whole lot its almost hard to argue with
you (not that I personally would want to…HaHa).
Youu defnitely put a new spin on a topic which has been written abou for ageѕ.
Exϲellent ѕtuff, just ѡonderfսl!

Sheena's avatar 1120. Sheena - September 17, 2014

It was only a phone number in perspective, I am on the consumers job and a half.
Always pay with a specialist basement finishing project!
Whereas tapping contractor accountants are the five questions you can check home safety off of an electrician to obtain their state’s required licensure responsibilities, the main thing
that a technical project as well. Who we are because we always try to game the tax hassles.

Casimira's avatar 1121. Casimira - September 19, 2014

Hi! I just wznted to ask if you ever have any trouble with hackers?
My last blog (wordpress) was hacked and I ended up losing
a few monthus of hard ork due to no data backup.
Do you have any methods to protect against hackers?

up skin Reviews's avatar 1122. up skin Reviews - September 19, 2014

I am truly delighted to glance at this web site posts which consists of tons of helpful facts, thanks for providing
these statistics.

suit6star.centerblog.net's avatar 1123. suit6star.centerblog.net - September 20, 2014

This is really interesting, You are a very skilled blogger.

I have joined your feed and look forward to seeking more of your wonderful post.
Also, I have shared your website in my social networks!

dudley moore's avatar 1124. dudley moore - September 20, 2014

Hi there friends, how is the whole thing, and what
you desire to say concerning this post, in my view its truly
awesome in favor of me.

Aubrey's avatar 1125. Aubrey - September 21, 2014

I find that somewhere between 35% and 50% yield the best results, but it
comes down to personal preference. Expecting much from their hatchback, Toyota Etios Liva they plan to make 10 per cent contribution small car segment of
the automobile mart in India till this year ends.

NOTE: According to the Forest Service, each person may pick up to three gallons
of berries in a year for personal consumption without a permit.

Codici Xbox Live Gratis's avatar 1126. Codici Xbox Live Gratis - September 21, 2014

I’m gone to tell my little brother, that he should also go to
see this website on regular basis to get updated from latest gossip.

minecraft's avatar 1127. minecraft - September 21, 2014

Oh my goodness! Incredible article dude! Thanks, However I am having issues with your RSS.
I don’t understand the reason why I cannot subscribe to
it. Is there anybody having the same RSS problems? Anyone who knows the answer can you kindly respond?
Thanks!!

flares rust's avatar 1128. flares rust - September 22, 2014

Fantastic website. Plenty of useful information here.
I’m sending it to several buddies ans also sharing in delicious.
And obviously, thank you to your sweat!

Chastity's avatar 1129. Chastity - September 22, 2014

A unlicensed contractors 32-capillary system has been providing electric wiring.
The defendant in the price might exceed your budget and time.

search engine optimization costs's avatar 1130. search engine optimization costs - September 23, 2014

There can be a highly effective content development to the size of the latest computer or even years.
Acquiring proper commercial IT exams is what every firm needs access
to this career, but regionally-accredited schools normally don’t search engine marketing recognize credits transferred from
nationally-accredited once. Moving away from desk based websites are more in getting profits in the
long run it is not all. In order to get traffic, sales and the large established model doesn’t ever work.
A heading would be better for usability.

http://tackycabin3068.kazeo.com/'s avatar 1131. http://tackycabin3068.kazeo.com/ - September 23, 2014

Good day I am so delighted I found your web site, I really found you by mistake,
while I was browsing on Digg for something else, Nonetheless
I am here now and would just like to say cheers for a fantastic
post and a all round exciting blog (I also love the theme/design), I don’t have time to
look over it all at the minute but I have book-marked it and also added in your RSS feeds, so when I have
time I will be back to read a lot more, Please do keep up the superb work.

Yes Wellness Voucher Codes's avatar 1132. Yes Wellness Voucher Codes - September 23, 2014

If you would like to increase your knowledge just keep visiting this web site and be updated with
the hottest gossip posted here.

Jacquie's avatar 1133. Jacquie - September 23, 2014

For instance,” provide a distributor of over clamping the floorboards. Do you liability in specific areas, we really know. House painting isn’t that difficult a task. Their company lies in your bathroom or kitchen, there are many types of policies available from contractors, doing a job swiftly done if the person and IT Contractor know what they’re doing. You do not lose too much time the lever.

ช่างเหล็กภูเก็ต's avatar 1134. ช่างเหล็กภูเก็ต - September 23, 2014

Nice post. I was checking continuously this blog and
I’m impressed! Extremely helpful info specially the last part 🙂 I care for
such information much. I was looking for this certain info for a very long time.
Thank you and best of luck.

Tonja's avatar 1135. Tonja - September 23, 2014

Fantastic blog! Do you have any tips and hints for
aspiring writers? I’m hoping to start my own blog soon but I’m a little lost on everything.
Would you advise starting with a free platform like WordPress or go for a paid option? There are
so many options out there that I’m totally confused ..
Any ideas? Thanks!

monster warlord mod apk's avatar 1136. monster warlord mod apk - September 23, 2014

Baird, movie online games generated approximately US
$60 billion in 2011. Some of this profits arrives from impatient players who never want to wait around
thirty minutes to get their following no cost lifestyle (or troll their Facebook
close friends for them like a crackhead bumming change), so they pony-up $.
We have all had a second when we sat on a toilet bored out of our minds and
felt entirely unproductive.

hotline miami 2 wrong number pc download's avatar 1137. hotline miami 2 wrong number pc download - September 25, 2014

NO TURNING BACK: Get your own 1/6 scale (12 inch) Jacket collectible
figure.

check this site out's avatar 1138. check this site out - September 25, 2014

Though the drunk driving defense enforcement
differs widely separating and inside jurisdictions or territories, however, this could turn out.

These include field sobriety tests are not only understands all the
laws of Louisiana.

online dating site's avatar 1139. online dating site - September 25, 2014

An impressive share! I’ve just forwarded this onto a coworker who had
been conducting a little homework on this. And he actually bought me lunch due to the fact that I discovered it
for him… lol. So allow me to reword this…. Thanks for
the meal!! But yeah, thanx for spending the time to talk about this matter here on your
web page.

youdomin's avatar 1140. youdomin - September 25, 2014

You really make it seem so easy together with your presentation but
I in finding this matter to be really one thing which I feel
I’d never understand. It sort of feels too complex and extremely
wide for me. I’m looking ahead for your next submit, I will try
to get the cling of it!

Rob MacMorran's avatar 1141. Rob MacMorran - September 25, 2014

Most concise solution I could write was in powershell:
$f=@(‘FIZZ’);$b=@(‘BUZZ’);1..100|%{[string]$_+$f[$_%3]+$b[$_%5]}
Concise isn’t always good, but it’s actually very readable once you understand powershell won’t throw indexoutofrange exceptions on arrays.
-RobM

1142. Ebon Talifarro - September 26, 2014

Ebon Talifarro

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

Jennifer and David Parmenter's avatar 1143. David Parmenter - September 26, 2014

Learning Spark, and could not resist. Massively Parallelized version of FizzBuzz. Coding time 1 minute. Bring on the haters!!!

def fizzbuzz(x):
if x % 15 == 0: return ‘fizzbuzz’
if x % 3 == 0: return ‘fizz’
if x % 5 == 0: return ‘buzz’
return x
sc.parallelize(range(1,101)).map(lambda x: (x, fizzbuzz(x))).collect()
[(1, 1),
(2, 2),
(3, ‘fizz’),
(4, 4),
(5, ‘buzz’),
(6, ‘fizz’),
(7, 7),
(8, 8),
(9, ‘fizz’),
(10, ‘buzz’),
(11, 11),
(12, ‘fizz’),
(13, 13),
(14, 14),
(15, ‘fizzbuzz’),
(16, 16),

Luca aka's avatar Luca aka - December 25, 2016

Wow

บ้านตู้คอนเทนเนอร์'s avatar 1144. บ้านตู้คอนเทนเนอร์ - September 27, 2014

The hose pipe is linked to an outdoors unit through a compact window that lets out merely the supplied air and doesn’t allow exterior air to get in by way of
it. He then went on to build another company called Chips and Technologies,
which created another chips set for enhancing the so-called graphic adapter.
Pillows:  Most old ladies can sew and some make a small hole in a pillow and add money.

Nellie's avatar 1145. Nellie - September 28, 2014

Nice post. I learn something totally new and challenging on websites I stumbleupon everyday.
It will always be helpful to read content from other authors and practice a little something
from their websites.

tallahassee seo serivces's avatar 1146. tallahassee seo serivces - September 28, 2014

Do you have any video of that? I’d love to find out
more details.

นาฬิกา rolex's avatar 1147. นาฬิกา rolex - October 1, 2014

Hello are using WordPress for your site platform?
I’m new to the blog world but I’m trying to get
started and set up my own. Do you require any coding expertise to make your own blog?
Any help would be greatly appreciated!

box 610 bluehost google analytics's avatar 1148. box 610 bluehost google analytics - October 3, 2014

Different web hosting reviews are usually found on the same sites as top 10 hosting comparison sites.
What’s fascinating is generally that you do not need to
give the total price tag tag for that service they have.
They have their own forum, tel support, live chat
and so on. You need to make your service and product something special; this way you will have
a better chance of procuring the consumers you are looking for.
With less time involved in doing excessive and additional work, you can focus more upon catering towards the needs of your clients.

How do you maintain all the links and contain on a static website.

Most web site site hosting businesses this sort of as Host – Gator are deciding upon to
go green in order to conserve power, and to advertise a better natural
environment. ll be asked to check the email address of the domain name.

So I was always confused as to what to do with the songs, I was also afraid that my
work would never be heard. A wealthy FAQ and tutorial update is uploaded typically to
confirm that clients are well informed.

funny videos of people getting scared's avatar 1149. funny videos of people getting scared - October 4, 2014

This post is invaluable. Where can I find out more?, http://goo.gl/1hT0Ln

different solitaire card games's avatar 1150. different solitaire card games - October 4, 2014

A single continual suggestion has been to make an obstacle to change or supplement the
low railing, an element of the bridge’s primary
executive pattern. The film also included interview with living through members of the family of those people who leaped amazingly interviews with witnesses and,
in a phase, an interview with kevin hines who,
like a 19-12 months-previous in 2000, lasted a committing suicide jump in the extend to
and it’s now a singing suggest for some form of bridge obstacle or
online to stop this kind of accidents. Excursion as well as begin their day on new materials for one more
album. Is the human body of laws and procedures relating to individuals
the. Legislation in-series with the demands of the berne norm.
The plaintiffs believed how the uraa broken the InlimitednessInch in the copyright
laws time period by extracting operates on the.

Celluxe Instant Wrinkle Reducer's avatar 1151. Celluxe Instant Wrinkle Reducer - October 4, 2014

There’s definately a great deal to find out about this subject.

I like all of the points you made.

oviedo radio taxi's avatar 1152. oviedo radio taxi - October 5, 2014

” Such a student would fail my course, since he was left stranded by the tram, Beugels cobbled together a consortium of
partners, distributors and sponsors from
both Republicans and Democrats, including Jahn. Last week, I had no phone at the
time.

bing's avatar 1153. bing - October 5, 2014

If you have been feeling tired and rundown lately, and seem to be gaining weight for no apparent reason, then it
is time for a change. Safety is also assured when taking Adiphene because of its natural ingredients, which means that serious side effects are unlikely to happen if
taken as directed. The science behind Adiphene consists of 12 of
probably the most power fat preventing ingredients known.

bing's avatar 1154. bing - October 5, 2014

You’ll for certain do not have something to lose with Adiphene, thus for those
that actually need to slim while not losing their time and power, then Adiphene is that the product for you.
It’s conceivable to accomplish this objective the conventional
path moreover through an equalized eating methodology and exercise.
With more time now passed, those rates would be even higher
as obesity is still on the rise.

Reginald's avatar 1155. Reginald - October 5, 2014

I amm not sure where you’re getting your info, but great topic.
I needs to spend some time learning much ore or understanding
more. Thanks for fantstic information I was looking for this information for my mission.

agen bola tangkas's avatar 1156. agen bola tangkas - October 6, 2014

Perhaps you had a fragmented family and never experienced consistency in your early
years. In fact, a great many goal-based writings are geared towards improving businesses at the bottom line in terms of increased
efficiency, increased productivity, etc. Look inside the records for more information before placing your soccer bets.

ringing in the ears's avatar 1157. ringing in the ears - October 6, 2014

If you want to know the crystal clear details it is better to view
just about any online store web sites explaining the actual product or service information using elements.
Adiphene the new weight loss formula is now available
with the power of 11 different fat burners to boost weight loss.
Glucomannan is among the most active hunger suppressants
in Adiphene, and it works to suppress yearnings and help you handle
your parts.

best vines of all time's avatar 1158. best vines of all time - October 6, 2014

hey there and thank you for your info – I’ve definitely
picked up anything new from right here. I did however expertise a
few technical points using this website, since I experienced to reload the site lots
of times previous to I could get it to load correctly.
I had been wondering if your web host is OK? Not that I am complaining, but
sluggish loading instances times will sometimes affect your placement in google and can damage your high quality score if advertising and marketing with Adwords.
Anyway I am adding this RSS to my email and could look out for much more of your respective fascinating content.
Ensure that you update this again very soon., funny
videos http://goo.gl/ya6Dvp

servizi fotografici matrimoni milano's avatar 1159. servizi fotografici matrimoni milano - October 7, 2014

Il servizio fotografico per matrimonio a Roma ha unn solo nome; Studio Pensiero.
Non facciamo posare nessuno, cogliamo le situazioni che si
verificano in modo naturale, rendendo la fotografia un modo di raccontare.

fifa 14 hack android no root's avatar 1160. fifa 14 hack android no root - October 7, 2014

Hi I am so excited I found your site, I really found you by mistake,
while I was searching on Aol for something else, Regardless I am here now and would just like to say thank you for a tremendous
post and a all round thrilling blog (I also love the theme/design), I
don’t have time to look over it all at the moment but
I have bookmarked it and also added your RSS feeds, so when I have time I
will be back to read more, Please do keep up the excellent work.

xmark adjustable dumbbells's avatar 1161. xmark adjustable dumbbells - October 8, 2014

You wont find Adiphene in your native pharmacy or some huge store like
Walmart or Walgreens. It’s conceivable to accomplish this objective the conventional path moreover through an equalized eating methodology and exercise.
Different studies have demonstrated the profits of Ginseng Panax Root Extract.

http://www.sargammetals.com/searchtags/nikeairjordan/?key=nike+air+jordan+iv+history's avatar 1162. http://www.sargammetals.com/searchtags/nikeairjordan/?key=nike+air+jordan+iv+history - October 8, 2014

Hi to every body, it’s my first visit of this weblog; this blog contains awesome
and really excellent information designed for visitors.

best vines ever's avatar 1163. best vines ever - October 8, 2014

Hi there, after reading this awesome piece of writing i am as well glad to share my
knowledge here with friends., funny videos epic fails pranks cats compilation 2014 http://goo.gl/SRz2dW

funniest vines ever's avatar 1164. funniest vines ever - October 8, 2014

Unquestionably believe that which you stated. Your favorite reason appeared to be on the
net the easiest thing to be aware of. I say to you,
I certainly get irked while people think about worries that
they just do not know about. You managed to hit the nail upon the top and also defined out the whole thing without having
side effect , people could take a signal.

Will probably be back to get more. Thanks, best funny vines compilation 2014 http://goo.gl/FZK2GI

hedgehogs pets's avatar 1165. hedgehogs pets - October 8, 2014

Hi there, everything is going fine here and ofcourse every one is sharing data, that’s genuinely excellent,
keep up writing.

funny videos of people falling's avatar 1166. funny videos of people falling - October 8, 2014

If you want to grow your experience just keep visiting this web page and be updated with the
most recent news posted here., funny videos epic fails pranks cats compilation 2014 http://goo.gl/d1j75u

Arthritis Awareness Charm's avatar 1167. Arthritis Awareness Charm - October 9, 2014

Greetings I am so delighted I found your blog,
I really found you by error, while I was searching on Google for something else, Anyhow I am here now and would just like to say thank you for a fantastic post and a all round interesting blog (I also love the
theme/design), I don’t have time to read it all at the moment but
I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read
much more, Please do keep up the awesome work.

best way to win lotto's avatar 1168. best way to win lotto - October 9, 2014

Hi there just wanted to give you a quick heads up and let youu know a few
of the images aren’t loading correctly. I’m not sure why but
I think itss a linking issue. I’ve troed it in two different
browsers and both show the same results.

cửa hàng online cho thuê's avatar 1169. cửa hàng online cho thuê - October 9, 2014

I am seriously satisfied with your crafting advantages and even while using the arrangement on your web site. Are these claims the given topic or even do you customize it all by yourself? In any event . maintain the favorable premium quality writing, it really is unusual to look a great website like this one today cửa hàng online cho thuê.

Mom Biagi Charm's avatar 1170. Mom Biagi Charm - October 9, 2014

Thanks for sharing such a nice thinking, paragraph is pleasant, thats why i have read it completely

Stacey's avatar 1171. Stacey - October 9, 2014

You need to bee a part of a contest for one of the most useful blogs on the web.

I most certainly will hihhly recommend this site!

Savannah's avatar 1172. Savannah - October 9, 2014

Excellent blog! Do you have any tips for aspiring writers?
I’m planning to start my own site soon but I’m a little lost on everything.
Would you recommend starting with a free platform like WordPress or
go for a paid option? There are so many choices out there that I’m totally overwhelmed ..
Any suggestions? Appreciate it!

successful internet marketer's avatar 1173. successful internet marketer - October 9, 2014

The problem with so many plans for attaining Internet
marketing success is that there are many forms of marketing that just about everyone
else has been using. Mentioned before with all the benefits of
internet marketing, people still buy magazines, billboards went out to
check to see their mail, watch TV, and shopping. There are
many benefits to hiring an Internet marketing agency to
manage your online marketing efforts.

dbvehicleelectrics.com's avatar 1174. dbvehicleelectrics.com - October 10, 2014

Thanks for sharing your thoughts about vehicles. Regards

casino.no's avatar 1175. casino.no - October 13, 2014

Nice blog right here! Also your web site so much up fast!
What host are you using? Can I get your affiliate hyperlink on your host?

I want my web site loaded up as quickly as yours lol

Teen's avatar 1176. Teen - October 17, 2014

It’s going to be end ߋff mine day, except ƅefore ending Ӏ am reading thjs
impressive article to improve my knowledge.

bowflex dumbbells's avatar 1177. bowflex dumbbells - October 17, 2014

As previously mentioned, it helps you save money
as well because this product is your reliable, all-in-one exercise
machine. You could do the former if you don’t have
a whole lot of time left to search especially in the event you’re too preoccupied with work or another things.
If your working on building your own in home gym or would
just like a place to store your dumbbells, but don’t want to
spend a large amount of money on a dumbbell stand, this
easy to follow step by step will show you how to build your own at a fraction of
the cost.

Warner's avatar 1178. Warner - October 22, 2014

Hello my family member! I want to say that this article is amazing, nice written and come with almost
all important infos. I’d like to peer more posts like this .

web page's avatar 1179. web page - October 23, 2014

Good article! We will be linking to this particularly great content on our website.
Keep up the good writing.

1180. scion xb fog lamp cover - October 24, 2014

scion xb fog lamp cover

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

sealfin's avatar 1181. sealfin - October 27, 2014

I think it is both entertaining and distressing that a (slightly expanded) “fizz buzz” I programmed[1] for a contest has had more views on my blog than any other post…

[1] http://amodernprometheus.wordpress.com/2013/06/28/fizz-buzz-bizz-fuzz/

1182. A generalised FizzBuzz solution in R ;-) | Figural Effect - October 29, 2014

[…] spotted this and wondered if I could come up with a pretty solution in R. Here’s an […]

Monica Roland's avatar 1183. Monica Roland - November 5, 2014

I am Mrs.Sandra Bents from Germny, God has bless me with two kids and a loving husband, I promise to share this Testimony because of God favor in my life,2months ago I was in desperate need of money so I thought of having a loan then I ran into wrong hands who claimed to be a loan lender not knowing he was a scam. he collected 2,000USD from me and refuse to email me since. then I was confuse, but God came to my rescue, one faithful day I went to Court after the Case of my friend I share idea with a friend and she introduce me to ERIVAN LOAN COMPANY, she said she was given 50,000USD by MR ERIVAN , THE MANAGING DIRECTOR OF ERIVAN LOAN COMPANY . so I collected his email Address ,he told me the roles and regulation and I followed, then after processing of the Documents, he gave me my loan of 30,000POUNDS .you can contact him on via email : (erivanloancompany@yahoo.com) I am sure he will help you.

1184. Learn More Links for February 2014 - | Help Kids Code Magazine | Explore computer science and software programming - November 6, 2014
1185. Fizz-Buzz and Puzzle Questions Coders Might Face | Help Kids Code Magazine | Explore computer science and software programming - November 6, 2014
Landing Page Html Free's avatar 1186. Landing Page Html Free - November 7, 2014

It’s going to be ending of mine day, but before finish I am reading this wonderful article to increase my
experience.

Maria Zverina's avatar 1187. Maria Zverina - November 20, 2014

print “1”
print “2”
print “fizz”
print “4”
print “buzz”
print “fizz”
….

😉

bus from singapore to kl's avatar 1188. bus from singapore to kl - November 20, 2014

Hello! I’ve been reading your blog for some time now and finally got the
courage to go ahead and give you a shout out from Lubbock Tx!
Just wanted to tell you keep up the great work!{bus from singapore to kl|bus from
singapore to kuala lumpur|bus to kl
\

1189. ZQuiet Walmart - November 22, 2014

ZQuiet Walmart

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

new port richey seo's avatar 1190. new port richey seo - November 24, 2014

We\’re a gaggle of volunteers and opening a brand new scheme
in our community. Your website provided us with valuable information to work
on. You\’ve done a formidable activity and our entire community
will likely be grateful to you.

bonsaitreegardening.com's avatar 1191. bonsaitreegardening.com - November 26, 2014

Hi there, I believe your blog might be having web browser compatibility problems.
Whenever I take a look at your site in Safari, it looks fine however when opening in IE, it’s got some overlapping issues.
I merely wanted to give you a quick heads up!
Aside from that, wonderful blog!

delicious.com's avatar 1192. delicious.com - November 26, 2014

We provide clients the bottom refinancing rate available so
you conserve money and can reduce your obligations!

Synick's avatar 1193. Synick - December 2, 2014

Here is my solution for SQL server.. 🙂

Declare @i Int = 1
WHILE (@i < = 1000)
BEGIN
IF (@i%3 = 0) AND (@i%5 = 0)
PRINT 'FizzBuzz'
ELSE IF (@i%3 = 0)
PRINT 'Fizz'
ELSE IF (@i%5 = 0)
PRINT 'Buzz'
ELSE
PRINT (@i)
SET @i= @i+1
END

Forskolin Testosterone's avatar 1194. Forskolin Testosterone - December 2, 2014

Thank you a lot for sharing this with all folks you actually understand what you’re speaking about!
Bookmarked. Please additionally consult with my web site =).
We can have a hyperlink alternate arrangement between us

it.ukadultchat.com's avatar 1195. it.ukadultchat.com - December 3, 2014

Fantastic goods from you, man. I have consider your stuff previous to
and you are just extremely fantastic. I really like what you’ve
acquired right here, really like what you are stating and the way
during which you assert it. You are making it enjoyable and you still take
care of to keep it sensible. I can’t wait to learn far more
from you. That is really a wonderful web site.

Cherie's avatar 1196. Cherie - December 11, 2014

I just like the valuable info you provide to your articles.
I’ll bookmark your blog and test once more right here frequently.
I’m somewhat certain I’ll learn many new stuff right here!
Best of luck for the following!

1197. The Pairing Interview | 1 Bit Entropy - December 13, 2014

[…] smart candidate who is not a well-practiced, hands-on developer can wing it on the white board but will show a lack of practice when it comes to questions like those […]

1198. Today I took the FizzBuzz Test | Naseem's IdeaLog - December 14, 2014

[…] The FizzBuzz Test […]

Tanisha's avatar 1199. Tanisha - December 17, 2014

I am really happy to read this blog posts which consists of plenty
of useful information, thanks for providing these kinds of statistics.

What is the best point and shoot camera's avatar 1200. What is the best point and shoot camera - December 26, 2014

Do you have any video of that? I’d want to find out more details.

www.doctorsdock.com's avatar 1201. www.doctorsdock.com - December 26, 2014

I remember when there were smoking areas regarding jet and ash
trays into the arm remainder.

astuces clash of clans iphone's avatar 1202. astuces clash of clans iphone - December 27, 2014

Whenn someone writes an post he/she keeps the plan of a user in his/her mind that how a
user can know it. Therefore that’s why this paragraph is amazing.

Thanks!

ladriryah's avatar 1203. ladriryah - December 30, 2014

Reblogged this on BILGISAYAR YAZILARI.

best radar detector of 2015's avatar 1204. best radar detector of 2015 - December 31, 2014

An outstanding share! I have just forwarded this onto a coworker who has been doing
a little research on this. And he in fact bought me dinner simply because I stumbled
upon it for him… lol. So let me reword this…. Thank YOU
for the meal!! But yeah, thanks for spending some time to discuss this
issue here on your site.

Outlook 2010 training's avatar 1205. Outlook 2010 training - January 1, 2015

Generally I don’t learn post on blogs, however I would like to say that this write-up very forced me to
take a look at and do it! Your writing taste has been amazed
me. Thanks, quite nice post.

seo reputation management's avatar 1206. seo reputation management - January 2, 2015

Please call today or fill in the contact form for a full breakdown of how our clients
SEO campaigns are structured and how SEO Premier
can tailor a bespoke solution perfect for you business.

Andrew's avatar 1207. Andrew - January 3, 2015

Nice post. I used to be checking continuously this blog and I’m impressed!
Extremely useful info specifically the last phase 🙂 I care for such information a lot.
I used to be looking for this particular information for
a long time. Thank you and good luck.

Best digital cameras 2015's avatar 1208. Best digital cameras 2015 - January 5, 2015

I’m amazed, I must say. Seldom do I come across a blog that’s both equally
educative and engaging, and without a doubt, you have hit the nail on the
head. The problem is an issue that not enough people
are speaking intelligently about. Now i’m very happy that I found this during my search for something regarding this.

site's avatar 1209. site - January 6, 2015

At OzVape we pride ourselves on attempting to sell quality equipment
and e-liquid, for all you vaping needs.

What is the best soundbar's avatar 1210. What is the best soundbar - January 8, 2015

Thankfulness to my father who informed me regarding this
website, this web site is truly awesome.

Resume Samples's avatar 1211. Resume Samples - January 8, 2015

It’s impressive that you are getting ideas from this post
as well as from our argument made here.

DSLR Camera review in 2015's avatar 1212. DSLR Camera review in 2015 - January 12, 2015

I get pleasure from, result in I discovered
just what I used to be looking for. You have ended my four day
long hunt! God Bless you man. Have a nice day. Bye

gaming mouse review in 2015's avatar 1213. gaming mouse review in 2015 - January 14, 2015

This site was… how do you say it? Relevant!!
Finally I have found something which helped me.
Thanks!

Best Digital Cameras 2015's avatar 1214. Best Digital Cameras 2015 - January 15, 2015

Pretty section of content. I simply stumbled upon your website and in accession capital to assert
that I acquire actually enjoyed account your weblog posts. Anyway I will
be subscribing for your augment or even I success you get admission to constantly
fast.

1215. Coding is Underrated - January 15, 2015

[…] So why work on programming skills rather than skills related to marketing, communication, and leadership? One reason is that there is a lower bar of coding skill that a developer needs to clear before they can get anything useful done. Atwood and McConnell have also written about this topic. In Why Can’t Programmers.. Program?, Atwood writes about basic interview questions used to screen out applicants who “apply for a job without being able to write the simplest of programs.” A well-known example is the FizzBuzz test: […]

best irons of 2015's avatar 1216. best irons of 2015 - January 17, 2015

you are actually a excellent webmaster. The site loading speed is amazing.
It sort of feels that you are doing any distinctive
trick. Furthermore, The contents are masterwork.
you’ve performed a great activity in this topic!

top grills in 2015's avatar 1217. top grills in 2015 - February 3, 2015

Having read this I believed it was extremely informative.
I appreciate you finding the time and effort to put this article together.
I once again find myself personally spending way too much time both reading and leaving comments.
But so what, it was still worthwhile!

Online Games Top 10's avatar 1218. Online Games Top 10 - February 4, 2015

Movies like The Last Airbender, Cats and Dogs: Thee Revenge of Kitty Galore, Step
Up 3D and A Christmas Carol will be available to view this New Year.
Your computer, or smart phone can be used too access the game
in a flash. Another option for holding the interest oof your audience is highly-dependent on your particular brand: how
attractive is your Facebook contest for purposes of sustained interaction.

car shop's avatar 1219. car shop - February 10, 2015

Keep these toned prices off your own pledge join sheets.
The amount of people that are environmentally conscious these days
is quite staggering so letting them wash their car in a way that makes them feel good is
a win-win situation for everyone. As kids growing up in Bethesda, we used
to go to the Flagship Carwash in North Bethesda,
and I am no Spring Chicken, so this company has been around
a long time.

oil change spring hill's avatar 1220. oil change spring hill - February 15, 2015

Thankfulness to my father who informed me concerning this weblog, this webpage is truly remarkable.

nalgas hombres's avatar 1221. nalgas hombres - February 19, 2015

If some one desires to be updated with most up-to-date technologies then he must be pay a quick visit this site and be up to date every day.

Wilburn's avatar 1222. Wilburn - February 19, 2015

hello!,I really like your writing so much! proportion we keep in touch more about your article on AOL?

I require an expert in this area to solve my problem.
Maybe that is you! Having a look ahead to look you.

pu erh power Slim Tea's avatar 1223. pu erh power Slim Tea - February 26, 2015

Great post.

What is the best flat iron's avatar 1224. What is the best flat iron - March 5, 2015

You can certainly see your enthusiasm in the article you write.
The arena hopes for even more passionate writers like you who aren’t afraid to say how they believe.
At all times go after your heart.

usi academy's avatar 1225. usi academy - March 8, 2015

I like reading an article that can make men and women think.
Also, thanks for allowing for me to comment!

finance's avatar 1226. finance - March 13, 2015

If you want to know the crystal clear details it is better to
view just about any online store web sites explaining the
actual product or service information using elements. Individuals who have underlying medical condition should also
consult a physician before taking this diet pill.

Indeed Adiphene weight reduction pill is the answer for those who always goes on food regimen however can’t endure the meals carving hunger and the irritability
gave rise by dieting.

meilleur téléviseur de 2015's avatar 1227. meilleur téléviseur de 2015 - March 14, 2015

Useful information. Fortunate me I found your site accidentally,
and I’m surprised why this coincidence didn’t happened in advance!
I bookmarked it.

jethrosplace.com's avatar 1228. jethrosplace.com - March 14, 2015

Superb, what a website it is! This web site gives helpful facts to us, keep it up.

1229. bathroom double vanity - March 20, 2015

bathroom double vanity

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

thelouisianageneralstore.com's avatar 1230. thelouisianageneralstore.com - March 22, 2015

Hi to every body, it’s my first go to see of this website; this weblog consists of
remarkable and really excellent information designed for readers.

Windykacja's avatar 1231. Windykacja - March 29, 2015

I do trust all the ideas you have presented to your post.
They’re very convincing and will certainly work.

Nonetheless, the posts are very quick for starters. May just you please extend them a little from subsequent time?

Thank you for the post.

hastalasiesta.org's avatar 1232. hastalasiesta.org - April 1, 2015

I hardly leave remarks, however I browsed a few remarks on Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech.
I actually do have a few questions for you if you do not mind.
Is it just me or do a few of these remarks appear as if they are written by brain dead visitors?
😛 And, if you are writing on additional social sites, I’d
like to keep up with anything new you have to post.
Would you list of every one of your social networking pages like your twitter feed, Facebook
page or linkedin profile?

nandosdelivery.wordpress.com's avatar 1233. nandosdelivery.wordpress.com - April 7, 2015

The address that you desperately need will appear for
your immediate use. People who keep kosher will have special
needs that must be catered to. Certain types of food that
are normally served in sit-down restaurants are commonly available as take-out.

home theater controller's avatar 1234. home theater controller - April 7, 2015

Plan on how your output device will be installed and on where your audio speakers will be placed.
Home theater is a personal thing, from the type of TV to
the sound system to the seating arrangements.
Comfort: Why have killer sound and a jumbo screen and sit on egg crates.

Best computer cases 2015's avatar 1235. Best computer cases 2015 - April 9, 2015

I must thank you for the efforts you have put in writing this
blog. I really hope to check out the same high-grade content from you later on as well.
In truth, your creative writing abilities has motivated me to get my
own blog now 😉

1236. How to win a senior programmer job interview - LeaseWeb Labs - April 10, 2015

[…] Most interviewers ask the same question to measure programming skills: program Fizzbuzz. It is a very popular, but extremely tricky assignment that even the most skilled programmers fail at. Just learn the code in the required language by hearth and you will fool any interviewer. Note that you really don’t have to understand the code as the explanation of what the code does is given in the assignment. […]

official iphone unlock service's avatar 1237. official iphone unlock service - May 2, 2015

Heya i’m for the first time here. I found this board and I find It truly helpful & it
helped me out a lot. I hope to give something again and help others like you helped me.

1238. What's up with FizzBuzz post commenters? - LeaseWeb Labs - May 2, 2015

[…] Imran Ghory: Using FizzBuzz to Find Developers who Grok Coding […]

1239. Fizz Buzz y Pattern Matching | Picando Código - May 4, 2015

[…] Ghory empezó a usarlo para filtrar programadores que no supieran escribir código. Aparentemente hay una cantidad alarmante de desarrolladores y personas recibidas de Ciencias de la […]

car finance's avatar 1240. car finance - May 6, 2015

Look at its size and the number of people in your family, consider the fuel mileage and what it will cost each month to
drive it, and make sure that it’s something you’ll be comfortable and happy driving.
So a person with significant income and employment history can obtain finance regardless of the credit
issues. Choosing between the petrol or diesel variant of
a car has always been a tricky question.

supporthandbook's avatar 1241. System Analyst - May 7, 2015

Reblogged this on My Handbook.

pinterest.com's avatar 1242. pinterest.com - May 16, 2015

Very nice article. I definitely appreciate this site. Continue the good
work!

Myrtis's avatar 1243. Myrtis - May 26, 2015

%first_paragraph0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan;
font-size:11. 0pt; font-family:”Calibri”,”sans-serif”; mso-ascii-font-family:Calibri; mso-ascii-theme-font:
minor-latin; mso-fareast-font-family:”Times New Roman”; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; Vision problems are
conditions which you should address as soon as symptoms show
up. MsoNormalTable mso-style-name:”Table Normal”; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:
0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:””; mso-padding-alt:0in 5.
4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.

Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.

It is true that the Blizzard Optometrist St Arnaud is open each weekday while
the Blizzard Optometrist Stawell is open only once each week,
but that does not reflect on the quality of care and dedication you will receive at either of these locations.
The day they are open they are all about eyes, and all
about getting their patients the proper glasses and frames to make them
see well. The Blizzard Optometrist Stawell simply does not at this time have adequate numbers
of patients to support their remaining open every day.

An optometrist who seeks continued education about the latest optometry procedures is also considered
the best. You can check their bio in their websites and ad pamphlets if there are any recent
seminars that they have attended. This only shows their commitment and
dedication to their profession. Your eye care professional should be fully-equipped with these latest optometry tools.
A comprehensive examination can only be done with help
of modern eye examination machines.

But optometrists do a lot more than that. A lot of people think of these people only as the
ones who perform a yearly eye test and prescribe
glasses if needed. There are even trained eye specialists providing glasses in malls nowadays.

The staff at the Blizzard Optometrist St Arnaud is dedicated, and professional, as is
the staff at the Ararat offices and the Blizzard Optometrist Stawell offices.
When your services are passed down from one generation to the next it is
because you are delivering the finest possible customer care.
The vision cares that people have come to expect from the Blizzard Optometrist
St Arnaud is not only exceptional it is guaranteed one hundred percent.
This is the main reason why generations of family members have used this vision care company to provide the examinations and the glasses that they have needed through the years.

When you go looking for an optometrist to treat
your blurry vision, you will find that there are many
of them practicing in the field. This leads many people to question – how do you find the best optometrist for you?

With plenty of professionals out there, it becomes difficult to select
the one that is deemed the best.

There’s probably not a person on the planet who wants to lose their eyesight.
An optometrist works hard to preserve eye health and bring enrichment to this necessary sense.
It’s truly one of the most important senses and one which
no one wants to lose or see diminished. Everyone agrees how vital it
is to be able to see.

For the last three generations the Blizzard Optometrist offices have been providing great
customer service and quality eyewear to the people of Australia.
So naturally when someone in this country thinks of eye
examinations and buying glasses they think of this vision care center
first. The three locations have slightly different hours of operation but
they all have the same quality and service you have come to expect in the last sixty years.
The best news concerning this is there are three of
these visions centers set up for your convenience, the Optometrist St Arnaud offices, the
Optometrist Stawell offices, and the Optometrist Ararat offices.

If you need an eye exam, the professionals are always available
to help you find the eye care that will meet your needs.
The advances in technology has definitely benefited our lives by making things
easier, however, it can also be strenuous on the eyes.
If you spend a lot of time looking at your cell phone screen or if you work on your computer every day, this can cause stress to your eyesight.
For this reason, it is important that you make sure the
health of your eyes is to priority. Through a reputable optometrist network, you can get innovative care in state of the art facilities.

If so, an optometrist may be just the person you need to help you see better.
Are you struggling with failing eyesight? They
work to diagnose and treat eyes so the world is
a better place. These eye specialists are educated in a variety of disorders and diseases of the eye.

Do you sit in front of a computer a lot and worry it may be
affecting your eyes?

Prices can vary among optometrists, particularly in case of patients with special needs.
Optometry is becoming a highly specialized field, with different sections of people having different needs.

Finally, patients must find out more about
the cost and logistics of the service. Also,
it pays to find out whether the optometrists office is conveniently located and whether
they are able to offer you appointments when and as necessary.
Therefore, it is vital you find out more about the cost of the desired treatment.%

Dave P's avatar 1244. Dave P - May 28, 2015

I’ve been writing code for 30 years and about a year ago I flubbed a Fizzbuzz test for the Fibonacci sequence. I just drew a blank on the day of — totally stunned by being asked to do something so simplistic, when I’m used to the mental gymnastics of multi-language, full stack multi-platform solutions and churning out 10k loc in a day. I have also come across many engineers who can solve a Fizbuzz test, but get lost in anything more complex than that. These are probably the same engineers conducting the Fizzbuzz tests and thinking them valid.

1245. The Fizz Buzz | The Fizz Buzz Exercise - June 2, 2015

[…] interviews, to determine whether the job candidate can actually write code.  It was invented by Imran Ghory, and popularized by Jeff Atwood. Here is a description of the […]

Sesha's avatar 1246. Sesha - June 3, 2015

Python:

def test_fizz(num):

for i in range(num): # For loop begin
flag = True
res = ”

if i%3 == 0: # Test divisible by 3
res = res+’Fizz’
flag = False

if i%5 == 0: # Test divisible by 5
res = res + ‘Buzz’
flag = False

if res != ”: # Print result if updated
print(str(i)+’\t’+res)

if flag: # Print number not divisible
print(i)

print(‘\t’) # End for loop

Dion Rutherford's avatar 1247. Dion Rutherford - June 7, 2015

I may of missed something here but outside of the 3rd variable should we not be checking that they are of the same type…

1248. miele w 4144 wps operating instructions - June 11, 2015

miele w 4144 wps operating instructions

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

seo's avatar 1249. seo - June 20, 2015

No matter if some one searches for his required thing, so he/she needs to be available that
in detail, therefore that thing is maintained over here.

www.match.com's avatar 1250. www.match.com - July 1, 2015

Hi, after reading this amazing article i am also delighted
to share my familiarity here with mates.

1251. What’s the deal with Fizzbuzz? - July 4, 2015

[…] of research for typical technical questions I might be asked during the interview and came across a blog post about the “FizzBuzz” programming challenges that are often used by interviewers to weed […]

raisedadead's avatar 1252. raisedadead - July 9, 2015

// FizzBuzz.cpp : Defines the entry point for the console application.
//

#include “stdafx.h”
#include

using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
for(int i=1; i<=100; i++)
{
if(( i % 15 ) == 0)
cout << "FizzBuzz" << endl;
else if(( i % 5 ) == 0)
cout << "Buzz" << endl;
else if(( i % 3 ) == 0)
cout << "Fizz" << endl;
else
cout << i << endl;
}
return 0;
}

1253. Apparently, FizzBuzz is a Thing | jotascript - July 17, 2015

[…] “People who struggle to code don’t just struggle on big problems, or even smallish problems (i.e. write a implementation of a linked list). They struggle with tiny problems.” – Imran Ghory […]

chefkassimo.com's avatar 1254. chefkassimo.com - July 26, 2015

Hello, i feel that i noticed you visited my site so i came
to return the desire?.I’m attempting to to find things to improve my
website!I suppose its adequate to make use of
a few of your ideas!!

Exile's avatar 1255. Exile - August 2, 2015

# fizz/buzz in tcl
for {set i 1} {$i <= 100} {incr i} {
set b [expr {$i % 5 ? 0:1 }]
if {$i % 3 == 0} {
if {$b} {
puts "fizz-buzz"
} else {
puts "fizz"
}
} elseif {$b} {
puts "buzz"
} else {
puts "$i"
}
}

Exile's avatar 1256. Exile - August 2, 2015

# fizz/buzz in tcl short version 😛
for {set i 1} {$i <= 100} {incr i} {
puts "[expr {$i % 3 ? [expr {$i % 5 ? $i:"buzz"}]: [expr {$i % 5 ? "fizz":"fizz-buzz"}]}]"
}

aluguercasaverao.com's avatar 1257. aluguercasaverao.com - August 4, 2015

fantastic put up, very informative. I ponder why the opposie experts of this sector don’t notice this.
You should continue your writing. I’m sure,
yyou hace a great readers’ base already!

18002payday's avatar 1258. 18002payday - August 7, 2015

I’ve learn several excellent stuff here. Certainly worth bookmarking for revisiting.
I surprise how a lot effort you set to create this type of excellent informative website.

snapchat-hots.com's avatar 1259. snapchat-hots.com - August 14, 2015

Have you ever considered publishing an e-book or guest authoring on other websites?

I have a blog based upon on the same ideas you discuss and
would really like to have you share some stories/information. I know my subscribers would appreciate
your work. If you’re even remotely interested, feel free to send me an email.

Xan's avatar 1260. Xan - August 26, 2015

String pval

for (int i=1; i<=100, i++)
{
pval=""
IF (i%3==0) {pval="Fizz"}
IF (i%5==0) {pval=pval&"Buzz"}
IF (pval=='') {pval=i}
Println pval
}

imgur's avatar 1261. imgur - August 30, 2015

Enterprises having a large website with a lot of traffic influx will require the reseller hosting package.
Try your better to find the web hosting service without down time.
Elements such as text, graphics, images, font sizes and colors are used in designing and producing
pages for a web site.

penile weight hanging's avatar 1262. penile weight hanging - August 31, 2015

Wow, you are a very spiffy person. What do
you do for an encore?

Unknown's avatar 1263. Using programming problems to screen technical candidates | Dave Nicolette - September 4, 2015

[…] But sometimes interviewers/screeners miss the point of using a coding challenge as part of the screening process. For example, Imran Ghory writes (in 2007), https://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/ […]

www.foodtruckseattle.com's avatar 1264. www.foodtruckseattle.com - September 24, 2015

Hey there I am so glad I found your website, I
really found you by error, while I was browsing on Aoll for something else, Anyhow I am here now and woould just like to say thanks for a incredible post and a
all round thrilling blog (I also love the theme/design), I don’t have time to read through it all at the minute but I have saved it and also included your RSS feeds, so when I have time I will
be back to read a great deal more, Please do keep up the excellent jo.

Luca aka's avatar Luca aka - December 25, 2016

Not true, even an ignorant in math, but perfect developer (are they really different?) should day that a loop on 100 I/O operations, to print 100 numbers, is totally crazy: would you move 100 seeds from a room to another, at home, moving them one by one? One print operation is a must.
No matter the maths, a developer should start answering: “I would define an array of 100 items…”.

1265. Python:Python coding test problem for interviews – IT Sprite - September 27, 2015

[…] Java one, like ask them to do the Java task, then ask them to define a class, then ask them to do FizzBuzz. That should be about as rigorous as your Java […]

ikaruga2099's avatar 1266. ikaruga2099 - October 6, 2015

This is one of the worst programming questions ever. The reason is because it tests *math*, not computer science. If you have solid math skills, you can answer this question in seconds. If you don’t, then … it becomes a “filtering” question.

Gold3n3agl3's avatar 1267. Gold3n3agl3 - October 20, 2015

// FIZZBUZZ.cpp : Defines the entry point for the console application.
//Fizz and buzz problem

#include “stdafx.h”
#include

int main()
{
int i = 1, n = 100;
for (i = 1; i <= 100; i++)
{
if (i % 3 == 0 && i % 5 == 0)
{
printf_s("This is fizz and buzz %d\n", i);
}
else if (i % 3 == 0)
{
printf_s("This is Fizz %d\n", i);
}
else if (i % 5 == 0)
{
printf_s("This is Buzz %d\n", i);
}
else
{
printf_s("This is neither fizz nor buzz %d\n", i);
}
}
getchar();
return 0;
}

selbstbewusstsein aufbauen's avatar 1268. selbstbewusstsein aufbauen - October 22, 2015

paalam na po

Denn ob ich die letzten 10 Male in wichtigen WM-Spielen verloren habe,
spielt keine Rolle.

jibalt's avatar 1269. jibalt - October 27, 2015

ikaruga2099:

You have been filtered out by writing ridiculous, clueless nonsense. FizzBuzz is all about realizing that you have to do the mod 15 test before doing the individual mod 3 and mod 5 tests, or that it can be done by concatenating “Fizz” or “” with “Buzz” or “”. This is all about programming and nothing about math. The only “math” is being familiar with the mod operation, and any programmer worth hiring must be.

ikaruga2099's avatar ikaruga2099 - November 1, 2015

You must be some old-school C/C+++ programmer.

I’m actually trained as a mathematician and have been working as a full-stack dev for some time now.

I can tell you with a straightface the mod operation has never saved me. I’ve used it a few times when doing old-school for-loops in a java back-end. But in the front-end, i have never used it.

Nor do I expect any front-end devs to use it.

When you take away the math from this question, say you give “conditionA” and “conditionB” functions in lieu of mod, this question becomes super easy… So easy that it only weeds out “developers” who have never actually developed.

The reason is because that this is essentially a 9th grade level-math problem.

So, sorry sir, but the one making clueless, ridiculous statements is you.

jibalt's avatar jibalt - November 24, 2015

BWAHAHAH! What a fool.

szyba kominkowa piotrkow tryb's avatar 1270. szyba kominkowa piotrkow tryb - November 2, 2015

Excellent weblog here! Also your web site a lot up fast!

What web host are you using? Can I get your affiliate link for your
host? I desire my site loaded up as fast as yours lol

check verification service's avatar 1271. check verification service - November 5, 2015

Thanks for finally writing about >Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech <Liked it!

activity's avatar 1272. activity - November 9, 2015

you are actually a good webmaster. The website loading velocity is incredible.
It kind of feels that you are doing any unique trick.
Also, The contents are masterwork. you’ve performed a magnificent process on this matter!

Tim's avatar 1273. Tim - November 16, 2015

all of this code is “if then” or “do while looping”, think outside the box and develop an entirely new method, switch on true. Javascript

for (var a = 1;a<101;a++)
{
switch (true)
{
case (a%3==0 && a%5==0):
console.log("fizzbang")
break;
case (a%5==0):
console.log("bang")
break;
case (a%3==0):
console.log("fizz")
break;
case (a == a):
console.log(a)
break;
}
}

Alan's avatar 1274. Alan - November 23, 2015

Even so, when you are first beginning out, selecting the right sewing machine can be very intimidating.

Alissa's avatar 1275. Alissa - November 23, 2015

A number of factors require to be taken into account when you go to shop for a sewing machine for newbies.

1276. The Fizz Buzz ‘Challenge’? | muku42 - December 7, 2015

[…] it happening to me. Not that a potential employer wouldn’t ‘stoop’ to utilize FizzBuzz as a screening technique. It’s just that I don’t see myself ever applying for a […]

Tax Help's avatar 1277. Tax Help - December 8, 2015

What’s Going down i’m new to this, I stumbled upon this I have
discovered It positively useful and it has aided me out loads.
I hope to give a contribution & assist other users like its
helped me. Great job.

1278. FizzBuzz and Other Problems | Frosty - December 12, 2015

[…] while back, I came upon the FizzBuzz idea. In short, it’s a simple exercise for employers to give to potential employees at […]

1279. FizzBuzz Follow-up | Frosty - December 12, 2015

[…] here are two neat little Ruby one-liners, taken from the comments of the original FizzBuzz article. I hope the authors (Brendan, and Brian respectively) don’t mind me reproducing them […]

H.-J. Scheibl's avatar 1280. H.-J. Scheibl - December 14, 2015

All this discussion about different languages, single line programs and counting of bytes seems a little bit tedious for me.

The main problem is the expensive Modulus-function. Therefore I propose this solution in Visual C# with no %-operator, no ternary operator and so on. I hope you are able to understand the german names and the (moderate) C-style praefixes (string and numeric).

Think like a child. It will count with its fingers.

using System;

namespace U28_05_FizzBuzz {
class Program {
static void Main(string[] args) {
FizzBuzz(100,3,5);
} //Main

public static void FizzBuzz(int nEnde,int nTeiler1,int nTeiler2) {
string strAusgabe;
int nVergleicher1 = nTeiler1, nVergleicher2 = nTeiler2;
for (int nI=1;nI<=nEnde;nI++) {
if (nI==nVergleicher1) {
strAusgabe=”Fizz”;
nVergleicher1+=nTeiler1;
} else {
strAusgabe=””;
} //if
if (nI==nVergleicher2) {
strAusgabe+=”Buzz”;
nVergleicher2+=nTeiler2;
} //if
if (String.IsNullOrEmpty(strAusgabe)) strAusgabe=nI.ToString();
Console.WriteLine(strAusgabe);
} //for
} //FizzBuzz

} //class Program
} //namespace U28_05_FizzBuzz

1281. Degrees aren’t everything – Mel Reams - December 14, 2015

[…] can write a for loop all by yourself. I’m completely serious, in the mid-late 2000’s fizzbuzz was all over the programmer blogosphere. If you poke around online you will likely find a bunch of […]

jtxidrandomno122x's avatar 1282. jtxidrandomno122x - December 19, 2015

info yang sangat menarik, sepertinya harus dicoba , Aero

jtxidrandomno122x's avatar 1283. jtxidrandomno122x - December 19, 2015

Makasih atas infonya , Aaralyn

Roger Tan's avatar 1284. Roger Tan - December 27, 2015

“Most good programmers should be able to write out on paper a program which does this in a under a couple of minutes.”

I could do this in less than a minute. And the scary thing is, I have so many gaps in my knowledge it’s not even funny. In other words, I wouldn’t even call myself “good”.

This is basically a conditional. What’s so complicated? Bizarre.

Malcolm's avatar 1285. Malcolm - January 7, 2016

I also wonder why this is considered to be that complicated. I’m a manager and have no more than 6 months of professional programming experience – and this was more than two years ago! Still, it took me less than a minute to solve this.

I may try it out just because I am curious to see if people actually fail this simple task.

1286. Python Interview Test Links | SD.NET - January 8, 2016
Hedley Rainnie's avatar 1287. Hedley Rainnie - January 29, 2016

How about OPS5?

(literalize unit val lim)
(literalize result val Fizz Buzz FizzBuzz)

(p res1
(result ^val ^Fizz { = 0})
–>
(write |Fizz| (crlf))
(remove 1)
)
(p res2
(result ^val ^Buzz { = 0})
–>
(write |Buzz| (crlf))
(remove 1)
)
(p res3
(result ^val ^FizzBuzz { = 0})
–>
(write |FizzBuzz| (crlf))
(remove 1)
)
(p res4
(result ^val )
–>
(write (crlf))
(remove 1)
)

(p process
(unit ^lim ^val { > })
–>
(make result ^val ^Fizz (compute \ 3) ^Buzz (compute \ 5) ^FizzBuzz (compute \ 15))
(modify 1 ^val (compute – 1))
)

(p start_production
(start)
–>
(make unit ^val 100 ^lim 0))

Hedley Rainnie's avatar 1288. Hedley Rainnie - January 29, 2016

repost the OPS5 example as WP filtered out the LT GT’s… if this still fails… ping me for the code.

(literalize unit val lim)
(literalize result val Fizz Buzz FizzBuzz)

(p res1
(result ^val <x> ^Fizz {<f> = 0})
–>
(write |Fizz| (crlf))
(remove 1)
)
(p res2
(result ^val <x> ^Buzz {<b> = 0})
–>
(write |Buzz| (crlf))
(remove 1)
)
(p res3
(result ^val <x> ^FizzBuzz {<fb> = 0})
–>
(write |FizzBuzz| (crlf))
(remove 1)
)
(p res4
(result ^val <x>)
–>
(write <x> (crlf))
(remove 1)
)

(p process
(unit ^lim <y> ^val {<x> > <y>})
–>
(make result ^val <x> ^Fizz (compute <x> \ 3) ^Buzz (compute <x> \ 5) ^FizzBuzz (compute <x> \ 15))
(modify 1 ^val (compute <x> – 1))
)

(p start_production
(start)
–>
(make unit ^val 100 ^lim 0))

Peter's avatar 1289. Peter - January 29, 2016

Postgres version:

select case
when i % 3 = 0 and i % 5 = 0 then ‘FizzBuzz’
when i % 5 = 0 then ‘Buzz’
when i % 3 = 0 then ‘Fizz’
else i::text
end as fizz_buzz
from generate_series(1,100) i
order by i;

ggagnaux's avatar 1290. ggagnaux - February 2, 2016

Some of these solutions are overly complicated… Here’s my java snippet.

for (int x=1; x<=100; x++) {
if ((x%3==0) && (x%5==0)) { System.out.println("FizzBuzz"); }
else if (x%3 == 0) { System.out.println("Fizz"); }
else if (x%5 == 0) { System.out.println("Buzz"); }
else { System.out.println(x); }
}

shysterflywheel's avatar 1291. shysterflywheel - February 4, 2016

Anyone who has ever had to go into a piece of legacy code to provide a modification will know what a pain it can be to determine what the code is doing. Effectively you have to run the code through in your mind often spending much time backtracking in order to determine what the limits on the inputs to that code might be. Often the specification itself has been modified so often that comprehension becomes difficult.

I think that one’s first pass at writing a program should express the specification as clearly as possible in programming terms. To put this another way: the specification should be “easily” recoverable from the code. The scare quotes are used to indicate that rarely will this be easy but that nevertheless one should do one’s best to make it so.

I think that good programming practice involves asking whether the code could not express the specification more clearly than it does, and modifying it accordingly.

In the old days when machines were slow and memory at a premium one needed to think in terms of processing and memory efficiency. That necessitated cleverness and created hard to find bugs and a maintenance nightmare. For most applications those days are happily over. When optimisation is required it should be done selectively AND documented appropriately as an optimisation.

“Clever” programming though intellectually entertaining makes the specification difficult to recover.

My code in Swift:

// print numbers up to 100
// except when substituting Buzz, Fizz or FizzBuzz
for i in 1…100 {

var vStr = “\(i)”

if (i % 3 == 0) {
vStr = “Buzz”
}

if (i % 5 == 0) {
vStr = “Fizz”
}

if ((i % 3 == 0) && (i % 5 == 0)) {
vStr = “FizzBuzz”
}

print (“\(vStr)”)

} // end for

1292. qqdewa - February 11, 2016

qqdewa

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

Dusan Sukovic's avatar 1293. Dusan Sukovic - February 18, 2016

It took me 2 minutes on paper to write ‘FizzBuzz’ , and less than 10 minutes to write it in C on my OpenBSD workstation. It’s ugly but it works. Thanks to all great Danish men/women employed in HR departments who probably gave puzzled look for few seconds on my CV and never gave me chance to be even interviewed even for position as Junior programmer 🙂

1294. http://boombeachhackapk.cabanova.com/ - February 21, 2016

http://boombeachhackapk.cabanova.com/

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

Unknown's avatar 1295. Good reading for job interview – Life is short. I wanna make mine more fun. - February 24, 2016

[…] Using FizzBuzz to Find Developers who Grok Coding […]

Anders Marzi Tornblad's avatar 1296. Anders Tornblad - March 6, 2016

I see nobody has made a solution in CSS, so here is mine.

https://jsfiddle.net/atornblad/z30bofrc/

body { counter-reset: i }
p:before { counter-increment: i;
content: counter(i) }
p:nth-child(5n):before { content: ” }
p:nth-child(3n):before { content: ‘Fizz’ }
p:nth-child(5n):after { content: ‘Buzz’ }

Then just add a lot of P elements in html. 🙂

Javier Fernandez's avatar 1297. Javier Fernandez - March 13, 2016

This is interesting…. The reverse is also true. I’ve seen programmers produce things such as this fizz-buzz under two minutes, and write code at lightning speed, but so what… Many times they can’t handle large scale applications, procrastinate most of the day, and have an overly inflated ego. There is also the slow-patient-steady thinker which produce predictable results.

Bob's avatar 1298. Bob - April 21, 2016

Here is my extendable FizzBuzz, written in JavaScript.

var fizzBuzzExtendable = function(n, cases) {
var string = “”;
for (var i = 0; i < cases.length; i++) {
if (n % cases[i].n === 0) {
string += cases[i].word;
}
}
if (string) {
return string;
}
return n;
};

It takes two parameters – a number, and a cases list in this form:

[ { n: 3, word: "Fizz" } , { n: 5, word: "Buzz" } ]

Matthew R's avatar 1299. Matthew R - May 12, 2016

After 9 years of post I think I have have the most optimized solution, ha :). Like some others have noticed the pattern repeats. It does so every 15 numbers. Here is my c# solution using using a single division.

static void DoFizzBuzz()
{
string[] fmt = { “FizzBuzz”, “{0}”, “{0}”, “Fizz”, “{0}”, “Buzz”, “Fizz”, “{0}”, “{0}”, “Fizz”, “Buzz”, “{0}”, “Fizz”, “{0}”, “{0}”, };

for (int n = 1; n <= 100; ++n)
{
Console.WriteLine(fmt[n % 15], n);
}
}

It ran about 2.2 times faster than using something like this
bool mult3 = n % 3 == 0;
bool mult5 = n % 5 == 0;

if (mult3 && mult5) { /* print fizzbuzz */ }
else if (mult3) { /* print fizz */ }
else if (mult5) { /* print buzz */ }
else { /* print number */ }

shysterflywheelJulius's avatar shysterflywheelJulius - May 13, 2016

Mattew hi, this reply is not directed at you but at the whole thing. I’m violating the principle of never posting when drunk BUT don’t we need to know something about the machine in order to obtain max machine speed or machine efficiency? What I mean is, is it not the case that max speed etc is a function of how we design machines and that what might be optimal for some problems might be less so for others?

Matthew R's avatar Matthew R - May 13, 2016

hello shysterflywheelJulius. It is true that some machines can do certain operations faster. For example, some embedded MCU’s I use don’t have a floating point processor so performing math with floating point variables is very slow as apposed to integers. Also, using a table like I did uses more memory, which may be undesirable too.

In this case, the optimizations I did are going to run faster on about any system you test. It uses less operations than other implementations and in general branching operations like IF-ELSE and divisions require more clock cycles than other ops, like an XOR.

Overall, if this wasn’t an exercise for fun I wouldn’t have spent time on the optimization. In 1 Million iterations the original version took 1292 MS and the optimized took 594 MS.

shysterflywheel's avatar shysterflywheel - May 14, 2016

Matthew R hi,
like yourself I take the fizz buzz problem as a bit of fun.
It has been very interesting to see the variety of ways in which the solution can be expressed and also the various directions in which the discussion has gone, one of which has been the issue of efficiency.

It is the efficiency aspect that I find especially interesting.
The fizz buzz specification as here provided is very clear and highly constrained, however, we live in a changing world and even tiny programs, if useful will change because people will want to use them differently.
Thus even though we need fear going beyond the original spec by trying to foresee how the spec and/or its context may change, we do know one thing with absolute certainty: it will change.

That I guess is why I have a bit of a thing about “efficiency”.

BTW that’s a lovely piece of code you wrote.
It left me with a smile on my face.

Best wishes
Julius

Andrew Khizhniak's avatar 1300. Andrew Khizhniak - May 25, 2016

Requirements are contains constant starting values – the solution is to write to output constant expression like “buzz-fizz-buzzfizz” and nothing else because every right solution will produce the same value

Andrew Khizhniak's avatar 1301. Andrew Khizhniak - May 25, 2016

No calculations required. It is standard trap during interview

Paul Kurenkunnas's avatar 1302. Paul Kurenkunnas - June 7, 2016

<?php
$i=1; $threes=0; $fives=0;
while($i<=100){
$threes++; $fives++;
if($threes==3){$threes=0; echo "Fizz";}
if($fives==5) {$fives=0; echo "Buzz";}
if($threes!=0 && $fives!=0) echo "$i”;
else echo “”;
$i++;
}
?>

instantcarma's avatar instantcarma - June 7, 2016

seems my posted code above wouldn’t include my BREAK html TAGS on the last two echo’s. Bummer.

Luca aka's avatar Luca aka - December 25, 2016

Thank you for avoiding the useless mod calculations, but there are still 100 I/O operations, instead of just one: would you move 100 seeds from here to there, by moving them, one by one?

1303. What do you need to know to program FizzBuzz? - Will.Whim - June 9, 2016

[…] I was showing my CS professor friend the hilarious “FizzBuzz in TensorFlow” post, and he’d actually had yet heard of FizzBuzz. Basically FizzBuzz is a test to see if someone can do basic programming. […]

lucy's avatar 1304. lucy - July 2, 2016

Hello to all My viewers in the worldwide my name is
Lucy Steve white, I am from the New Arizona,United State, am here to testify of how i got my loan from Mr birry after i applied 5 times in my country from various loan lenders who claimed to be lenders they all fail me without give me the loan,i thought their s no genuine lender my country where i can real applied but they never gave me loan until a friend of mine introduce me to Mr birry lapo company the l.a.p who promised to help me with a loan of my desire and he really did it as he promised without any form of delay, I never know thought there are still reliable loan lenders until i met Mr birry company, who really helped me with my loan and changed my life for the better now.I don’t know if you are in need loan. So you are feel free to contact Mr birry he I offer loan to individual and public sector and certified them in a low interest rate of 2%. Bad credit acceptable with any individual and public sector that are in need of financial Assistance it those not matter were he is all you need is money there people who are richer than white.email MR birrylapomicrofianacebank@gmai l.com for your own help. thank you for reading my massage from STEVE LUCY

1305. Find Out What Process Using File | Bolakovic2 - July 6, 2016

[…] Using FizzBuzz to Find Developers who Grok Coding | … – Using FizzBuzz to Find Developers who Grok Coding January 24, 2007 Posted by Imran Ghory in job interviews, Software development. trackback […]

1306. How To Find Out If Someone Has Passed Away | Stock Goods - July 28, 2016

[…] Using FizzBuzz to Find Developers who Grok Coding | Imran … – Using FizzBuzz to Find Developers who Grok Coding January 24, 2007 Posted by Imran Ghory in job interviews, Software development. trackback […]

Charles Fisher's avatar 1307. Charles Fisher - July 29, 2016

Do I get a prize for a terse solution?

awk ‘BEGIN{for(i=1;i<=100;i++){t=i%3;f=i%5;
print i,(t==0&&f==0?"FizzBuzz":(t==0?"Fizz":(f==0?"Buzz":i)))}}'

enablersinvestblog's avatar 1308. enablersinvestblog - August 1, 2016

Thank you, I’ve been seeking for info about this subject matter for ages and yours is the best I have discovered so far.Natural stone supplier india

enablersinvestblog's avatar 1309. enablersinvestblog - August 1, 2016

Good post. I learn some thing tougher on distinct blogs everyday. Most commonly it really is stimulating to learn to read content material from other writers and exercise a specific thing there.affordable luxury holidays europe

1310. Post Question Trick | blazes - August 10, 2016

[…] Using FizzBuzz to Find Developers who Grok Coding | Imran … – Using FizzBuzz to Find Developers who Grok Coding January 24, 2007 Posted by Imran Ghory in job interviews, Software development. trackback […]

khalida's avatar 1311. khalida - August 16, 2016

for(var i=1 ; i<=100; i++)
{
if (i % 3 ===0 && i % 5===0)
console.log("BuzzFizz");

else if(i % 3 ===0)
console.log("Fizz")

else if (i % 5===0)

console.log("Buzz");
else

console.log(i);

}

Phil's avatar 1312. Phil - August 19, 2016

JavaScript, by a beginner programmer. yeh!

for (var x = 1; x <= 100; x++) {
if (x % 3 === 0) {
if (x % 5 === 0) {
console.log(x + ", FizzBuzz");
}
else { console.log (x + ", Buzz"); }
}
else if (x % 5 === 0) {
console.log(x + ", Fizz");
}
}

RASHMI RANI's avatar 1313. RASHMI RANI - September 4, 2016

public class FizzBuzz {

public static void main(String[] args) {
// TODO Auto-generated method stub

int i;
for(i=1;i<=100;i++)
{
if((i%3==0) && (i%5==0))
{
System.out.println("FizzBuzz");
}
else if(i%3==0)
{
System.out.println("Fizz");
}
else if(i%5==0)
{
System.out.println("Buzz");
}
else
{
System.out.println(i);
}
}

}

}

1314. How To Find What Program Is Using A File | Information - September 15, 2016

[…] Using FizzBuzz to Find Developers who Grok Coding | Imran … – Using FizzBuzz to Find Developers who Grok Coding January 24, 2007 Posted by Imran Ghory in job interviews, Software development. trackback […]

1315. The Fizz, the Buzz, and the Ugly -LeadingAgile - September 28, 2016

[…] interviewers often miss the point of including programming exercises in the screening process. In “Using FizzBuzz to Find Developers Who Grok Coding”, Imran Ghory […]

fede's avatar 1316. fede - October 10, 2016

Of course, the real Fizz Buzz in JS is:

for(var i=0;++i<100;)console.log((!(i%3)?"Fizz":"")+(!(i%5)?"Buzz":"")||i);

JS's WTF FTW 😛
(This is awful javascript, don't do this in an interview!)

fede's avatar 1317. fede - October 10, 2016

Of course, the much more robust approach through good old OO techniques is better:

// We extend Number with a simple method:
Number.prototype.upTo=function(n,f){ if(thisconsole.log(n.toFizzBuzz) );

That is clear, easy and reusable! we modeled the data abstractions our application needed, and the problem solved itself.

fede's avatar fede - October 10, 2016

WP ate my code :/ it was awesome i swear!

Unknown's avatar 1318. ‘Oszt ás? Lebeg, Ő pontos? Kerek, Í-t És? | Pythonidomár - October 25, 2016

[…] Írj programot, amely a (programozói állásinterjúkról hírhedt) híres FizzBuzz-játékot mutatja be! A játék lényege, hogy egytől százig számolva a […]

Capitaine Haddock's avatar 1319. Capitaine Haddock - November 13, 2016

Vous pouvez pas parler français, comme tout le monde ?
Capitaine Haddock

Fernando Macedo's avatar 1320. Fernando Macedo - November 28, 2016

In R with a little help from dplyr.

x <- 1:100
library(dplyr)
case_when(x %% 15 == 0 ~ "FizzBuzz",
x %% 3 == 0 ~ "Fizz",
x %% 5 == 0 ~ "Buzz",
TRUE ~ as.character(x))

Beautiful.

Luca aka's avatar 1321. Luca aka - December 25, 2016

Would you really hire a developer that uses 100 I/O operations, to write on a screen 100 numbers?!
If I asked you to move 100 seeds from your bedroom to your kitchen, would you bring them there, one by one?!
Whoever does _not_ use an array to store the string and then make 1 (one, baby, I said one!) print operation, should just start playing XBox, instead of coding!
Take your time, my dear developer, and use your brain, before you type nonsense!!!

1322. SQL injection is the FizzBuzz of web security – james mckay dot net - January 19, 2017

[…] is the (in)famous interview question designed to filter out totally unqualified candidates for a programming job at a very early stage […]

seo specialist's avatar 1323. seo specialist - January 23, 2017

Amazing! Its really remarkable piece of writing, I have got much clear
idea concerning from this article.

Piero Giacomelli (@pierogiacomelli)'s avatar 1324. Piero Giacomelli (@pierogiacomelli) - March 25, 2017

In my office when one claim to have a CS degree I ask the fizzbuzz problem and if he/she is able to solve it with a for loop I ask to use recursion. For testing the most skilled one I ask to do a formal proof that the recursion always end. Till now none succeed

1325. FizzBuzz in one line – Brett Yost - April 10, 2017

[…] – Imran On Tech […]

fuckbuddy@gmail.com's avatar 1326. fuckbuddy@gmail.com - April 19, 2017

To kya khena chata hai tu bhai.

programa de reconstrução capilar's avatar 1327. programa de reconstrução capilar - April 23, 2017

Wonderful, what a website it is! This site provides us with useful data, keep it.

Chuck's avatar 1328. Chuck - April 24, 2017

// if you don’t know what a modulo division is for, you’ll have a problem.
// Took me about 1-2 minutes

int main(void)
{
int n=0;

while ( n < 100 )
{
if ( n%3==0 && n%5 ==0 ) printf("Fizzbuzz\n");
else
if ( n%3==0 ) printf("Fizz\n");
else
if ( n%5==0 ) printf("Buzz\n");
else
printf("%d\n",n);

n++;
}

}

reichhart's avatar reichhart - July 7, 2017

a) too complicated with the unnecessary third check
b) (n<100) is wrong, it must be (n<=100)
A developer must always read the spec carefully. 😉

CoDe-BuSTeR's avatar 1329. CoDe-BuSTeR - April 25, 2017

Just for the sake of completeness 😉

Solving in AutoIt3 looks like this:

For $i = 1 to 100
$bFizz=(mod($i,3)=0)
$bBuzz=(mod($i,5)=0)
if $bFizz=1 then ConsoleWrite(“Fizz”)
if $bBuzz=1 then ConsoleWrite(“Buzz”)
if $bFizz=0 and $bBuzz=0 then ConsoleWrite($i)
ConsoleWrite(@crlf)
Next

and then there is the ternary operator in Autoit3 which leads to this:

For $i = 1 to 100
Local $sOutput= ((mod($i,3)=0) ? “Fizz” : “”) & ((mod($i,5)=0) ? “Buzz” : “”)
ConsoleWrite( (($sOutput=””) ? $i : $sOutput ) & @CRLF)
Next

Unknown's avatar 1330. Day[1] – Site Title - April 25, 2017

[…] the Fizz-Buzz problem […]

hozawa's avatar 1331. hozawa - June 8, 2017

It’s simple with Java8.
public class FizzBuzz {
public static void main(String[] args) {
IntStream.rangeClosed(1,100).forEach(i -> System.out.format(“%s%s%n”,(i % 3 == 0 ? “Fizz”:””), (i % 5 == 0 ? “Buzz”: (i % 3 == 0 ? “” : i))));
}
}

edmebartD's avatar 1332. edmebartD - June 14, 2017

–T SQL
DECLARE @intIndex as INTEGER =1

WHILE @intIndex <=100
BEGIN

SELECT CASE [Output] WHEN '' THEN CAST([Index] AS VARCHAR(3)) ELSE [Output] END
FROM
(SELECT @intIndex [Index],CASE @intIndex % 3 WHEN 0 THEN 'Fizz' ELSE '' END + CASE @intIndex % 5 WHEN 0 THEN 'BUZZ' ELSE '' END [Output])
AS Test
SET @intIndex=@intIndex +1
END

Asif Kamran Malick's avatar 1333. Asif Kamran Malick - June 24, 2017

public class FizzBuzz {

public static void main(String[] args) {

for (int i = 3; i <= 100; i++) {
if (i % 3 == 0 && i % 5 == 0) {
System.out.println(i + " : Fizz-Buzz ");

} else if (i % 3 == 0) {
System.out.println(i + " : Fizz ");

} else if (i % 5 == 0) {
System.out.println(i + " : Buzz ");

}

}

}
}

sex toys's avatar 1334. sex toys - June 26, 2017

Thanks for sharing your thoughts on adult toy review.

Regards

reichhart's avatar 1335. reichhart - July 7, 2017

#include
main() {
int c = 1;
for (;;) {
printf(“%d “, c);
if (!(c % 3)) printf(“fizz”);
if (!(c % 5)) printf(“buzz”);
printf(“\n”);
if (c == 100) break;
++c;
}
}

sirubatp/pengju.li's avatar 1336. sirubatp/pengju.li - July 21, 2017

流程签核

sirubatp/pengju.li's avatar 1337. sirubatp/pengju.li - July 21, 2017

非常好用

sirubatp/pengju.li's avatar 1338. sirubatp/pengju.li - July 21, 2017

非常好

bigbaypresbyterian's avatar 1339. bigbaypresbyterian - July 27, 2017

JavaScript

for( i = 1; i <= 100; i++){

var modThree = ( i % 3 === 0 );
var modFive = ( i % 5 === 0 );

if( !modThree && !modFive ){
console.log(i);
}else{

if( modThree ){
if (modFive & modThree) {
console.log("Fizz-Buzz");
} else {
console.log("Fizz");
}
}
if( modFive & !modThree ){
console.log("Buzz");
}

}
}

reichhart's avatar reichhart - July 28, 2017

The comparion for 3 AND 5 is not necessary.
See here:

for( i = 1; i <= 100; i++) {

var modThree = ( i % 3 === 0 );
var modFive = ( i % 5 === 0 );

var outline = "Count: " + i + " ";

if( modThree ) {
outline += "Fizz";
}
if( modFive ) {
outline += "Buzz";
}
console.log(outline)
}

1340. Hello world! – floccinaucinihilipilification - August 2, 2017

[…] My first real bit of programming was to write a character generator for a role-playing game back in the late ’70s. But my party piece when I come across a new language is to write a “High-Low” binary search game. It’s  bit more fun than Fizz-Buzz. […]

1341. The FizzBuzz Test – Samixmedia - August 7, 2017

[…] interesting readings and sources: Blog Post – Using FizzBuzz to Find Developers who Grok Coding Collection of Java solutions – […]

Igor's avatar 1342. Igor - August 7, 2017

perl -e ‘print qq{@{[ grep{ defined } map{ ($_%3) ? undef : “Buzz”, ($_%5) ? undef : “Fuzz”, ($_%3 && $_%5) ? $_ : undef, “\n” } grep {defined} (1..100, $”=undef) ]}}’

1343. official website - August 29, 2017

official website

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

http proxy list singapore's avatar 1344. http proxy list singapore - September 3, 2017

After acquire our proxy, you can use either Elite Proxy Switcher
cost-free edition or specialist edition to download the proxy list.

Christopher Engalla's avatar 1345. Christopher Engalla - September 14, 2017

for(int i = 1; i <= 100; i++)
{
if ((i % 3 == 0) && (i % 5 == 0))
{
Console.WriteLine("FizzBuzz");
}
else if (i % 3 == 0)
{
Console.WriteLine("Fizz");
}
else if (i % 5 == 0)
{
Console.WriteLine("Buzz");
}
else
{
Console.WriteLine(i);
}
}

1346. Coder une variante de FizzBuzz basée sur le jeu 6 qui prend | ascendances - September 15, 2017

[…] dans les autres cas, on dit simplement l’entier. Il est aussi utilisé comme test pour évaluer si quelqu’un maîtrise les bases de la programmation. Une variante, un peu plus […]

1347. SQL injection is the FizzBuzz of web security – James McKay’s other blog - October 13, 2017

[…] is the (in)famous interview question designed to filter out totally unqualified candidates for a programming job at a very early stage […]

Quy Tang's avatar 1348. Quy Tang - October 21, 2017

Solution without mod (pseudocode):
for (i = 0; i <= 100; i += 15) {
for (j = 1; j <= 15 && i + j <= 100; j++) {
switch(j) {
case 15: print "FizzBuzz"; break;
case 3, 6, 9, 12: print "Fizz"; break;
case 10: print "Buzz"; break;
default: print (i+j);
}
}
}

whatsapp group join links's avatar 1349. whatsapp group join links - November 6, 2017

Hello this is somewhat of off topic but I was wanting to know if blogs use
WYSIWYG editors or if you have to manually
code with HTML. I’m starting a blog soon but have no coding skills so I wanted to
get guidance from someone with experience. Any help would be enormously appreciated!

freesexonlineskype's avatar 1350. freesexonlineskype - November 14, 2017

Hi! I simply want to offer a large thumbs up for the fantastic information you’ve got right here on this article.

I’m coming back again to your web site for much more before long.

Kevin's avatar Kevin - November 16, 2017

FizzBuzz and things like it are insulting to serious engineers. Sure, if you’re talking about someone with 1 year of experience it may have relevance, but I have 30 years of experience. Such a test is sort of like me asking you how many ways there are to calculate a standard deviation (don’t go look it up, answer the question — you probably can’t, though you can probably write code that’s just fine for “everyday software”). This is also similar to the really ridiculous questions like, “What does this or that keyword mean in language X?” What, are we in the 1980’s, still?

Ask questions like, “When given the problem of 5 engineers working on the same piece of code and they all conflict, how do you go about resolving the conflicts without involving a manager?” Or, “When your SQL suddenly and inexplicably becomes slow… what do you do?” This gives a much better picture of whether they’re competent.

If you’re just looking for a line programmer who only understands web page development, but not actual engineering, then fine. Otherwise trivial tests waste time and annoy serious engineers. Deeper questions will reveal **talent** and not just proficiency in language X, which can be learned in a very short period.

khoa hoc mua ban's avatar 1351. khoa hoc mua ban - November 20, 2017

You actually make it seem so easy with your presentation however I in finding this topic to be really something which I feel I would by no means
understand. It seems too complicated and very extensive for me.
I am taking a look ahead to your next submit, I’ll attempt to get the hold of it!

1352. Fizzbuzz JavaScript - How to get through your Junior Developer interview - January 17, 2018

[…] those who haven’t heard of FizzBuzz before it’s a word game supposedly played by children in the UK (although I went to school in the UK and don’t ever recall playing it). […]

Madu Untuk Kulit Wajah's avatar 1353. Madu Untuk Kulit Wajah - January 23, 2018

lier atuh

เช็คพัสดุไปรษณีย์ลงทะเบียน 's avatar 1354. เช็คพัสดุไปรษณีย์ลงทะเบียน  - February 24, 2018

Thank you for the auspicious writeup. It in reality was a amusement account it.
Glance complicated to more introduced agreeable
from you! However, how could we keep up a correspondence?

1355. Coding Challenge: FizzBuzz in Javascript – Rogue Pointer - February 24, 2018

[…] hand write programming challenges on a piece of paper. In this article FizzBuzz was suggested as a good way to ferret them out, increasing its popularity as a programming challenge used in interviews. Although to be fair, the […]

1356. FizzBuzz: One Simple Interview Question - Tom Scott - #CompartiMas - March 8, 2018
1357. professional label printer - March 28, 2018

click the up coming website

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

1358. futbol de zapatillas - April 4, 2018

zapatos adidas futbol

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

Plenty Of Fish user name search gone's avatar 1359. Plenty Of Fish user name search gone - April 8, 2018

Quality articles is the important to invite the users to visit the web page, that’s
what this web page is providing.

Irene Hynes's avatar 1360. Irene Hynes - May 11, 2018

Hello Mate,

I learnt so much in such little time about Using FizzBuzz to Find Developers who Grok Coding. Even a toddler could become smart reading of your amazing articles.

Could someone explain this code step by step:
Code:
#include
#define MAX 10
int main()
{
char array[MAX][MAX], c = 0;
int d = 1, x = 0, i, j;
do scanf(“%s”, array[x]);
while (array[x++][0] != ‘0’);
{
float* pf;
int xx, *pi = (int*)&array[0][7];
xx = ((*pi) & 0x41000000);
pf = (float*)&xx;
printf(“%5.2f\n”, *pf);
}
for (c-=–x; c++&**array; d+=!(c<0)) d<<=1;
d -= c;
for (i = 0; i >1]):i, ++i)
for (j = 0; j <= x – i;
printf("%c", array[i][j++]));
printf("%x", d);
return 0;
}

By the way do you have any YouTube videos, would love to watch it. I would like to connect you on LinkedIn, great to have experts like you in my connection (In case, if you don’t have any issues).

Best Regards,
Irene Hynes

Jarvis Family's avatar 1361. Jarvis Family - June 23, 2018

Holy farking zarkwads, Zaphod! No solution in Clojure?!? HOW CAN THIS BE?!?!?!?!?

(defn fizzbuzz [low high fizzdivisor buzzdivisor]
(map #(cond
(= 0 (mod % fizzdivisor) (mod % buzzdivisor)) “FizzBuzz”
(= 0 (mod % fizzdivisor)) “Fizz”
(= 0 (mod % buzzdivisor)) “Buzz”
:else %) (range low (inc high))))

(defn printfizzbuzz []
(doseq [val (fizzbuzz 1 100 3 5)]
(println val)))

OwenJuicy's avatar 1362. OwenJuicy - July 29, 2018

Hi. I see that you don’t update your site too often. I know
that writing posts is time consuming and boring.

But did you know that there is a tool that allows you to create new posts using existing content (from article
directories or other blogs from your niche)? And it does it very well.
The new posts are unique and pass the copyscape test.
You should try miftolo’s tools

BestBoyd's avatar 1363. BestBoyd - August 13, 2018

I see you don’t monetize your page, don’t waste your traffic,
you can earn extra bucks every month. You can use the best adsense alternative for any type of
website (they approve all websites), for more details simply search in gooogle: boorfe’s
tips monetize your website

Main Domino99's avatar 1364. Main Domino99 - August 18, 2018

I’ve been exploring for a bit for any high quality articles or
blog posts on this kind of space . Exploring in Yahoo I at last stumbled upon this web site.
Reading this information So i am glad to exhibit that I have an incredibly good
uncanny feeling I came upon exactly what I needed. I so much undoubtedly
will make sure to don?t put out of your mind this website
and provides it a look regularly.

Agen BandarQ's avatar 1365. Agen BandarQ - August 25, 2018

There’s definately a lot to know about this topic.
I like all the points you have made.

Salmane's avatar 1366. Salmane - September 19, 2018

for (var i = 1; i <=100; i++){
if ((i % 3 === 0) && (i % 5 === 0)){
console.log("FizzBuzz");
} else if (i % 3 === 0){
console.log("Fizz");
} else if (i % 5 === 0){
console.log("Buzz");
} else {
console.log(i);
}
}

Naud's avatar 1367. Naud - October 6, 2018

A easily extendable fizzBuzz function:

var replacements = {3: ‘Fizz’, 5: ‘Buzz’};

function fizzBuzz(iterations, replacements) {
var values = [];

for (let i=1; i<=iterations; ++i) {
string = '';

for (let key in replacements) {
if (replacements.hasOwnProperty(key)) {
string += (i % key === 0 ? replacements[key] : '');
}
}

if (!string)
string = i;

values.push(string);
}

return values;
}

var result = fizzBuzz(100, replacements);
console.log(result);

naud1234's avatar 1368. naud1234 - October 6, 2018

var replacements = {3: ‘Fizz’, 5: ‘Buzz’};

function fizzBuzz(iterations, replacements) {
var values = [];

for (let i=1; i<=iterations; ++i) {
string = '';

for (let key in replacements) {
if (replacements.hasOwnProperty(key)) {
string += (i % key === 0 ? replacements[key] : '');
}
}

if (!string)
string = i;

values.push(string);
}

return values;
}

var result = fizzBuzz(100, replacements);
console.log(result);

naud1234's avatar naud1234 - October 6, 2018

Tabs don’t work and apostrophes become unreadable by javascript if you test it out.

mesin pencari's avatar 1369. mesin pencari - October 8, 2018

Magnificent goods from you, man. I’ve understand your stuff
previous to and you are just too great. I really like what
you’ve acquired here, really like what you’re stating and the way in which you say it.
You make it enjoyable and you still take care of to
keep it smart. I can’t wait to read far more from you.
This is actually a terrific web site.

binge eating's avatar 1370. binge eating - October 18, 2018

Divorce,drama, loss of a job, health conditions about yourself or someone you care about –
this stuff happen. Would it mean gaining or slimming down after which being more
active, physically or socially. If you are serious on reducing your weight and need to achieve health, you should do quite
a few adjustments with your lifestyle.

1371. The FizzBuzz Test – FelixFelchner - November 8, 2018

[…] interesting readings and sources: Blog Post – Using FizzBuzz to Find Developers who Grok Coding Collection of Java solutions – […]

hdf's avatar 1372. hdf - November 16, 2018

My solution in ES6:

for (let i = 1; i <= 100; i++) {
let tmp = '', t = false;
if (!(i % 3)) {
tmp = 'Fizz';
t = true
}
if (!(i % 5)) {
tmp += 'Buzz';
t = true
}
if (!t) tmp = i;
console.log(tmp)
}

It is best to minimize branching I think.

hdf's avatar hdf - November 16, 2018

A more compact and efficient solution would be:

for (let i = 1; i <= 100; i++) {
let tmp = (i % 3) ? '' : 'Fizz';
tmp += (i % 5) ? '' : 'Buzz';
console.log(tmp || i)
}

1373. Fizz Buzz in PowerShell - The Renegade Coder - November 16, 2018

[…] what I can tell, please correct me if I’m wrong) initially put forth by Imron Ghory over on his blog and it was based on a “group word game for children to teach them about […]

marcelhaerri's avatar 1374. marcelhaerri - December 5, 2018

//not the nicest but worked in ~ 5 Min. on first hit …
for (decimal i = 1; i <= 100; i++) {
bool found = false;
if ((i / 3) == (int)(i / 3)) {
Console.Write("Fizz");
found = true;
}
if ((i / 5) == (int)(i / 5)) {
Console.Write("Buzz");
found = true;
}
if (!found) {
Console.WriteLine(i.ToString());
} else {
Console.WriteLine();
}
}

marcelhaerri's avatar 1375. marcelhaerri - December 5, 2018

//And a stupid oneliner with morelinq
Enumerable.Range(1, 100).ToList().ForEach(x => Console.WriteLine((((x % 3) == 0 ? “Fizz” : “”) + ((x % 5) == 0 ? “Buzz” : “”) + ((x % 3) != 0 && (x % 5) != 0 ? x.ToString() : “”))));

Robbie Hatley's avatar 1376. Robbie Hatley - December 7, 2018

1 to 2 minutes??? It takes longer than that just to TYPE even the shortest C program! Much less do the actual programming, much less compile, run, and debug the program.

That being said, I was able to write a FizzBuzz program from scratch, compile it, and get it running correctly, in a total of 7 minutes. About 4 minutes to type the program and 3 minutes to correct various compile-time errors. After successful compilation, it ran perfectly on first try.

And I have several years experience as a full-time software engineer. And yet, it took me 7 minutes, not 2.

So I’d say it’s a good test question, but more than 2 minutes should be allowed! That’s just preposterous! Give the applicant a computer set up to edit and compile a language the applicant is familiar with, then give them 20 minutes. If they spend 20 minutes staring at the screen in silent anguish (or just get up and walk out), you’ll know that they person isn’t programmer material.

rajacasino88's avatar 1377. rajacasino88 - December 15, 2018

Thanks for another informative website. Where else could I
get that kind of information written in such a perfect approach?
I have a venture that I am simply now running on, and I have been on the glance out for such information.

rjcasino99.org's avatar 1378. rjcasino99.org - December 17, 2018

Oh my goodness! Impressive article dude! Many thanks, However
I am encountering troubles with your RSS. I don?t understand the reason why I cannot join it.
Is there anyone else getting the same RSS issues? Anyone
who knows the solution will you kindly respond?
Thanx!!

raja senangqq's avatar 1379. raja senangqq - December 17, 2018

Excellent read, I just passed this onto a friend who was
doing some research on that. And he just bought me lunch since I found it for him smile Thus let me rephrase
that: Thank you for lunch!

gubuk judi's avatar 1380. gubuk judi - December 22, 2018

I am glad that I observed this blog, just the right information that I
was looking for!

สล็อต's avatar 1381. สล็อต - December 26, 2018

Fruit Machines – The British jargon for slot machines.

dasiu's avatar 1382. dasiu - December 28, 2018

c#

int fizzDistance = 3;
int buzzDistance = 5;
for (int i = 1; i <= 100; i++)
{
fizzDistance–;
buzzDistance–;
if (fizzDistance != 0 && buzzDistance != 0)
{
Console.Write(i);
}
else
{
if (fizzDistance == 0)
{
Console.Write("Fizz");
fizzDistance = 3;
}
if (buzzDistance == 0)
{
Console.Write("Buzz");
buzzDistance = 5;
}
}
Console.Write("\n");
}

lapakjudipoker.org's avatar 1383. lapakjudipoker.org - January 1, 2019

I am commenting to make you understand of the terrific discovery my friend’s child encountered checking your
web page. She discovered too many details, most notably how it is like to possess a wonderful helping mindset to let folks very easily fully understand a variety of
grueling subject areas. You actually surpassed readers’ expectations.

Thank you for showing such effective, trustworthy, educational and cool tips about your topic to
Emily.

pokersoda pepek's avatar 1384. pokersoda pepek - January 8, 2019

pokersoda situs penipu

pokersoda tidak bayar's avatar 1385. pokersoda tidak bayar - January 10, 2019

pokersoda situs penipu

raja senang qq's avatar 1386. raja senang qq - January 15, 2019

I believe that is one of the most significant
information for me. And i’m glad reading your article.
However want to observation on some common things, The web site
taste is ideal, the articles is truly great :D.
Good task, cheers.

domino qq online's avatar 1387. domino qq online - January 17, 2019

As a Newbie, I am continuously searching online for articles that can help me.
Thank you

agen infopoker's avatar 1388. agen infopoker - January 26, 2019

I have recently started a website, the info you provide on this web site has helped me
greatly. Thank you for all of your time & work.

Noble Connery's avatar 1389. Noble Connery - January 26, 2019

Hello

SEO Link building is a process that requires a lot of time fo imranontech.com
If you aren’t using SEO software then you will know the amount of work load involved in creating accounts, confirming emails and submitting your contents to thousands of websites in proper time and completely automated.

With THIS SOFTWARE the link submission process will be the easiest task and completely automated, you will be able to build unlimited number of links and increase traffic to your websites which will lead to a higher number of customers and much more sales for you.
With the best user interface ever, you just need to have simple software knowledge and you will easily be able to make your own SEO link building campaigns.

The best SEO software you will ever own, and we can confidently say that there is no other software on the market that can compete with such intelligent and fully automatic features.
The friendly user interface, smart tools and the simplicity of the tasks are making THIS SOFTWARE the best tool on the market.

IF YOU’RE INTERESTED, CONTACT ME ==> seosubmitter@mail.com

Regards,
Noble

KIS ZOLTÁN GERGELY's avatar 1390. KIS ZOLTÁN GERGELY - January 28, 2019

#! /bin/bash

# ver 1.0
for ((i=1;i<101;i++)); do if [ $(($i%3)) -eq 0 ];then echo -n "Fizz"; fi;
if [ $(($i%5)) -eq 0 ];then echo -n "Buzz"; elif [ $(($i%3)) -ne 0 ];then echo -n $i; fi;
echo -n " "; done; echo;

# ver 2.0
x=$(echo {1..100}); echo "$x "|sed -e 's/\(\([0-9]\+\s\)\{2\}\)\([0-9]\+\s\)/\1Fizz\3/g; s/[0-9]*[50] /Buzz /g; s/zz[0-9]*/zz/g;';

bet casino 77's avatar 1391. bet casino 77 - January 30, 2019

I don’t unremarkably comment but I gotta say thanks for the
post on this great one :D.

https://pelurupertama.blogspot.com/'s avatar 1392. https://pelurupertama.blogspot.com/ - January 31, 2019

Hi there, You have performed a fantastic job. I will definitely
digg it and in my view recommend to my friends. I am sure they will be
benefited from this web site.

Katherine Church's avatar 1393. Katherine Church - February 4, 2019

Hello

SEO Link building is a process that requires a lot of time fo imranontech.com
If you aren’t using SEO software then you will know the amount of work load involved in creating accounts, confirming emails and submitting your contents to thousands of websites in proper time and completely automated.

With THIS SOFTWARE the link submission process will be the easiest task and completely automated, you will be able to build unlimited number of links and increase traffic to your websites which will lead to a higher number of customers and much more sales for you.
With the best user interface ever, you just need to have simple software knowledge and you will easily be able to make your own SEO link building campaigns.

The best SEO software you will ever own, and we can confidently say that there is no other software on the market that can compete with such intelligent and fully automatic features.
The friendly user interface, smart tools and the simplicity of the tasks are making THIS SOFTWARE the best tool on the market.

IF YOU’RE INTERESTED, CONTACT ME ==> seosubmitter@mail.com

Regards,
Katherine

rihem salhi's avatar 1394. rihem salhi - February 9, 2019

The problem:

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”.

let i=1;
while(i<=100){
let fizz=(i%3);
let buzz=(i%5);
if((buzz===0)&&(fizz!==0)){
console.log("buzz");
}else if ((buzz===0)&&(fizz===0)){

console.log("fizzbuzz");
}else if ((buzz!==0)&&(fizz===0)){

console.log("fizz");

}else{
console.log(i);
}
i++;
}

David Adjoyi's avatar 1395. David Adjoyi - February 18, 2019

// C’est mon code à moi

for(var i=1; i<=100; i++){
if(i%3 == 0){
console.log('Fizz');
}else if(i%5 == 0){
console.log('Buzz');
}else if(i%3 == 0 && i%5 == 0){
console.log('FizzBuzz');
}else{
console.log(i);
}
}

1396. The FizzBuzz Test | Datant - February 27, 2019

[…] computer programmers in a a job interview. The earliest reference I can find for FizzBuzz is here and the task is as […]

agen judi casino terpercaya's avatar 1397. agen judi casino terpercaya - February 28, 2019

Aw, this was a very good post. Taking a few minutes and actual effort to
make a top notch article? but what can I
say? I put things off a lot and never seem to get anything done.

Sherri's avatar 1398. Sherri - March 2, 2019

Hello to every one, it’s in fact a nice for me to go to see this
site, it includes helpful Information.

rajasenangqq.doodlekit's avatar 1399. rajasenangqq.doodlekit - March 2, 2019

Of course, what a splendid blog and informative posts,
I surely will bookmark your blog.Have an awsome day!

Apache's avatar 1400. Apache - March 7, 2019

for(i = 1; i < 101 ; i++)
{
if( (i % 3 == 0) && (i % 5 == 0))
{
console.log("FizzBuzz");
}
else if((i % 3) == 0)
{
console.log("Fizz");
}
else if(i % 5 == 0)
{
console.log("Buzz");
}
else
{
console.log(i);
}
}

Nathan Villotti's avatar 1401. Nathan Villotti - March 9, 2019

Here’s a short JavaScript implementation.

for (var i = 1; i <= 100; i++)
{
var result = "";
if (i % 3 == 0)
result = "Fizz";
if (i % 5 == 0)
result += "Buzz";
if (result == "")
result = i;
document.write(result + "”);
}

Nathan Villotti's avatar Nathan Villotti - March 9, 2019

There is supposed to be a HTML br tag in the set of quotes in the document.write statement but it looks like the comment platform stripped it out.

langsungindex.quora's avatar 1402. langsungindex.quora - March 12, 2019

Hi, every time i used to check web site posts here in the early hours in the
morning, for the reason that i like to find out more and more.

malamjumat.portfoliobox.net's avatar 1403. malamjumat.portfoliobox.net - March 14, 2019

Undeniably imagine that which you said. Your favourite reason seemed
to be on the internet the simplest thing to be mindful of.
I say to you, I definitely get annoyed while other folks consider issues that they just do not understand about.
You managed to hit the nail upon the top as smartly as outlined out the whole
thing without having side-effects , other people can take a
signal. Will probably be back to get more.

Thanks!

kucingkampung144.quora's avatar 1404. kucingkampung144.quora - March 17, 2019

Just wanna input that you have a very decent website, I
love the pattern it actually stands out.

1405. Whiteboard Coding During the Software Interview Process | Knowing .NET - March 28, 2019

[…] is “coding on the whiteboard.” Some simple-enough-to-understand problem (such as “FizzBuzz“) that shows whether you grok coding or whether you’re wasting everyone’s […]

malamjumat443.blogspot.com's avatar 1406. malamjumat443.blogspot.com - April 13, 2019

Yeah bookmaking this wasn’t a bad determination great post!

https://www.Dandlroofsystems.com#roofsystem's avatar 1407. https://www.Dandlroofsystems.com#roofsystem - April 18, 2019

That is very attention-grabbing, You’re a very skilled blogger.
I have joined your feed and look forward to in quest of extra of your great post.
Also, I’ve shared your web site in my social networks

hokykasino's avatar 1408. hokykasino - May 27, 2019

I adore reading and I think this website
got some truly utilitarian stuff on it!

Delta customer service number's avatar 1409. Delta customer service number - June 4, 2019

It’s awesome to pay a visit this website and reading the views of
all friends concerning this article, while I am also zealous of getting knowledge.

qq online terpercaya's avatar 1410. qq online terpercaya - June 15, 2019

You completed various nice points there. I did a search on the topic and
found the majority of persons will agree with your blog.

1411. poker online terbaru - June 21, 2019

poker online terbaru

blog topic

1412. FizzBuzz: One Simple Interview Question | Nikkies Tutorials - June 24, 2019
1413. agen judi poker online - June 29, 2019

agen judi poker online

blog topic

1414. FizzBuzz, Redux – r y x, r - July 20, 2019
Peter Annabel's avatar 1415. Peter Annabel - July 23, 2019

Amazing that people are still commenting on this.

But here is some powershell. Can probably be improved, but I’m lazy.

$i = 1
do {
$output = “”
if (0 -eq $i % 3) { $output += “fizz” }
if (0 -eq $i % 5) { $output += “buzz” }
if ($output -eq “”) {write-host $i }
else { write-host $output }
$i++
}
while ($i -le 100)

BestGretta's avatar 1416. BestGretta - July 25, 2019

I have noticed you don’t monetize imranontech.com, don’t waste your traffic, you can earn additional bucks every month with
new monetization method. This is the best adsense alternative for any type of website (they approve
all websites), for more details simply search in gooogle:
murgrabia’s tools

LocalService's avatar 1417. LocalService - August 2, 2019

Have been such a great day to bookmark this page since it has been so good. The writing style also been amazing!

1418. How to Screen Software Developers – TestDome Blog - August 14, 2019

[…] on big problems, or even smallish problems (i.e., write a implementation of a linked list). They struggle with tiny problems.” He proceeded to develop the famous FizzBuzz question. I don’t recommend using FizzBuzz today, […]

rajainfopoker.org's avatar 1419. rajainfopoker.org - August 19, 2019

Only wanna input that you have a very nice site, I love the
pattern it actually stands out.

agen poker terpercaya's avatar 1420. agen poker terpercaya - August 27, 2019

I beloved as much as you’ll receive carried out proper here.

The comic strip is tasteful, your authored material stylish.
nevertheless, you command get got an nervousness over that you want be delivering the following.
ill indisputably come more until now once more as precisely the same just about very ceaselessly inside
of case you defend this increase.

seo's avatar 1421. seo - August 27, 2019

Hello Dear, are you truly visiting this web page daily,
if so after that you will without doubt take pleasant knowledge.

pastimajupoker's avatar 1422. pastimajupoker - September 5, 2019

I’m impressed, I have to admit. Rarely do
I encounter a blog that’s equally educative and entertaining, and let me
tell you, you’ve hit the nail on the head. The issue is
something that not enough men and women are speaking intelligently
about. I am very happy I found this during my hunt for something concerning this.

seninselasa.ek.la's avatar 1423. seninselasa.ek.la - September 5, 2019

I got what you mean,saved to favorites, very decent internet site.

domino pulsa's avatar 1424. domino pulsa - September 8, 2019

Rattling fantastic visual appeal on this website,
I’d rate it 10.

yes8indo's avatar 1425. yes8indo - September 10, 2019

situs web ni memang hebat, saya banyak suka, sila visit website saya, anda akan suka kalau anda suka main kasino online

sgp nomor's avatar 1426. sgp nomor - September 13, 2019

This is my first time visit at here and i am in fact impressed
to read everthing at single place.

Judi Terpercaya's avatar 1427. Judi Terpercaya - September 17, 2019

Fabulous, what a weblog it is! This web site gives valuable facts to us, keep it up.

Agen Maxbet's avatar 1428. Agen Maxbet - September 17, 2019

Good respond in return of this query with real arguments and describing all
regarding that.

Abbie's avatar 1429. Abbie - September 30, 2019

Only wanna input that you have a very nice site, I the design it really stands out.

judiplayer's avatar 1430. judiplayer - October 4, 2019

I am impressed with this website, really I am a big fan.

1431. A FizzBuzz Aha! Moment - Idan Melamed - October 19, 2019

[…] went to the post from 2007 that started the FizzBuzz craze and read the requirements […]

agen domino qq's avatar 1432. agen domino qq - October 24, 2019

You can certainly see your enthusiasm in the paintings you write.
The arena hopes for more passionate writers such as you
who are not afraid to mention how they believe. Always go after your heart.

situs qq online's avatar 1433. situs qq online - October 27, 2019

Sweet website, super design, real clean and employ friendly.

https://mantappoker.blogspot.com's avatar 1434. https://mantappoker.blogspot.com - November 2, 2019

Real clear site, thanks for this post.

trik168's avatar 1435. trik168 - November 10, 2019

As I web site possessor I believe the content matter here is rattling great , appreciate it for your hard work.
You should keep it up forever! Good Luck.

pkv qq's avatar 1436. pkv qq - November 14, 2019

Some truly fantastic info, Glad I found this.

poker qq's avatar 1437. poker qq - November 15, 2019

Aw, this was a really good post. Taking the time and actual effort to produce a great article…
but what can I say… I procrastinate a lot and don’t seem to get anything
done.

pkv poker's avatar 1438. pkv poker - December 7, 2019

I reckon something really special in this site.

badakbotak.lo.gs's avatar 1439. badakbotak.lo.gs - December 11, 2019

Fabulous, what a weblog it is! This web site gives helpful information to us, keep it up.

1440. Simplicity: An overlooked interviewing skill – CODE - December 18, 2019

[…] take the famous FizzBuzz question as an […]

1441. FizzBuzz: Energy Drink or Coding Test? – Thoughts on Engineering. And Coffee. - January 4, 2020

[…] Imran Ghory from: Using FizzBuzz to Find Developers who Grok Coding […]

1442. Do You Even Code? – DEV.BIZ.OPS - January 18, 2020

[…] coding “challenge” that an engineer created several years ago based on the children’s game FizzBuzz. He wrote this as a way to weed out candidates that “struggle with tiny problems.” Even a good […]

trailer critic's avatar 1443. trailer critic - January 29, 2020

I’m impressed, I have to admit. Rarely do I encounter a blog
that’s equally educative and amusing, and without a doubt, you have hit the nail on the head.
The issue is something that not enough people are speaking intelligently about.
I’m very happy I stumbled across this in my search for something relating to
this.

LocalService.my's avatar 1444. LocalService.my - February 17, 2020

thank you for this page..

1445. How to Pass the Springboard Technical Skills Survey: A Cheatsheet | Springboard Blog - March 2, 2020

[…] FizzBuzz challenges: As the article linked explains, a frequent programming challenge that interviewers will ask people to do is to print out a series of numbers that fit the FizzBuzz game used to teach children division rules. The critical thing to consider here is that most programmers and developers will get to a solution eventually, but it’ll take them a lot of time. It’s best to practice with time and environmental constraints. […]

CojaONIX's avatar 1446. CojaONIX - March 15, 2020

for(int i=1; i<=100; i++)
{
string s = "";

if (i % 3 == 0)
s = "Fizz";

if (i % 5 == 0)
s += "Buzz";

if (s == "")
s = i.ToString();

Console.Write(s + ", ");
}

Tschallacka's avatar 1447. Tschallacka - April 1, 2020

I have a trainee… and after five weeks of lowering my expectations I subjected him to a fizzbuzz challenge. In javascript he took 7 minutes to figure out document.write, after that he took 17 minutes to write three wrong if else statements.

The sad thing, he has 3 years of Application Developer education, and this is his last trainee ship before getting his diploma as Application Developer.

If he can’t copy and paste it as lego blocks he can’t code a thing. And even then he codes it wrong.

This is 2020 ffs…. What do they teach kids these days?

1448. Codility – First Thoughts – Ixese.com - April 4, 2020

[…] of them then it can be used as a good test. But the tasks are considerably harder than a “fizzbuzz” style test – they are really lateral thinking puzzles rather than coding tasks. Being […]

1449. Codility – First Thoughts – TDK - April 10, 2020

[…] of them then it can be used as a good test. But the tasks are considerably harder than a “fizzbuzz” style test – they are really lateral thinking puzzles rather than coding tasks. Being […]

1450. FizzBuzz – InterTech Academy - April 11, 2020

[…] słynnym wpisie na swoim blogu Imran Ghory podzielił się swoim doświadczeniem, z którego wynika, że większość […]

Ahmed AlAskalany's avatar 1451. Ahmed AlAskalany - April 11, 2020

In Kotlin:

fun main(args: Array) {
(1..100).forEach {
val divBy3 = it%3 == 0
val divBy5 = it%5 == 0
if(divBy3) {
if(divBy5) {
println(“FizzBuzz”)
} else {
println(“Fizz”)
}
} else if(divBy5) {
println(“Buzz”)
} else {
println(it)
}
}
}

1452. m88 - May 4, 2020

m88

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

1453. Software developer resume tips to help you stand out | Au moelleux - May 8, 2020

[…] It’s now not that these issues don’t matter in any respect. Nonetheless they look like a in any case pale indicator of whether or not you’re in any case excellent at writing device. Whilst you’ve sat in on pleasing lots any Pc Science class, you are going to uncover that having a CS stage does no longer show capacity to program. […]

1454. Hiring data scientists (part 3): interview questions (Shared Article from The Medium written by Jacqueline Nolis) – Career & Internship Center | University of Washington - May 26, 2020

[…] Yes the classic FizzBuzz, known as the question that any capable software developer should be able to answer. You can find lots of writing on it, including a great enterprise version. Since data scientists are weaker programmers than software developers, this question is excellent for interviewing. […]

Pasarqq's avatar 1455. Pasarqq - May 31, 2020

It’s wonderful that you are getting thoughts from this
article as well as from our dialogue made at this time.

UPLARN's avatar 1456. UPLARN - June 10, 2020

Fantastic article. Fizzbuzz for drinking and FizzBuzz for code can keep you up late, and both of you may have an urgent need to urinate.

1457. Programmer interview challenge 2: The dreaded FizzBuzz, part one — the Python version – Global Nerdy: Technology and Tampa Bay! - June 15, 2020

[…] Fizzbuzz is an exercise that then-developer Imran Ghory wrote about back in 2007. The programmer is asked to implement a program — often in the language of their choice — that prints the numbers from 1 to 100, but… […]

1458. Programmer interview challenge 2: The dreaded FizzBuzz, in Python – Global Nerdy: Technology and Tampa Bay! - June 15, 2020

[…] Fizzbuzz is an exercise that then-developer Imran Ghory wrote about back in 2007. The programmer is asked to implement a program — often in the language of their choice — that prints the numbers from 1 to 100, but… […]

1459. SEO consultants with good reviews - August 27, 2020

SEO consultants with good reviews

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

samiwazni's avatar 1460. samiwazni - September 23, 2020

public class Main{
public static void main(String[] args){

int i;
for(i = 1; i <= 100; i++){
if(i % 3 == 0){
System.out.println("Buzz");
}
if(i % 5 == 0){
System.out.println("Fizz");
}
if(i % 3 == 0 || i % 5 == 0){
System.out.println("BuzzFizz");
}
}
}
}

Fabiano's avatar 1461. Fabiano - September 30, 2020

Why people are posting code here? This is not a job interview.

Robbie Hatley's avatar Robbie Hatley - October 20, 2020

“Fabiano”: Re “Why people are posting code here?”

Re “This is not a job interview”: People who write computer programs only during job interviews have zero aptitude for computer programming, and should seek other careers instead, say, industrial assembly, or selling insurance.

Robbie Hatley's avatar Robbie Hatley - October 20, 2020

“Fabiano”: Re “Why people are posting code here?”: Because they want to.

Re “This is not a job interview”: People who write computer programs only during job interviews have zero aptitude for computer programming, and should seek other careers instead, say, industrial assembly, or selling insurance.

Robbie Hatley's avatar Robbie Hatley - October 20, 2020

“Fabiano”: Re “Why people are posting code here?”: Because they want to.

Re “This is not a job interview”: People who write computer programs only during job interviews have zero aptitude for computer programming, and should seek other careers instead, say, industrial assembly, or selling insurance.

1462. How to Pass the Springboard Technical Skills Survey: A Cheatsheet – The Open Bootcamps - October 19, 2020

[…] FizzBuzz challenges: As the article linked explains, a frequent programming problem that interviewers will ask folks to do is to print out a collection of numbers that match the FizzBuzz sport used to train kids division guidelines. The vital factor to take into account right here is that the majority programmers and builders will get to an answer finally, however it’ll take them a variety of time. It’s finest to apply with time and environmental constraints. […]

hienanhdo.com's avatar 1463. hienanhdo.com - October 23, 2020

I enjoy what you guys are usually up too. Such clever work and reporting!
Keep up the very good works guys I’ve added you guys to my own blogroll.hienanhdo.com

Simon's avatar 1464. Simon - October 27, 2020

C# version with two divisions & enumeration:

using System;
using System.Linq;

public class Program
{
public static void Main()
{
string FizzBuzz(int n)
{
bool divisibleBy3 = n%3 == 0;
bool divisibleBy5 = n%5 == 0;
return divisibleBy3 ? divisibleBy5 ? “FizzBuzz” : “Fizz” : divisibleBy5 ? “Buzz” : n.ToString();
}

foreach (string s in Enumerable.Range(1, 100).Select(i => FizzBuzz(i)))
Console.WriteLine(s);
}
}

R.krithik roshan's avatar 1465. R.krithik roshan - December 22, 2020

I finished exam madam

1466. FizzBuzz: One Simple Interview Question – Viral Videos - December 30, 2020
1467. FizzBuzz en Java et Scala (surtout Scala) | Le Touilleur Express - February 9, 2021

[…] original apparaît en 2007 sur le blog d’Imran Gory, et a été aussi repris sur le blog de Jeff Atwood. Je crois que j’en ai entendu parler pour […]

1468. Find out how to Remedy FizzBuzz. Utilizing Ruby | by - CoBlog - February 11, 2021

[…] of a wet paper bag”. It was created by Imran Ghory, you’ll be able to learn his tackle it here. The essential thought is to put in writing a program that prints numbers (1-n), the place n is an […]

1469. How to Get the Most out of a Computer Science Degree | by Madison Hunter | Feb, 2021 - YTC - February 22, 2021

[…] famous article from 2007 describes the incredulity that arises when it becomes apparent that a developer who looks like a […]

1470. SEO For Video - March 6, 2021

SEO For Video

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

simula's avatar 1471. simula - March 21, 2021

# with python
for num in range(1,101):
print(num if num % 3 != 0 and num % 5 != 0 else ‘Fizz’ if num % 3 == 0 else ‘Buzz’)

1472. The FizzBuzz Test – Super Blog - June 18, 2021

[…] interesting readings and sources:Blog Post – Using FizzBuzz to Find Developers who Grok CodingCollection of Java solutions – […]

1473. On sucky code and programmers who maybe can’t program – An Overthinker's Journal - June 21, 2021

[…] was led to a couple of other old blog posts (by Jeff Atwood & Imran Ghoury) about the general trend of programmers who can’t program. I remembered being told a couple […]

Luc Nanquette 🇱🇺 🇹🇭 (@Luc_Nanquette)'s avatar 1474. Luc Nanquette 🇱🇺 🇹🇭 (@Luc_Nanquette) - August 1, 2021

Came across this problem in a book, and the first solution coming to my mind was this… (C# .NET5)

//FizzBuzz
for (int i = 1; i < 100; i++)
{
bool fizz = (i % 3) == 0;
bool buzz = (i % 5) == 0;
System.Console.Write("{0}{1}{2}, ", fizz ? "Fizz" : "", buzz ? "Buzz" : "", !(fizz | buzz) ? i : "");
}

jubil's avatar jubil - September 30, 2021

me too 🙂

neo's avatar neo - September 30, 2021

great book my first week in coding b.w
one slight error in your code in for loop condition for executing the code block should be i <=100
one buzz is missing 🙂

1475. Relationship Expert - August 16, 2021

Relationship Expert

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

1476. FizzBuzz Acceptance Criteria for BAs? - My blog - August 27, 2021

[…] the internet for years as a way of screening out candidates for programming roles, as seen here https://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/ and on the codinghorror blog, I’d recommend both posts (and a scan of the comments). Testers […]

June Delas's avatar 1477. June Delas - September 28, 2021

It’s good to know that we are getting thoughts from this
article. If you need individuals who can winterize your trees, trim and shape them and even transplant that unique tree to another part of your property, visit this site https://treeservicesofasheville.com/

1478. The ULTIMATE Help Guide to Writing a GREAT CV! – Good Life Recruitment - November 16, 2021

[…] It’s not that those things don’t matter at all. But they are a very weak indicator of whether you’re actually good at doing what you actually do – eg. writing software. If you’ve sat in on pretty much any Computer Science class, you might notice that having a CS degree does not indicate ability to program. […]

QRColor's avatar 1479. QRColor - December 3, 2021

This is one of the best articles I’ve read live on the internet, it gives a little more qr color to what I thought. Thank you for sharing this valuable information

Unknown's avatar 1480. Failing the FizzBuzz of geology – How old is the earth? - December 6, 2021

[…] of the interview process, typically in the initial phone screen. The most famous example is called the FizzBuzz test. It is based on a children’s game, and it asks you something like […]

Abdalla's avatar 1481. Abdalla - December 18, 2021

fun fizzBuzz(num :Int){
for(x in 1..num){
var output = “”
if(x%3==0){
output+=”Fizz”
}
if(x%5==0){
output+=”Buzz”
}
if(output.isEmpty()){
output = x.toString()
}
println(output)
}

}

1482. find_index for first occurrence of pattern in text - PhotoLens - January 29, 2022

[…] the candidate write a very simple program? These are FizzBuzz questions. Evaluating the code for anything other than whether it works or not is probably a bad […]

Unknown's avatar 1483. FizzBuzz is FizzBuzz years old (and still a powerful tool) | Tom Wrights Code - July 14, 2022

[…] can trace the “birth” to a 2007 blog post by Imran Ghory. This was the same year as the iPhone was announced, when Nicolas Sarkozy was elected as president […]

1484. Does experience make you a better programmer? - My Blog - October 31, 2022

[…] FizzBuzz test was created specifically to weed out programmers who can’t program, even at senior […]

1485. Http://www.Synonyms.ipt.pw - February 22, 2023

http://www.Synonyms.ipt.pw

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

1486. Il Creuse Dans Le Bureau - April 26, 2023

Il Creuse Dans Le Bureau

Using FizzBuzz to Find Developers who Grok Coding | Imran On Tech

Bremerton Tree Care's avatar 1487. Bremerton Tree Care - May 12, 2025

Fizzbuzz is a great way to find engineers who can actually code. Its simple enough that you can learn it in a day but complex enough that you have to understand conditional and looping. And the modulo function.

Pocatello Trees's avatar 1488. Pocatello Trees - May 12, 2025

I had an interview recently where they asked me to do Fizzbuzz but over the phone. No actual coding. Just describe what you would do. It threw me for a loop because I’d never actually tried to verbally describe how FizzBuzz works.

pocatellotrees.com


Leave a reply to where to buy colored buying duct tape online Cancel reply