0 day streak

IBM coding interview questions

Big techService and IT India

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Fizz BuzzSimulation Easy Arrays & Hashing Nvidia, Spotify, Cisco Solve
Merge IntervalsBasics Medium Intervals Google, Amazon, Microsoft +45 Solve
Integer to RomanGreedy Medium Arrays & Hashing Oracle, Adobe, Swiggy +1 Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +50 Solve
Best Time to Buy and Sell StockState Machine DP - Stock Problems Easy Dynamic Programming Amazon, Microsoft, Apple +38 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +46 Solve
Roman to IntegerRight to Left Traversal Easy Arrays & Hashing Bloomberg, Oracle, JPMorgan Chase +8 Solve
Valid ParenthesesStack Basics Easy Stack Google, Microsoft, Meta +39 Solve
Longest Palindromic SubstringStrings Medium Dynamic Programming Amazon, Microsoft, Apple +22 Solve
Subarray Sum Equals KPrefix Sum Strategy Medium Arrays & Hashing Google, Microsoft, Meta +15 Solve
Group AnagramsHashing Medium Arrays & Hashing Amazon, Microsoft, Meta +31 Solve
Valid AnagramHashing Easy Arrays & Hashing Netflix, Databricks, Bloomberg +13 Solve
Rotate ImageIn-place Transformations Medium Arrays & Hashing Amazon, Apple, Nvidia +14 Solve
Maximum Units on a TruckGreedy Easy Arrays & Hashing JPMorgan Chase Solve
Palindrome NumberMath / Number Theory Easy Arrays & Hashing Bloomberg, Morgan Stanley, Qualcomm +10 Solve
Longest Common PrefixString Basics Easy Arrays & Hashing Bloomberg, Adobe, Visa +12 Solve
Container With Most WaterTwo Pointer Medium Arrays & Hashing Google, Microsoft, Apple +31 Solve
3SumTwo Sum Medium Arrays & Hashing Google, Microsoft, Meta +31 Solve
Find Pivot IndexPrefix Sum Strategy Easy Arrays & Hashing Tesla, Infosys, Myntra +1 Solve
Max Consecutive Ones IIISliding Window · Variable Medium Arrays & Hashing Amazon, LinkedIn, D. E. Shaw +2 Solve
Longest Mountain in ArrayTwo Pointer Medium Arrays & Hashing Apple, Databricks, ShareChat Solve
Kadane's Algorithm - SimpleKadane's Algorithm Medium Arrays & Hashing Microsoft, Apple, LinkedIn +29 Solve
Meeting Rooms IILine Sweep Medium Intervals Amazon, Meta, Apple +13 Solve
Exclusive Time of FunctionsStack Basics Medium Stack LinkedIn, Visa Solve
Minimum Window SubstringSliding Window · Hash Map Hard Arrays & Hashing Google, Meta, Apple +13 Solve
Longest Consecutive SequenceHash Set Lookup Medium Arrays & Hashing Google, Bloomberg, Spotify +17 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +49 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +41 Solve
Move ZeroesTwo Pointer Easy Arrays & Hashing Meta, Nvidia, Bloomberg +11 Solve
Letter Combinations of a Phone NumberChoice per Position Medium Recursion & Backtracking Amazon, Meta, Uber +9 Solve
Sort ColorsDutch National Flag Medium Arrays & Hashing Microsoft, Nvidia, Morgan Stanley +12 Solve
Reverse Linked ListFront Middle Back Pointer Easy Linked List Microsoft, Apple, Bloomberg +17 Solve
Repeated DNA SequencesSliding Window · Fixed Medium Arrays & Hashing LinkedIn Solve
Single Element in a Sorted ArrayUnique 1-D Binary Search Medium Binary Search Snowflake, Zomato, Myntra +2 Solve
House RobberAlternate Selection / Pick / Not pick Medium Dynamic Programming Airbnb, Nvidia, Databricks +13 Solve
String CompressionTwo Pointer Medium Arrays & Hashing Microsoft, Stripe, Nvidia +10 Solve
Coin ChangeKnapsack Medium Dynamic Programming Google, Microsoft, Apple +18 Solve
Linked List CycleSlow Fast Pointers Easy Linked List Microsoft, Apple, Goldman Sachs +16 Solve
Rotting OrangesMulti source BFS Medium Graphs Amazon, Microsoft, Databricks +17 Solve
Sliding Window MaximumMonotonic Stack Hard Monotonic Stack Google, Amazon, Microsoft +13 Solve
Also reported, being added to AlgoRung (8)

Count Ways to Group Overlapping Ranges · Find Occurrences of an Element in an Array · Find The First Player to win K Games in a Row · Minimum Operations to Make Median of Array Equal to K · Minimum Moves to Equal Array Elements · Sort the Students by Their Kth Score · Water Bottles · Minimum Number of Flips to Make the Binary String Alternating

Questions people ask

What coding questions does IBM ask most?

Fizz Buzz, Merge Intervals, Integer to Roman, Longest Substring Without Repeating Characters, Best Time to Buy and Sell Stock, Two Sum, Roman to Integer, Valid Parentheses.

Which topics come up in IBM coding rounds?

arrays, strings, hash maps, intervals, linked list, sliding window.

How hard are IBM coding questions?

Of the reported questions, 13 are easy, 25 medium and 2 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.