Google interview questions

google logo
google
June 6, 20252 reads

Summary

I recently had an onsite coding round at Google where I was presented with a matrix-based problem to count enclosed 'lakes' formed by zeros within land areas (ones). My verdict was 'No Hire' (NH), as I noted forgetting to handle edge cases in my solution.

Full Experience

I recently came across a Google coding round onsite. My verdict was : NH

Interview Questions (1)

Q1
Count Enclosed Lakes in Binary Matrix
Data Structures & Algorithms

Find number of lakes in atlantic pacific ocean Given row,col find the number of lakes for given row,col. Matrix is reprenated by 1' and 0's. => 1 being land 0 being water. for land 1's find the number of 0's covered by 1's.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!