IBM String Coding Interview Questions
31 string coding problems are tagged as asked at IBM in interviews and online assessments reported by candidates. By difficulty they split into 14 basic, 13 intermediate and 4 advanced. The topics they most often combine with are Stack, Counting, Hash Table, 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 IBM 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)
- First Unique Character (Basic)
- Longest Palindromic Substring (Intermediate)
- Valid Anagram (Basic)
- Reverse Words in a String (Basic)
- Roman to Integer (Intermediate)
- Add Binary (Basic)
- Edit Distance (Advanced)
- Longest Valid Parentheses (Advanced)
- Sort Characters by Frequency (Intermediate)
- Count Palindromic Substrings (Intermediate)
- Minimum Window Substring (Advanced)
- String Compression (Basic)
- Word Search (Intermediate)
- Count Binary Substrings (Basic)
- Simplify Path (Intermediate)
- Exclusive Time of Functions (Intermediate)
- Minimum Add to Make Parentheses Valid (Basic)
- Reorganize String (Intermediate)
- Valid Palindrome With One Deletion (Basic)
- Backspace String Compare (Basic)
- Letter Combinations of a Phone Number (Intermediate)
- Count Pairs of Similar Strings (Basic)
- Flip String to Monotone Increasing (Intermediate)
- Merge Strings Alternately (Basic)
- Last Substring in Lexicographical Order (Advanced)
- Parentheses String Can Be Valid (Intermediate)
- Removing Stars From a String (Basic)
- Minimum Swaps to Make the String Balanced (Intermediate)
- Fizz Buzz (Basic)
Related
- IBM coding interview questions
- String problems
- IBM basic problems
- IBM intermediate problems
- IBM advanced problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the IBM 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 IBM 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.