to LKM:
"Instead of using recursion, it’s often faster to use a Stack"
do you understand how, in almost any language, recursion involves a stack ? you are just making the hidden part visible…
to shiva:
"if program does require recursion, then definitely everyone will use this."
agreed, but you are free to think a bit longer and see if you cannot avoid it. this is the difference between a good programmer and a smart programmer: the former knows how to solve the problem while the later invents new ways to solve the problem more efficiently.
to Fabian:
no, you forgot a part of the requirements. wroooong ! do it again !
to Jeff:
"it’s amusing to me that any reference to a programming problem-- in this case, FizzBuzz-- immediately prompts developers to feverishly begin posting solutions."
it is also amusing how many of those solutions are wrong. so typical of our profession…