Jr Software Engineer Interview Questions

7,254 jr software engineer interview questions shared by candidates

you are given NxN boolean array of ships location, where "true" cell indicates a ship or a part of a ship is in this cell. find the number of ships in the map. *Note: 2 different ships or part of ships cant be adjancent example : [ 0 0 0 0 0 ] [ 1 0 0 1 1 ] [ 1 0 0 0 0 ] [ 1 0 1 0 0 ] [ 0 0 1 0 0 ] ==> 3 ships
avatar

Junior Software Engineer

Interviewed at Microsoft

4
Feb 18, 2021

you are given NxN boolean array of ships location, where "true" cell indicates a ship or a part of a ship is in this cell. find the number of ships in the map. *Note: 2 different ships or part of ships cant be adjancent example : [ 0 0 0 0 0 ] [ 1 0 0 1 1 ] [ 1 0 0 0 0 ] [ 1 0 1 0 0 ] [ 0 0 1 0 0 ] ==> 3 ships

Viewing 4841 - 4850 interview questions

Glassdoor has 7,254 interview questions and reports from Jr software engineer interviews. Prepare for your interview. Get hired. Love your job.