Earlier quoted context omitted.
The difference is on the margin. If typical candidates who reach the optimal solution reach it in the last 5 minutes, and if it takes 5 minutes to discuss with a non-chess-playing candidate how a knight moves, then you have severely disadvantaged that candidate.
> and if it takes 5 minutes to discuss with a non-chess-playing candidate how a knight moves If it takes 5 minutes to explain how a knight moves I think that person might not be Google material...
Google Interview Questions Deconstructed: The Knight’s Dialer
81–90 of 134 posts
Re: Google Interview Questions Deconstructed: The Knight’s Dialer
#82Earlier quoted context omitted.
This isn't a brain teaser, they actually correlate with on-the-job performance. When I worked at Google I looked up their internal reports on the subject and they showed that the score people got on these algorithm interviews correlated pretty well with their performance ratings after they got hired. In other words the group of people who got hired even though they had low scores performed significantly worse than th…
Maybe for Google-type/scale problems, but I'd say that the engineers I've worked with and hired for "normal" software jobs (e.g. here's a boring business domain, make it CRUD, make an API, make a UI for it) - there is almost an inverse correlation between being a CS/algorithm genius and being happy/successful at these everyday roles. From observation, many super sharp CS people very frequently want to write systems f…
Re: Google Interview Questions Deconstructed: The Knight’s Dialer
#83Earlier quoted context omitted.
Why would managers get employees' scores on random interview questions? Why would that affect project assignments months or years later? Why would we assume folks at Google in charge of creating effective interview processes wouldn't be capable of the most basic statistical analysis, by making sure they had a large enough sample, enough performance reviews for each employee, etc?
Because it is common for managers to be very engaged in the hiring process.
Re: Google Interview Questions Deconstructed: The Knight’s Dialer
#84Earlier quoted context omitted.
I agree that this isn't a brainteaser. The problem itself appears to be nonsensical with no real world value but as long as it is a well defined problem with a concrete solution then it should be fine. Ideally the interviewer should be looking for how you approach the problem and what you do to obtain an answer (whether they do or not is a separate topic) Granted, the 747 question also technically does have a concret…
Now I'm just thinking about how I would survive in a giant blender. Whether or not someone is about to add ice seems like a pretty important variable.
Re: Google Interview Questions Deconstructed: The Knight’s Dialer
#85Counting the number of paths when you have loops is easiest using a connection matrix and matrix exponentiation. Then you get log(n) time.
If you then diagonalize that connection matrix, you can get constant time (though you might have to make a special case for starting at the `5` key): "Diagonalization can be used to efficiently compute the powers of a matrix..." [1] [1] https://en.wikipedia.org/wiki/Diagonalizable_matrix#Applicat...
Also given that this is a discrete problem moving to floating points like you'd likely have to do when you diagonalize could easily lead to errors in the final answer.
Re: Google Interview Questions Deconstructed: The Knight’s Dialer
#86Re: Google Interview Questions Deconstructed: The Knight’s Dialer
#87Re: Google Interview Questions Deconstructed: The Knight’s Dialer
#88Random question but why is it called memoization instead of just caching? Isn't it the same thing? For some reason I never ran across the word memoization when I was doing CS a number of years ago.
Re: Google Interview Questions Deconstructed: The Knight’s Dialer
#89Earlier quoted context omitted.
Google does still use questions like this, it's just that they're relevant to programming/system design. So a question might be "How many servers are needed to run Gmail?" The reason the 747 question is bad is because it has little to do with programming and a lot to do with how much you happen to know about planes and ping pong balls and how to estimate volumes of irregularly shaped objects, none of which have much…
They don't (for SWEs), or at least you aren't supposed to. I think for PMs there may be questions more in this realm, but for SWEs, your questions should all be programming problems.
Similar but smaller questions along these lines are given to more junior candidates often enough too, as one of multiple questions.
Re: Google Interview Questions Deconstructed: The Knight’s Dialer
#90Random question but why is it called memoization instead of just caching? Isn't it the same thing? For some reason I never ran across the word memoization when I was doing CS a number of years ago.
Probably been used in CS longer than “caching”.