Google Interview Question
1,220 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:
Design a web search engine that searches web locations for anagrams of a given string.
| Tags: | design See more , See less 8 |
Helpful Question?
Yes |
No
Inappropriate?
0 of 0 people found this helpful
by nicola:
The trie store the words and at the end of the word there is a list of documents which contain that word.
If I would do a search engine for anagrams, when I index the document I would not store the words as they are, but in lexicographic order (the word "bamboo" will be "abbmoo").
When performing a search I will not look for the query but for its lexicographic order version.