Google Interview experience
2 rounds over 5 weeks. No offer, meh experience.
The process kicked off with an HR interview. After clearing that, they sent me prep materials for the technical interview and let me choose a date that worked for me.
This round focused on a problem involving sparse matrices, but the interviewer didn't seem very engaged and wasn't really interested in discussing my thought process or decisions while solving the problem.
Problem:
How would you implement a matrix where most of the elements are zero, with only a few non-zero values?
Solution:
You need three lists to set up a sparse matrix using the Coordinate List (COO) format: one for row indices, one for column indices, and one for the non-zero values. When you add a value, you append the row and column indices along with the value to these lists. To retrieve a value, you search through the lists to find the matching row and column. This approach may not be ideal for very large matrices or frequent updates, the Compressed Sparse Row (CSR) format might be more efficient for those cases.
Know someone interviewing at Google? Pass it on.
Same company, different candidates.
Share yours while it’s fresh. It takes five minutes, it’s anonymous, and it will help future candidates.