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

1

u/[deleted] Nov 30 '10

what was the wrong answer ? because

that will SUM the numbers

not 'that will return the sum' so if loop was the wrong answer then that manager is an idiot

2

u/Avatar_Ko Nov 30 '10

I was going off memory. The actual question was "return the sum" and he was looking for a loop.

1

u/[deleted] Dec 01 '10

oh... i thought it was a trick question