Grad Interview Questions

7,381 grad interview questions shared by candidates

Given a 2D array, where there are 0s and 1s (1 representing island) count how many islands are there, for example, [[0,1,1], [1,0,0], [0,1,0]] there are 3 islands there (because in the first row 2 of 1s are connected so they created a bigger island.
avatar

Software Engineer (New Grad)

Interviewed at Yelp

3.2
Feb 21, 2017

Given a 2D array, where there are 0s and 1s (1 representing island) count how many islands are there, for example, [[0,1,1], [1,0,0], [0,1,0]] there are 3 islands there (because in the first row 2 of 1s are connected so they created a bigger island.

Viewing 111 - 120 interview questions

Glassdoor has 7,381 interview questions and reports from Grad interviews. Prepare for your interview. Get hired. Love your job.