Salesforce String Coding Interview Questions
27 string coding problems are tagged as asked at Salesforce in interviews and online assessments reported by candidates. By difficulty they split into 5 basic, 15 intermediate and 7 advanced. The topics they most often combine with are Stack, Counting, Sliding Window, Two Pointers.
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
- Valid Parentheses (Basic)
- Longest Substring Without Repeats (Intermediate)
- Valid Palindrome (Basic)
- Longest Palindromic Substring (Intermediate)
- Roman to Integer (Intermediate)
- Longest Common Subsequence (Advanced)
- Sort Characters by Frequency (Intermediate)
- Valid Parenthesis With Wildcards (Advanced)
- Permutation Inside a String (Intermediate)
- Zigzag Conversion (Intermediate)
- Count Palindromic Substrings (Intermediate)
- Minimum Window Substring (Advanced)
- Reconstruct Itinerary (Advanced)
- Find Leaves of Binary Tree (Intermediate)
- Strange Printer (Advanced)
- String Compression (Basic)
- Word Search (Intermediate)
- Count Binary Substrings (Basic)
- Maximum Occurrences of a Substring (Intermediate)
- Basic Calculator (Advanced)
- Exclusive Time of Functions (Intermediate)
- Reorganize String (Intermediate)
- Backspace String Compare (Basic)
- Time Based Key-Value Store (Intermediate)
- Minimum Window Subsequence (Advanced)
- Masking Personal Information (Intermediate)
- Remove All Adjacent Duplicates in String II (Intermediate)
Related
- Salesforce coding interview questions
- String problems
- Salesforce basic problems
- Salesforce intermediate problems
- Salesforce advanced problems
- Company interview roadmaps
- All interview guides
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.