Google Interview Question for Software Engineer in Tests






Comment hidden because of low score. Click to expand.
0
of 0 vote

Search in other search engines and compare if results make sense :-)

- Messi April 18, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

you need to know user's geography
based on geography, there is a banned list of words which engine should not suggest like in Germany Naz*.

as user is typing, engine knows the history of user's past visited sites.
keep a dictionary of those and show all matching given set of characters typed forming begining of the text. as user types more text, keeps moving down this dictionary and showing subset of choices.

- quicker October 19, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

We need to test how well the ranking can predict which query a user will make. A good input data set would be the N most common search queries from Google users in the past (where N depends on system constraints and queries are from the same region/language), and the frequency of each word can be stored in a key-value pair database. The actual test would select each query, then add characters from the query one at a time and obtain the current ranking of the actual query by calling the query completion module function with the current substring until the highest-ranking completed query corresponds to the actual query or there are no more characters to add. Results for each character of the query can be quantified by checking if that character was part of any completed queries, then awarding scores proportionally to how high of a ranking the correct query has for the substring ending with the character. Next the scores for each character can be summed to get the score for a particular query, then the frequency of a query can be multiplied with the score to get a weighted value. The module would pass the test if the sum of all weighted values is above a certain threshold. My motivation for this test is that the weighted values should correspond to the average reduction in characters that the user would have to type assuming that he/she always uses the completion suggestions.

- Michael January 25, 2015 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More