Google Interview Question
1,069 Interview Reviews |
Back to all Google Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at Google:
Most phones now have full keyboards. Before there there three letters mapped to a number button. Describe how you would go about implementing spelling and word suggestions as people type.
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (3)
Helpful Answer?
Yes |
No
Inappropriate?
1 of 1 people found this helpful
Form a trie where the keys are the digit sequences, and values are the words.
With every key press, the possible completions will be a smaller sub-tree of the previous trie.
Possible improvements, if data and computation power are available:
-Display words in decreasing order of frequency in English language.
-Display words in decreasing order of probability based on some Markov model.
-Find possible typos by looking at keys with a short Hamming distance away from the typed sequence.
Helpful Answer?
Yes |
No
Inappropriate?
Members can
answer or comment on this question
–
Join Now (It's Free) or
Sign In
0 of 2 people found this helpful
by Interview Candidate: