IBM Array Coding Interview Questions
56 array coding problems are tagged as asked at IBM in interviews and online assessments reported by candidates. By difficulty they split into 17 basic, 32 intermediate and 7 advanced. The topics they most often combine with are Sorting, Hash Table, Sliding Window, Math.
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
- Two Sum (Basic)
- Contains Duplicate (Basic)
- Best Time to Buy and Sell Stock (Basic)
- Maximum Subarray (Intermediate)
- Product of Array Except Self (Intermediate)
- Move Zeroes (Basic)
- Search Insert Position (Basic)
- Rotate Array (Intermediate)
- Coin Change (Intermediate)
- Kth Largest Element (Intermediate)
- Majority Element (Basic)
- Missing Number (Basic)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Trapping Rain Water (Advanced)
- Sort Colors (Basic)
- Max Consecutive Ones (Basic)
- Find Pivot Index (Basic)
- Valid Mountain Array (Basic)
- Plus One (Basic)
- Search in a Rotated Sorted Array (Advanced)
- Minimum in a Rotated Sorted Array (Intermediate)
- Merge Intervals (Intermediate)
- Candy Distribution (Advanced)
- Maximum Units on a Truck (Intermediate)
- Last Stone Weight (Intermediate)
- Kth Missing Positive Number (Basic)
- Longest Mountain Subarray (Intermediate)
- Arithmetic Slices (Intermediate)
- Maximum Product Subarray (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Next Permutation (Intermediate)
- Gas Station (Intermediate)
- Container With Most Water (Intermediate)
- LRU Cache Operations (Basic)
- Course Schedule Order (Intermediate)
- Operations to Make Network Connected (Intermediate)
- Min Stack Operations (Basic)
- Asteroid Collision (Intermediate)
- Single-Threaded CPU (Intermediate)
- Jump Game II (Intermediate)
- Minimum Increments to Form Target Array (Advanced)
- 3Sum Triplets (Intermediate)
- Boats to Save People (Intermediate)
- Grumpy Bookstore Owner (Intermediate)
- Sliding Window Maximum Values (Advanced)
- Smallest Divisor Given a Threshold (Intermediate)
- Median of Two Sorted Arrays (Advanced)
- Heaters (Intermediate)
- Count Number of Teams (Intermediate)
- Check if Array Is Sorted and Rotated (Basic)
- Count Ways to Group Overlapping Ranges (Intermediate)
- Height Checker (Basic)
- Sum of Absolute Differences in a Sorted Array (Intermediate)
- Meeting Rooms III (Advanced)
Related
- IBM coding interview questions
- Array 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.