Software Engineer Graduate Interview Questions

4,496 software engineer graduate interview questions shared by candidates

You are given a 2D array which is populated with numbers. The 2D array simulates a map where a country is defined by a number who's neighbors are different numbers to them. if the number neighboring are the same then the count as one complete country. Write an Algorithm which will go through a 2d matrix and count the number of countries
avatar

Graduate Software Developer

Interviewed at Amazon

3.5
Apr 21, 2015

You are given a 2D array which is populated with numbers. The 2D array simulates a map where a country is defined by a number who's neighbors are different numbers to them. if the number neighboring are the same then the count as one complete country. Write an Algorithm which will go through a 2d matrix and count the number of countries

Viewing 1881 - 1890 interview questions

Glassdoor has 4,496 interview questions and reports from Software engineer graduate interviews. Prepare for your interview. Get hired. Love your job.