← IBM roles

Interview question tracker

IBM Coding Interview Questions — All time

Practice 158 coding questions from IBM company-tagged LeetCode lists across all available reporting periods. Explore reported interview questions and track your progress.

Company-wide data from Fahad7177-jeh/leetcode-company-wise-questions; see its AGPL-3.0 license. All-time questions also use dataengineervishal/leetcode-companywise-questions (MIT license).

Reporting periods reflect source data, not verified interview dates. Questions can recur; inclusion does not guarantee they will appear in your interview.

Updated weekly · Latest source check: ⓘLatest successful check of the sources used by this company. A check does not necessarily mean the questions changed.

One question at a time.

Top questions 158

DoneQuestionLeetCode
Exclusive Time of FunctionsSolve
Fizz BuzzSolve
Best Time to Buy and Sell StockSolve
Count Ways to Group Overlapping RangesSolve
Integer to RomanSolve
Merge IntervalsSolve
Minimum Operations to Make All Array Elements EqualSolve
Roman to IntegerSolve
Two SumSolve
Activity ParticipantsSolve
Average Value of Even Numbers That Are Divisible by ThreeSolve
Count the Number of Incremovable Subarrays IISolve
Count Vowel Strings in RangesSolve
Find Occurrences of an Element in an ArraySolve
Find Products of Elements of Big ArraySolve
Find the Array Concatenation ValueSolve
Find The First Player to win K Games in a RowSolve
Longest Mountain in ArraySolve
Longest Substring Without Repeating CharactersSolve
Maximum Profitable Triplets With Increasing Prices ISolve
Maximum Profitable Triplets With Increasing Prices IISolve
Minimum Absolute DifferenceSolve
Minimum Length of String After OperationsSolve
Minimum Levels to Gain More PointsSolve
Minimum Moves to Equal Array ElementsSolve
Minimum Operations to Make Columns Strictly IncreasingSolve
Minimum Operations to Make Median of Array Equal to KSolve
Number of Divisible Triplet SumsSolve
Rotate ImageSolve
Sort the Students by Their Kth ScoreSolve
Taking Maximum Energy From the Mystic DungeonSolve
Type of TriangleSolve
Valid ParenthesesSolve
Count Binary SubstringsSolve
Find Pivot IndexSolve
Letter Combinations of a Phone NumberSolve
Lexicographically Smallest String After Substring OperationSolve
Longest Palindromic SubstringSolve
Maximum Sum of Distinct Subarrays With Length KSolve
Maximum Units on a TruckSolve
Number of Operations to Make Network ConnectedSolve
Numbers With Repeated DigitsSolve
Spiral MatrixSolve
String CompressionSolve
Water BottlesSolve
3SumSolve
Backspace String CompareSolve
Climbing StairsSolve
Count Pairs Of Similar StringsSolve
Find the Smallest Divisor Given a ThresholdSolve
Group AnagramsSolve
Height CheckerSolve
Largest Number After Digit Swaps by ParitySolve
Longest Common PrefixSolve
Longest Consecutive SequenceSolve
Max Consecutive Ones IIISolve
Maximum SubarraySolve
Median of Two Sorted ArraysSolve
Meeting Rooms IISolve
Merge Strings AlternatelySolve
Minimum String Length After Removing SubstringsSolve
Minimum Swaps to Group All 1's Together IISolve
Missing NumberSolve
Number of Divisible SubstringsSolve
Number of IslandsSolve
Product of Array Except SelfSolve
Report Spam MessageSolve
Shortest and Lexicographically Smallest Beautiful StringSolve
Single-Threaded CPUSolve
Smallest Missing Non-negative Integer After OperationsSolve
Subarray Product Less Than KSolve
Subarray Sum Equals KSolve
The Employee That Worked on the Longest TaskSolve
Valid AnagramSolve
Validate Binary Search TreeSolve
3Sum SmallerSolve
Add BinarySolve
Alert Using Same Key-Card Three or More Times in a One Hour PeriodSolve
Asteroid CollisionSolve
Big CountriesSolve
CandySolve
Check if Array Is Sorted and RotatedSolve
Container With Most WaterSolve
Contains DuplicateSolve
Count Number of TeamsSolve
Course ScheduleSolve
Course Schedule IISolve
Degree of an ArraySolve
Divide Intervals Into Minimum Number of GroupsSolve
Employees Earning More Than Their ManagersSolve
Find All Possible Stable Binary Arrays IISolve
Find Longest CallsSolve
Find Minimum in Rotated Sorted ArraySolve
Find the Duplicate NumberSolve
Find the Index of the First Occurrence in a StringSolve
First Unique Character in a StringSolve
Flip String to Monotone IncreasingSolve
Flipping an ImageSolve
Gas StationSolve
Generate ParenthesesSolve
Get Equal Substrings Within BudgetSolve
Gray CodeSolve
Grumpy Bookstore OwnerSolve
HeatersSolve
Intersection of Two ArraysSolve
Intersection of Two Arrays IISolve
Jump Game IISolve
Kth Missing Positive NumberSolve
Last Substring in Lexicographical OrderSolve
Least Number of Unique Integers after K RemovalsSolve
Linked List CycleSolve
LRU CacheSolve
Majority ElementSolve
Make Lexicographically Smallest Array by Swapping ElementsSolve
Maximum Value at a Given Index in a Bounded ArraySolve
Merge k Sorted ListsSolve
Merge Sorted ArraySolve
Middle of the Linked ListSolve
Min StackSolve
Minimum Add to Make Parentheses ValidSolve
Minimum Bit Flips to Convert NumberSolve
Minimum Cost to Connect SticksSolve
Minimum Number of Changes to Make Binary String BeautifulSolve
Minimum Number of Flips to Make the Binary String AlternatingSolve
Minimum Number of Swaps to Make the String BalancedSolve
Minimum Operations to Reduce an Integer to 0Solve
Minimum Suffix FlipsSolve
Minimum Time to Type Word Using Special TypewriterSolve
Minimum Value to Get Positive Step by Step SumSolve
Minimum Window SubstringSolve
Move ZeroesSolve
N-QueensSolve
Next PermutationSolve
Odd String DifferenceSolve
Online Stock SpanSolve
Pacific Atlantic Water FlowSolve
Palindrome NumberSolve
Plus OneSolve
Reach a NumberSolve
Rearrange Array to Maximize Prefix ScoreSolve
Remove All Occurrences of a SubstringSolve
Remove Colored Pieces if Both Neighbors are the Same ColorSolve
Remove Duplicates from Sorted ArraySolve
Remove K DigitsSolve
Removing Stars From a StringSolve
Reorganize StringSolve
Reverse IntegerSolve
Reverse Linked ListSolve
Reverse Words in a StringSolve
Rotate ArraySolve
Search in Rotated Sorted ArraySolve
Search Insert PositionSolve
Shuffle the ArraySolve
Sliding Window MaximumSolve
Sort Characters By FrequencySolve
SubsetsSolve
The kth Factor of nSolve
Word SearchSolve