Explore questions associated with Salesforce. Review the source details, then use the workspace for code, notes, and diagrams.
83 questions in the library. A source association does not guarantee a future interview question.
Behavioral and leadership · Coding · Machine learning · Object-oriented design · System design
Loading questions…
Practice system design interviews out loud with an AI interviewer, a shared whiteboard and a scorecard for your level.
© 2026 SysRound. SysRound is an AI practice tool. The AI interviewer and the AI feedback can be wrong. Use it for your own practice, not to hire people.
Showing 76–83
Find all root-to-leaf paths in a binary tree whose node values sum to targetSum, returning each path as a list of values. This is solved…
Companies: Salesforce, Amazon, Meta, Microsoft
Backtracking · Binary Tree · Depth-First Search · Tree
Partition the array into k contiguous nonempty subarrays where each bag's cost is the sum of its endpoint weights, so the total score equals weights[0]+weights[n-1]…
Companies: Salesforce
Array · Greedy · Heap (Priority Queue) · Sorting
Given an array of pile sizes and k operations each removing floor(pile/2) stones from a chosen pile (possibly the same pile multiple times), minimize the…
Companies: Salesforce
Array · Greedy · Heap (Priority Queue)
Given an m×n grid with empty cells, fresh (1) and rotten (2) oranges, compute the minimum minutes until all fresh oranges become rotten as rot…
Companies: Salesforce, Amazon, Anduril, Flipkart +3
Array · Breadth-First Search · Matrix
Compress an array of characters in-place by replacing each run of consecutive identical characters with the character followed by its run length (omit the length…
Companies: Salesforce, Apple, Goldman Sachs, Morgan Stanley +1
String · Two Pointers
Count the number of contiguous, non-empty subarrays whose elements sum to k. Because nums can include negatives (so two-pointer sliding window doesn't work), use cumulative…
Companies: Salesforce, Amazon, Apple, Bloomberg +3
Array · Hash Table · Prefix Sum
Given an n×n zero matrix and queries that set entire rows or columns (overwriting previous values), compute the final matrix sum. Because later updates override…
Companies: Salesforce
Array · Hash Table