IBM vs Infosys Interview Questions

IBM lists 115 LeetCode interview questions while Infosys lists 105. They share 32 problems — 28% of IBM's bank and 30% of Infosys's. Focus on the overlap first, then drill into 83 IBM-only and 73 Infosys-only questions.

Read the full IBM vs Infosys preparation guide →

Overview

IBM

115 questions

Easy 33Medium 73Hard 9
Infosys

105 questions

Easy 32Medium 57Hard 16

Preparation Strategy

Step 1 — Shared core: Solve the 32 overlapping problems first. These are the highest-yield questions for candidates interviewing at both IBM and Infosys.

Step 2 — Company-specific depth: Add IBM-specific problems like Find the Smallest Divisor Given a Threshold, Gray Code, Exclusive Time of Functions and Infosys-specific problems from the exclusive lists below.

Step 3 — Difficulty tuning: Infosys skews harder in our data. Budget extra time for Hard problems if you are targeting that company.

Difficulty Comparison

Easy
IBM
33
Infosys
32
Medium
IBM
73
Infosys
57
Hard
IBM
9
Infosys
16

Top Shared Topics

32 Shared Questions

High-priority problems to practice for both IBM and Infosys.

ProblemDifficulty
3SumMedium
Integer to RomanMedium
Roman to IntegerEasy
Best Time to Buy and Sell StockEasy
Two SumEasy
Rotate ImageMedium
Merge IntervalsMedium
Longest Substring Without Repeating CharactersMedium
Longest Common PrefixEasy
Valid ParenthesesEasy
Longest Consecutive SequenceMedium
Longest Palindromic SubstringMedium
Merge Sorted ArrayEasy
Maximum SubarrayMedium
Spiral MatrixMedium
Group AnagramsMedium
Climbing StairsEasy
Trapping Rain WaterHard
Product of Array Except SelfMedium
Next PermutationMedium
Find the Index of the First Occurrence in a StringEasy
Subarray Sum Equals KMedium
Rotate ArrayMedium
Median of Two Sorted ArraysHard
SubsetsMedium
Find Minimum in Rotated Sorted ArrayMedium
Palindrome NumberEasy
Reverse IntegerMedium
Gas StationMedium
Remove Duplicates from Sorted ArrayEasy

Showing top 30 of 32 shared problems.

Unique to IBM (83)

Problems in IBM's list that do not appear at Infosys.

ProblemDifficulty
Find the Smallest Divisor Given a ThresholdMedium
Gray CodeMedium
Exclusive Time of FunctionsMedium
Minimum Operations to Make Columns Strictly IncreasingEasy
Fizz BuzzEasy
Count Ways to Group Overlapping RangesMedium
Meeting Rooms IIMedium
Minimum Absolute DifferenceEasy
Minimum Operations to Make All Array Elements EqualMedium
Number of Divisible Triplet SumsMedium
Find Pivot IndexEasy
Minimum Operations to Make Median of Array Equal to KMedium

Unique to Infosys (73)

Problems in Infosys's list that do not appear at IBM.

ProblemDifficulty
Maximum Good Subtree ScoreHard
Find Building Where Alice and Bob Can MeetHard
Minimum Reverse OperationsHard
Count the Number of Ideal ArraysHard
Transform Array by ParityEasy
Eat Pizzas!Medium
Maximum Sum of Subsequence With Non-adjacent ElementsHard
Maximize the Minimum Game ScoreHard
Find the Number of Subsequences With Equal GCDHard
Determine the Minimum Sum of a k-avoiding ArrayMedium
Largest Number After Mutating SubstringMedium
Minimum Total Distance TraveledHard

Frequently Asked Questions

How many LeetCode questions do IBM and Infosys share?

IBM and Infosys share 32 LeetCode interview questions. 83 problems appear only in IBM's list and 73 appear only in Infosys's list.

What topics overlap most between IBM and Infosys?

The most common shared topics between IBM and Infosys are Array (20 shared questions), Two Pointers (8 shared questions), String (8 shared questions), Hash Table (7 shared questions), Math (7 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: IBM or Infosys?

IBM has 33 Easy, 73 Medium, and 9 Hard questions. Infosys has 32 Easy, 57 Medium, and 16 Hard questions. Infosys has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both IBM and Infosys?

Start with the 32 shared problems since they cover what both companies ask most often. Then add 20 IBM-specific and 20 Infosys-specific questions to round out your prep.

Explore More