DEV Community

Discussion on: The FizzBuzz problem

Collapse
 
kallmanation profile image
Nathan Kallman

Agreed, the problem isn't that it is slower (unless you're building a military grade FizzBuzz the difference is imperceptible). The actual problem (or I should say, the problem much more likely to be encountered) is when a change request comes in to add rules to "Woof on multiples of 7" the number of cases to check doubles (from 15, 5, 3 to 105, 35, 21, 15, 7, 5, 3)

Collapse
 
pranjaljain0 profile image
Pranjal Jain

Yes true...
And when working in real-life applications...
we often encounter these sort of problems, where the correct algorithm wins.
just like Page rank over others...

Collapse
 
paddy3118 profile image
Paddy3118

Solve today's problem. Fizzbuzz is Fizzbuzz.