Search
  • Billy Quarles

Coding interview question


Interesting example of interview question to determine one's ability to think critically and come up with solutions. In FizzBuzz, you replace every multiple of 3 with 'Fizz' and multiples of 5 with 'Buzz', where multiples of both 3 & 5 (e.g., 15) are 'FizzBuzz'. My first thoughts went to the % or modulus operator to determine multiplicity, but there are other possible ways to make it cleaner with smart 'if' statements.


4 views

© 2020 by Billy Quarles.

github-mark[1].png