FizzBuzz is a simple programming task to filter would-be - TopicsExpress



          

FizzBuzz is a simple programming task to filter would-be programmers out of an interview process: Write a program which takes a list of integers. If the integer is evenly divisible by 3, print Fizz. if its evenly divisible by 5, print Buzz. If its evenly divisible by 15, print FizzBuzz. Apparently its also good for filtering out people who dont understand math, specifically prime factors. The examples on this page (as many as I looked at) all contain a check to see if the number is evenly divisible by 15. The problem is that if a number is divisible by both 3 and 5 then its sure to be divisible by 15: prime factors.
Posted on: Fri, 23 Jan 2015 20:32:52 +0000

Trending Topics



Recently Viewed Topics




© 2015