IBM vs TCS Interview Questions

IBM lists 115 LeetCode interview questions while TCS lists 228. They share 45 problems — 39% of IBM's bank and 20% of TCS's. Focus on the overlap first, then drill into 70 IBM-only and 183 TCS-only questions.

Read the full IBM vs TCS preparation guide →

Overview

IBM

115 questions

Easy 33Medium 73Hard 9
TCS

228 questions

Easy 99Medium 108Hard 21

Preparation Strategy

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

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

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

Difficulty Comparison

Easy
IBM
33
TCS
99
Medium
IBM
73
TCS
108
Hard
IBM
9
TCS
21

Top Shared Topics

45 Shared Questions

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

ProblemDifficulty
3SumMedium
Integer to RomanMedium
Fizz BuzzEasy
Roman to IntegerEasy
Best Time to Buy and Sell StockEasy
Two SumEasy
Rotate ImageMedium
Find Pivot IndexEasy
The kth Factor of nMedium
Merge IntervalsMedium
Longest Substring Without Repeating CharactersMedium
String CompressionMedium
Longest Common PrefixEasy
Valid ParenthesesEasy
Letter Combinations of a Phone NumberMedium
Maximum Sum of Distinct Subarrays With Length KMedium
Longest Consecutive SequenceMedium
Longest Palindromic SubstringMedium
Merge Sorted ArrayEasy
Maximum SubarrayMedium
Spiral MatrixMedium
Group AnagramsMedium
Subarray Product Less Than KMedium
Climbing StairsEasy
Trapping Rain WaterHard
Product of Array Except SelfMedium
Next PermutationMedium
Find the Index of the First Occurrence in a StringEasy
Longest Increasing SubsequenceMedium
Subarray Sum Equals KMedium

Showing top 30 of 45 shared problems.

Unique to IBM (70)

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

ProblemDifficulty
Find the Smallest Divisor Given a ThresholdMedium
Gray CodeMedium
Exclusive Time of FunctionsMedium
Minimum Operations to Make Columns Strictly IncreasingEasy
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
Minimum Operations to Make Median of Array Equal to KMedium
Activity ParticipantsMedium
Maximum Profitable Triplets With Increasing Prices IMedium

Unique to TCS (183)

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

ProblemDifficulty
Friday Purchases IMedium
Move ZeroesEasy
Sort ColorsMedium
Valid AnagramEasy
Single NumberEasy
Second Highest SalaryMedium
Container With Most WaterMedium
Jump GameMedium
Contains DuplicateEasy
Remove Letter To Equalize FrequencyEasy
Maximum Ascending Subarray SumEasy
Count the Digits That Divide a NumberEasy

Frequently Asked Questions

How many LeetCode questions do IBM and TCS share?

IBM and TCS share 45 LeetCode interview questions. 70 problems appear only in IBM's list and 183 appear only in TCS's list.

What topics overlap most between IBM and TCS?

The most common shared topics between IBM and TCS are Array (18 shared questions), String (11 shared questions), Hash Table (9 shared questions), Two Pointers (7 shared questions), Math (6 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: IBM or TCS?

IBM has 33 Easy, 73 Medium, and 9 Hard questions. TCS has 99 Easy, 108 Medium, and 21 Hard questions. TCS has a higher proportion of Hard problems in its interview set.

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

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

Explore More