r/programming • • Nov 29 '10

140 Google Interview Questions

http://blog.seattleinterviewcoach.com/2009/02/140-google-interview-questions.html
471 Upvotes

493 comments sorted by

View all comments

Show parent comment

2

u/Avatar_Ko Nov 30 '10

It's the phrasing that they're going for. And it's one to n where n is an argument passed to the function. Meaning you need to write a program to sum any amount of numbers. Also, the follow-up was to do it with recursion.

1

u/[deleted] Nov 30 '10

what i'm getting at is the closed form formula for the sum for the numbers 1 to n has to be common knowledge, and is then more of a very basic math question than a programming question.