Google interview questions
- Posted
- 6 Jun 2025
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.
How it went
I recently came across a Google coding round onsite. My verdict was : NH
Questions asked (1)
- 01
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.