Google interview questions
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)
Count Enclosed Lakes in Binary Matrix
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.