Google Interview Question
1,225 Interview Reviews |
Back to all Google Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Senior Software Engineer at Google:
We have m slots for ads and n ads, each ads will have different revenue on differnet slot, design an algorithm to find out the best fit (find m ads in n ads and order them so that they can make max money, white board coding) .
Helpful Question?
Yes |
No
Inappropriate?
4 of 5 people found this helpful
by v:
And, by the way, trying to use textbook algorithms for real life assignment problems would lead to the results that are mediocre at best. Commercial-strength packages have lots of optimizations for special cases of input data. For instance, the Linux qsort command uses 3 different sorting algorithms depending on the size of input data.