•CODING INTERVIEW QUESTIONS
Salesforce Medium Coding Interview Questions (DSA)
32 medium DSA problems sourced from real Salesforce interviews
Salesforce Medium Coding Interview Questions
| Problem | Difficulty | Tags |
|---|---|---|
| Sum of Matrix After Queries | Medium | ArrayHash Table |
| Minimum Operations to Reduce an Integer to 0 | Medium | Dynamic ProgrammingGreedyBit Manipulation |
| Time Needed to Rearrange a Binary String | Medium | StringDynamic ProgrammingSimulation |
| String Compression | Medium | Two PointersString |
| Maximum Team Size with Overlapping Intervals | Medium | |
| Medium | ArrayHash TablePrefix Sum | |
| Medium | ArraySortingQuicksort | |
| Minimum Removals to Balance Array | Medium | ArrayBinary SearchSliding Window |
| Fruit Into Baskets | Medium | ArrayHash TableSliding Window |
| Medium | Depth-First SearchBreadth-First SearchGraph Theory | |
| Asteroid Collision | Medium | ArrayStackSimulation |
| Amount of Time for Binary Tree to Be Infected | Medium | Hash TableTreeDepth-First Search |
| Medium | ArrayTwo PointersGreedy | |
| Maximum Palindromes After Operations | Medium | ArrayHash TableString |
| Generate Parentheses | Medium | StringDynamic ProgrammingBacktracking |
| Remove Stones to Minimize the Total | Medium | ArrayGreedyHeap (Priority Queue) |
| Angle Between Hands of a Clock | Medium | Math |
| Remove All Adjacent Duplicates in String II | Medium | StringStack |
| Palindrome Partitioning | Medium | StringDynamic ProgrammingBacktracking |
| Medium | ArrayBreadth-First SearchMatrix | |
| Jump Game II | Medium | ArrayDynamic ProgrammingGreedy |
| Medium | Hash TableStringSliding Window | |
| Medium | Two PointersStringDynamic Programming | |
| Medium | ArrayTwo PointersGreedy | |
| Integer to Roman | Medium | Hash TableMathString |
| Medium | ArrayTwo PointersSorting | |
| Medium | ArrayBinary Search | |
| Combination Sum | Medium | ArrayBacktracking |
| Medium | ArrayHash TableString | |
| Medium | TreeDepth-First SearchBinary Search Tree | |
| Medium | Hash TableLinked ListDesign | |
| Min Stack | Medium | StackDesign |
Top Data Structures & Patterns — Medium
Array
16 (50%)
String
10 (31%)
Hash Table
9 (28%)
Dynamic Programming
6 (19%)
Greedy
6 (19%)
Sorting
6 (19%)
Two Pointers
5 (16%)
Sliding Window
3 (9%)
Frequently Asked Questions
What medium Salesforce coding questions are most common?
InterviewSkool has 32 medium Salesforce coding questions. Focus on the top 10 to 15 most common problems for the best ROI.
How many medium questions does Salesforce have?
Salesforce has 32 medium coding questions out of 50 total. Most interviews focus on Medium problems, so this is the most important difficulty to prepare for.
Are these Salesforce medium questions free?
Yes. All 32 medium Salesforce coding questions are free to browse. No sign-up required. Filter by topic and click any problem to open it on LeetCode.
Practice with a Mock Interview
Simulate real Salesforce interview pressure with our AI interviewer.
Start Mock Interview →