3 ms·
I could do that on a whiteboard, in a notepad in psudeocode, and possibly for real in a language I'd recently used (so the syntax is in mind) and recognize the
by mjevans 7y ago
I could do that on a whiteboard, in a notepad in psudeocode, and possibly for real in a language I'd recently used (so the syntax is in mind) and recognize the output is correct or needs a tweak or two...
However I don't think I could do this at all over the phone.
I'd also, for a throw away like this, knowing it's a throw away stuff everything in to main / global and use that c-style loop BECAUSE it's portable to literally every language.
If you're looking for a FizzBuzz class/object/module specify that. If you've got a specific language with nice features ask for that, BUT don't demerit an individual too much for not knowing the day to day features of the coding environment in your company when they've not been part of it for months.