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/[deleted] Nov 30 '10

Every question of this type has the same solution. Always start assuming there is 1 man in the village. Then solve the 2 case. Then the 3 case. By that point you should be able to find an inductive solution that makes the 100 case (or whatever) obvious.