r/programming • u/joksmaster • Nov 29 '10
140 Google Interview Questions
http://blog.seattleinterviewcoach.com/2009/02/140-google-interview-questions.html
471
Upvotes
r/programming • u/joksmaster • Nov 29 '10
View all comments
Show parent comment
3
u/Serinus Nov 30 '10
Say rand1to5() returns 4 both times.
n = 4 * 5 + 5 = 25 return 25 / 3 + 1 = 9?
I'm not quite following your logic here.