Most common phone interview question at Google
crunchskills.com
Most common phone interview question at Google
1–10 of 24 posts
Re: Most common phone interview question at Google
#2Is this right? It's a quadratic not an order of magnitude difference isn't it? And can you be an order of magnitude faster in an O notation expression anyway? Isn't an order of magnitude a coefficient? Don't we drop coefficients in O notation?
Re: Most common phone interview question at Google
#3Re: Most common phone interview question at Google
#4There's a single pass solution that's left as an exercise for the reader.
Re: Most common phone interview question at Google
#5I used to use this question before it became too common. Any reasonably-well-prepared candidate should be able come up with the O(N) solution and the follow-up is always good for a discussion: "what if the string is huge but the alphabet is small? Eg, a DNA sequence." There's a single pass solution that's left as an exercise for the reader.
Isn't that the point? You say it like it's a problem, but it screens for someone who's reasonably prepared, which is probably what Google wants to do because they really start looking for the super-world-tier people they employ, because I guess that takes more time and resources.
> There's a single pass solution that's left as an exercise for the reader.
Doesn't the blog post already include a single-pass solution that works on a small alphabet?
Re: Most common phone interview question at Google
#6Re: Most common phone interview question at Google
#7Re: Most common phone interview question at Google
#8> This means is a magnitude faster than the previous one! Is this right? It's a quadratic not an order of magnitude difference isn't it? And can you be an order of magnitude faster in an O notation expression anyway? Isn't an order of magnitude a coefficient? Don't we drop coefficients in O notation?
It's not right, indeed
Re: Most common phone interview question at Google
#9> This means is a magnitude faster than the previous one! Is this right? It's a quadratic not an order of magnitude difference isn't it? And can you be an order of magnitude faster in an O notation expression anyway? Isn't an order of magnitude a coefficient? Don't we drop coefficients in O notation?
Re: Most common phone interview question at Google
#10> This means is a magnitude faster than the previous one! Is this right? It's a quadratic not an order of magnitude difference isn't it? And can you be an order of magnitude faster in an O notation expression anyway? Isn't an order of magnitude a coefficient? Don't we drop coefficients in O notation?
I always use the precise meaning. It might be better for me to say "factor of ten" rather than "order of magnitude" if other people don't always use the precise meaning.