Salesforce Intermediate Coding Interview Questions
59 intermediate coding problems are tagged as asked at Salesforce in interviews and online assessments reported by candidates. By difficulty they split into 0 basic, 59 intermediate and 0 advanced. The topics they most often combine with are Array, String, Hash Table, Sliding Window.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Salesforce tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Maximum Subarray (Intermediate)
- Longest Substring Without Repeats (Intermediate)
- Product of Array Except Self (Intermediate)
- Coin Change (Intermediate)
- Kth Largest Element (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Integer to Roman (Intermediate)
- Roman to Integer (Intermediate)
- Merge Intervals (Intermediate)
- Sort Characters by Frequency (Intermediate)
- Maximum Units on a Truck (Intermediate)
- Last Stone Weight (Intermediate)
- Permutation Inside a String (Intermediate)
- Subarrays With Product Less Than K (Intermediate)
- Zigzag Conversion (Intermediate)
- Count Palindromic Substrings (Intermediate)
- Find K Closest Elements (Intermediate)
- Minimum Edge Reversals Per Node (Intermediate)
- Shortest Bridge Between Two Islands (Intermediate)
- Maximum Product Subarray (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Coin Change Ways (Intermediate)
- Partition Equal Subset Sum (Intermediate)
- House Robber II (Intermediate)
- Gas Station (Intermediate)
- Container With Most Water (Intermediate)
- Top K Frequent Values (Intermediate)
- Course Schedule Feasible (Intermediate)
- Running Kth Largest (Intermediate)
- Tree Vertical Traversal (Intermediate)
- LFU Cache Operations (Intermediate)
- Median of Sliding Windows (Intermediate)
- Validate Binary Search Tree (Intermediate)
- Find Leaves of Binary Tree (Intermediate)
- Rotting Oranges (Intermediate)
- Course Schedule Order (Intermediate)
- Operations to Make Network Connected (Intermediate)
- Maximal Square (Intermediate)
- Delete and Earn (Intermediate)
- Word Search (Intermediate)
- Maximum Occurrences of a Substring (Intermediate)
- Asteroid Collision (Intermediate)
- Exclusive Time of Functions (Intermediate)
- K Closest Points to Origin (Intermediate)
- Reorganize String (Intermediate)
- Least Unique Integers After K Removals (Intermediate)
- Game of Life Step (Intermediate)
- 3Sum Triplets (Intermediate)
- Time Based Key-Value Store (Intermediate)
- Combination Sum (Intermediate)
- Combination Sum II (Intermediate)
- Path With Maximum Gold (Intermediate)
- Masking Personal Information (Intermediate)
- Count the Number of Fair Pairs (Intermediate)
- Remove All Adjacent Duplicates in String II (Intermediate)
- Remove Stones to Minimize the Total (Intermediate)
- Running Median of Stream (Intermediate)
Related
Frequently asked questions
How should I use the Salesforce problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact Salesforce interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.