IBM Intermediate Coding Interview Questions
53 intermediate coding problems are tagged as asked at IBM in interviews and online assessments reported by candidates. By difficulty they split into 0 basic, 53 intermediate and 0 advanced. The topics they most often combine with are Array, String, Sliding Window, Sorting.
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
- Maximum Subarray (Intermediate)
- Longest Substring Without Repeats (Intermediate)
- Product of Array Except Self (Intermediate)
- Rotate Array (Intermediate)
- Coin Change (Intermediate)
- Kth Largest Element (Intermediate)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Happy Number (Intermediate)
- Integer to Roman (Intermediate)
- Roman to Integer (Intermediate)
- Minimum in a Rotated Sorted Array (Intermediate)
- Merge Intervals (Intermediate)
- Sort Characters by Frequency (Intermediate)
- Maximum Units on a Truck (Intermediate)
- Last Stone Weight (Intermediate)
- Longest Mountain Subarray (Intermediate)
- Arithmetic Slices (Intermediate)
- Count Palindromic Substrings (Intermediate)
- Maximum Product Subarray (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Next Permutation (Intermediate)
- Gas Station (Intermediate)
- Container With Most Water (Intermediate)
- Validate Binary Search Tree (Intermediate)
- Rotting Oranges (Intermediate)
- Course Schedule Order (Intermediate)
- Operations to Make Network Connected (Intermediate)
- Word Search (Intermediate)
- Simplify Path (Intermediate)
- Asteroid Collision (Intermediate)
- Exclusive Time of Functions (Intermediate)
- Reorganize String (Intermediate)
- Single-Threaded CPU (Intermediate)
- Jump Game II (Intermediate)
- Rotate Image (Intermediate)
- 3Sum Triplets (Intermediate)
- Boats to Save People (Intermediate)
- Grumpy Bookstore Owner (Intermediate)
- Smallest Divisor Given a Threshold (Intermediate)
- Heaters (Intermediate)
- Gray Code (Intermediate)
- Letter Combinations of a Phone Number (Intermediate)
- Combinations (Intermediate)
- Count Number of Teams (Intermediate)
- Flip String to Monotone Increasing (Intermediate)
- Count Ways to Group Overlapping Ranges (Intermediate)
- Parentheses String Can Be Valid (Intermediate)
- Sum of Absolute Differences in a Sorted Array (Intermediate)
- Minimum Swaps to Make the String Balanced (Intermediate)
- Minimize XOR (Intermediate)
Related
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.