Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nandemo
on Oct 5, 2012
|
parent
|
context
|
favorite
| on:
Fizzbuzz, Interviews, And Overthinking
That
max
looks suspicious. It (ab)uses the fact that the strings "Fizz", "Buzz" compare higher than any printed integer. If you try to extend it to (7, " Bazz") it fails, because " " comes before digits.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: