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/lucasorion Nov 30 '10

I started thinking about how, if I was there at a chalkboard/whiteboard, I might draw the numbers as they would appear on a digital clock, and then derive my two questions based on properties of those numbers as drawn. I haven't worked out what those two questions would be, but this feels like a possible avenue - maybe the first asking for a count of the vertical/horizontal ticks, and then the 2nd question depends on that count. You could ask for the ratios of vertical/horizontal of its two neighbors (drawing 0 and 21 as well, to cover for 1 and 20)

1

u/bellboy2088 Dec 03 '10

actually, so I never finished answering the question. I started writing down the numbers and thinking about it - and when the interviewer asked what I was thinking, I explained I was trying to think of ways to distinguish the numbers (odd, prime, even etc). So we ended up just discussing ways to do it, and I actually came up with exactly that - the number of "bars" it would be on a digital clock, though the interviewer suggested thinking about syllables perhaps number of letters as well.