for i = 1 to 100 do
fizz = isMultiple(3, i)
buzz = isMultiple(5, i)
if fizz & buzz
output 'FizzBuzz'
elseif fizz
output 'Fizz'
elseif buzz
output 'Buzz'
else
output i
endif
next
Then all that's left is to write the 'isMultiple' function ;-)
Pseudo code is synonym to thinking out loud in an interview context and is a golden approach that I personally highly recommend.
Awesome stuff and thank you for sharing :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I would approach it "top down" with pseudo code:
Then all that's left is to write the 'isMultiple' function ;-)
Pseudo code is synonym to thinking out loud in an interview context and is a golden approach that I personally highly recommend.
Awesome stuff and thank you for sharing :)