Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Scarcely requires math, seems only to require arithmetic.


Yea - 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: