Interview Intel · IBM

IBM coding interview
questions, leaked.

115 problems reported across recent IBM interviews. Top patterns: array, string, hash table. The list below is what most candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

IBM's assessment leans heavy on arrays. Out of 115 problems, 77 test array manipulation, and they own 28 string problems too. You're looking at 73 medium-difficulty questions, so this isn't a warm-up round. The good news: two-pointers, hash-tables, and sorting appear constantly, which means pattern repetition. The bad news: you'll see every variant of array-slicing, rotation, and range logic they can throw at you. If you blank mid-assessment, StealthCoder sits invisible on your screen and surfaces a working solution in seconds, so you can stay calm and keep moving.

Tracked problems
115
Easy
33/ 29%
Medium
73/ 63%
Hard
9/ 8%

Top problems at IBM

leaked_problems.csv50 rows
#ProblemDiffFrequency
01Find the Smallest Divisor Given a ThresholdMEDIUM
0.0
02Exclusive Time of FunctionsMEDIUM
100.0
03Integer to RomanMEDIUM
92.9
04Fizz BuzzEASY
89.9
05Roman to IntegerEASY
88.8
06Best Time to Buy and Sell StockEASY
87.7
07Count Ways to Group Overlapping RangesMEDIUM
85.3
08Two SumEASY
85.3
09Meeting Rooms IIMEDIUM
82.6
10Rotate ImageMEDIUM
81.1
11Minimum Absolute DifferenceEASY
81.1
12Minimum Operations to Make All Array Elements EqualMEDIUM
81.1
13Number of Divisible Triplet SumsMEDIUM
81.1
14Minimum Operations to Make Median of Array Equal to KMEDIUM
75.9
15The kth Factor of nMEDIUM
73.9
16Activity ParticipantsMEDIUM
73.9
17Maximum Profitable Triplets With Increasing Prices IMEDIUM
73.9
18Find The First Player to win K Games in a RowMEDIUM
73.9
19Count Vowel Strings in RangesMEDIUM
71.7
20Merge IntervalsMEDIUM
71.7
21Longest Substring Without Repeating CharactersMEDIUM
71.7
22Count the Number of Incremovable Subarrays IIHARD
71.7
23String CompressionMEDIUM
71.7
24Maximum Profitable Triplets With Increasing Prices IIHARD
71.7
25Sort the Students by Their Kth ScoreMEDIUM
71.7
26Find the Array Concatenation ValueEASY
71.7
27Average Value of Even Numbers That Are Divisible by ThreeEASY
71.7
28Minimum Levels to Gain More PointsMEDIUM
71.7
29Find Products of Elements of Big ArrayHARD
71.7
30Type of TriangleEASY
71.7
31Find Occurrences of an Element in an ArrayMEDIUM
71.7
32Minimum Length of String After OperationsMEDIUM
71.7
33Taking Maximum Energy From the Mystic DungeonMEDIUM
71.7
34Maximum Units on a TruckEASY
69.3
35Longest Common PrefixEASY
69.3
36Valid ParenthesesEASY
66.5
37Get Equal Substrings Within BudgetMEDIUM
66.5
38Count Binary SubstringsEASY
66.5
39Letter Combinations of a Phone NumberMEDIUM
63.5
40Numbers With Repeated DigitsHARD
63.5
41Maximum Sum of Distinct Subarrays With Length KMEDIUM
63.5
42Minimum Suffix FlipsMEDIUM
63.5
43Longest Consecutive SequenceMEDIUM
59.9
44Longest Palindromic SubstringMEDIUM
59.9
45Merge Sorted ArrayEASY
59.9
46Lexicographically Smallest String After Substring OperationMEDIUM
59.9
47Maximum SubarrayMEDIUM
55.7
48Shortest and Lexicographically Smallest Beautiful StringMEDIUM
55.7
49Spiral MatrixMEDIUM
55.7
50Number of Divisible SubstringsMEDIUM
55.7

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual IBM OA. The proctor cannot see it. Screen share cannot detect it. Built because the OA filter rejects engineers who'd pass the on-site. That's a broken filter. This is the workaround.

Get StealthCoder
Topic distribution
What this means

Start with arrays first. They dominate the problem set, and nearly every medium involves some combination of sorting, binary search, or two-pointer logic. String and hash-table problems cluster tightly around the medium tier, often paired with math questions like Integer to Roman and Roman to Integer. Dynamic programming and greedy appear in 16 and 15 problems respectively, but they're often secondary to array mechanics. Prefix-sum and sliding-window show up in range and grouping problems, so drill those patterns together. Only 9 problems touch hard difficulty, so don't waste time on extreme edge cases. The real lever is nailing the medium array problems fast and clean. When you're live on their assessment, if a sorting-plus-two-pointer hybrid hits you and you're unsure of the merge pattern, StealthCoder handles it while you keep your composure.

Companies with similar patterns

If you prepped for IBM, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass IBM.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Built because the OA filter rejects engineers who'd pass the on-site. That's a broken filter. This is the workaround. Works on HackerRank, CodeSignal, CoderPad, and Karat.

IBM interview FAQ

How many array problems should I solve before the IBM assessment?+

Array problems make up two-thirds of their 115-problem dataset. Aim to solve 20 to 30 core array patterns: rotations, subarrays, ranges, and merges. Focus on medium-difficulty first, since 73 out of 115 problems sit there.

Should I study dynamic programming or greedy first for IBM?+

Neither needs to be first. DP and greedy each appear in 15 to 16 problems, but they're often secondary mechanics layered on top of arrays or sorting. Nail arrays and two-pointers first. DP and greedy will feel natural afterward.

What's the hardest topic I'll face on IBM's assessment?+

Only 9 problems are marked hard, so hard difficulty is not the real bottleneck. The bottleneck is speed and accuracy on medium-difficulty array and string problems. Master those, and you'll run out of time before you hit a truly hard problem.

Do I need to memorize hash-table tricks for IBM?+

Hash-tables appear in 25 problems, many paired with string and math topics like Integer to Roman. You don't need advanced tricks. Know map lookups, frequency counts, and one-pass solutions. Most IBM hash-table problems are straightforward.

How much time should I spend on binary search before the assessment?+

Binary search shows up in 14 problems, often combined with arrays or sorting. It's not a primary focus, but problems like Find the Smallest Divisor make it a useful backup pattern. Spend one to two sessions on it after nailing two-pointers.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and IBM. StealthCoder is not affiliated with IBM.