Google
More Experiences
Google interview questions
June 6, 2025 • 2 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.