HN Hall of Fame Weekly email

Fizzbuzz, Interviews, And Overthinking

dave.fayr.am Essays & writing Essays & articles Software engineering Candidate

Resurfaced independently across 4 calendar years, with breakout response in 2 of them.

submissions
4
submitters
4
observed span
2012–2017
peak thread · 110 comments
126 pts
latest 20+ return · 2017-09-13
123 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

cases = ( (3, 'Fizz'), (5, 'Buzz'), (7, 'Bazz'), (11, 'Boo'), (13, 'Blip'), ) for i in range(1, 101): out = [] for c in cases: if i % c[0] == 0: out.append(c[1]) if out: print ''.join(out) else: print i Edit: not to detract from the post's point, I think it's valid. Monoids are cool and all but simple counting arguments can take you a long, long, long, way when case analysis fails you.

aristus·126-point thread·

Python can produce extensible solutions! It can! (Edit from sillier comment.) def fizzbuzz(n): outstring = "" outputs = {5: "buzz", 3: "fizz", 7: "bar"} for x in sorted(outputs.keys()): if n % x == 0: outstring += outputs[x] if outstring: return outstring return n Then all you gotta do to add more prime numbers is stick them in the dict (or factorize composite numbers you want to put in). Which is more idiomatic in python than endless if elif elif elif…

Actually, the control flow only requires you to know that you've done SOMETHING out of the ordinary, but not WHAT you've done. A C example that is easily extensible: void fizzBuzz(void) { bool alternateUsed = false; for(int i = 1; i <= 100; i++) { if(i % 3 == 0) { printf("Fizz"); alternateUsed = true; } if(i % 5 == 0) { printf("Buzz"); alternateUsed = true; } if(!alternateUsed) { printf("%d", i); } printf("\n"); alternateUsed = false; } } All you…

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
254

reference only — not used in Hall rules or ranking

Total comments
195

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2012-10-04Fizzbuzz, Interviews, And OverthinkingFirst breakout · Best threadtimf126110
2013-04-21FizzBuzz, A Deep Navel to Gaze Intoashleyblackmore33
2016-01-12FizzBuzz, a Deep Navel to Gaze Intokornish20
2017-09-13Overthinking Fizzbuzz with MonoidsLatest 20+ point returnKirinDave12382