3 ms·
To take as much from FizzBuzz as possible - how about "What is the sum of all integers between 1 and 1000 that are divisble by 3 or 5?" It's simple to figure o
by dangoldin 14y ago
To take as much from FizzBuzz as possible - how about "What is the sum of all integers between 1 and 1000 that are divisble by 3 or 5?"
It's simple to figure out with pen and paper but the goal is to just confirm a basic level of competence.
- ColinWright 14y agoScarcely requires math, seems only to require arithmetic.
- dangoldin 14y agoYea - I wasn't entirely sure what you meant by the "FizzBuzz" for math point. You were looking for something with more of an abstract focus? You can have the person then turn it into a general case. What is the sum of 1...N given that the numbers divisible by x1...xk. Even that's pretty simple though.