Salesforce
Salesforce

Member of Technical Staff

Rotting Oranges

Medium
ROUND 1 (DSA)CodingCandidate Selected

You have a grid of oranges where some are rotten and some are fresh. Every minute, any fresh orange that is adjacent to a rotten orange becomes rotten. Given the grid, return the minimum number of minutes that must elapse until no cell has a fresh orange. If it is impossible, return -1. Example: Input: grid = [[2,1,1],[1,1,0],[0,1,1]] Output: 4.

This question was asked in

Salesforce Member of Technical Staff Interview Experience

The Salesforce interview process consisted of three rounds and presented a challenging set of technical questions. Candidates can expect a mixture of coding questions on data structures and algorithms in the first round, followed by a low-level design focus in the second round, and concluding with behavioral and system design discussions in the final round. Overall, the interview experience at Salesforce is thorough, testing both technical and interpersonal skills.

AI Powered

Share Your Story

Share your interview in your own words — our AI handles the rest. Hardly takes 2 minutes.

Take Mock Interview

Prepare better with expert feedback

Want to Connect 1:1?

Connect with me 1:1 for career guidance, resume reviews, interviews, and more.

Show Your Love!

Connect with us on social media