Fullstack Developer Interview Questions

2,857 fullstack developer interview questions shared by candidates

Given a matrix of dimension M * N, where each cell in the matrix can have values 0, 1 or 2 which has the following meaning: 0: Empty cell 1: Cells have fresh oranges 2: Cells have rotten oranges The task is to find the minimum time required so that all the oranges become rotten. A rotten orange can rot other fresh oranges which are its neighbors (up, down, left, and right). Note : If it is impossible to rot every orange then simply return -1.
avatar

Mid FullStack developer

Interviewed at Wix

4.1
Feb 23, 2025

Given a matrix of dimension M * N, where each cell in the matrix can have values 0, 1 or 2 which has the following meaning: 0: Empty cell 1: Cells have fresh oranges 2: Cells have rotten oranges The task is to find the minimum time required so that all the oranges become rotten. A rotten orange can rot other fresh oranges which are its neighbors (up, down, left, and right). Note : If it is impossible to rot every orange then simply return -1.

Viewing 881 - 890 interview questions

Glassdoor has 2,857 interview questions and reports from Fullstack developer interviews. Prepare for your interview. Get hired. Love your job.