Lead Software Engineer Interview Questions

3,730 lead software engineer interview questions shared by candidates

1) Given a 2d matrix of rotten(2), fresh(1) and empty(0) oranges, Find the minimum number of iterations in which all the oranges will rotten, in one iteration rotten orange will rotten all the adjacent 8 fresh oranges. If all the oranges cannot be rottened then return -1.
avatar

Lead Software Engineer

Interviewed at MakeMyTrip

4.1
Oct 23, 2022

1) Given a 2d matrix of rotten(2), fresh(1) and empty(0) oranges, Find the minimum number of iterations in which all the oranges will rotten, in one iteration rotten orange will rotten all the adjacent 8 fresh oranges. If all the oranges cannot be rottened then return -1.

Viewing 1171 - 1180 interview questions

Glassdoor has 3,730 interview questions and reports from Lead software engineer interviews. Prepare for your interview. Get hired. Love your job.