Google | Phone Screen | Find word in comments

Hello all,

I recently went though the google phone screen.

Question:
Given valid Java source code as input find the word "google" in the code comments.

My thoughts:
The question is simple enough to understand. The tough part is to handle all the edge cases and getting it done in 40 mins time. I did not pass the interview, even though I made a compelling case by coming up with a lot of edges cases to handle. Only working code can get one though, especially if the problem is seemingly simple, like the one above.

My advice:
Concentrate on speed and practice without an IDE.

Hope this helps.

Comments (5)