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.
Overview
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
Top Shared Topics
32 Shared Questions
High-priority problems to practice for both IBM and Infosys.
| Problem | Difficulty |
|---|---|
| 3Sum | Medium |
| Integer to Roman | Medium |
| Roman to Integer | Easy |
| Best Time to Buy and Sell Stock | Easy |
| Two Sum | Easy |
| Rotate Image | Medium |
| Merge Intervals | Medium |
| Longest Substring Without Repeating Characters | Medium |
| Longest Common Prefix | Easy |
| Valid Parentheses | Easy |
| Longest Consecutive Sequence | Medium |
| Longest Palindromic Substring | Medium |
| Merge Sorted Array | Easy |
| Maximum Subarray | Medium |
| Spiral Matrix | Medium |
| Group Anagrams | Medium |
| Climbing Stairs | Easy |
| Trapping Rain Water | Hard |
| Product of Array Except Self | Medium |
| Next Permutation | Medium |
| Find the Index of the First Occurrence in a String | Easy |
| Subarray Sum Equals K | Medium |
| Rotate Array | Medium |
| Median of Two Sorted Arrays | Hard |
| Subsets | Medium |
| Find Minimum in Rotated Sorted Array | Medium |
| Palindrome Number | Easy |
| Reverse Integer | Medium |
| Gas Station | Medium |
| Remove Duplicates from Sorted Array | Easy |
Showing top 30 of 32 shared problems.
Unique to IBM (83)
Problems in IBM's list that do not appear at Infosys.
Unique to Infosys (73)
Problems in Infosys's list that do not appear at IBM.
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.