|
|
|
|
|
by jedberg
3684 days ago
|
|
I hate puzzles too, especially the gotcha ones with esoteric knowledge required. But for FizzBuzz I explain the problem, explain that there is no trick and the simplest answer that produces the correct output will be fine. To solve it you need to know about building a loop, what the mod operator does, and maybe keeping state depending on how you build it. I tell them to write it in the language they know best. None of those things should be "gotchas" in your favorite language. |
|