Software Engineer • Senior-Level
Software Engineer • Senior-Level
High QualityPractice Other Questions that Salesforce Asked
Continue with targeted prep from Salesforce's coding question bank.
Interview Summary
This Salesforce onsite covered two algorithm rounds and two design discussions. The loop moved from graph ordering and matrix optimization into synchronized media playback and third-party integration architecture. None of the individual topics felt unusual, but the breadth required switching quickly between implementation details and system-level trade-offs.
Interview Details
Interview Questions Details
-
Coding Round 1 — Dependency Resolution: The first coding problem involved a collection of tasks with prerequisite relationships and asked for one valid processing order. The natural approach was to model the input as a directed graph, track the remaining dependency count for each node, and repeatedly process nodes that had no unresolved prerequisites.
- Graph Discussion: The implementation also needed to detect when no valid ordering existed because of a cycle. A queue-based topological sort handles this by comparing the number of processed nodes against the total number of nodes. DFS with visitation states was another valid approach, but the breadth-first version made the resulting order and cycle check straightforward.
-
Coding Round 2 — Largest Valid Region in a Binary Grid: The second coding question asked for the largest rectangular region satisfying a binary condition inside a matrix. The brute-force approach was too expensive, so the key was to transform each row into a running height profile and solve a largest-area histogram problem for every row.
Unlock Full Details
Create a free account to unlock this interview experience report.