Cognizant vs IBM Interview Questions

Cognizant lists 29 LeetCode interview questions while IBM lists 115. They share 14 problems — 48% of Cognizant's bank and 12% of IBM's. Focus on the overlap first, then drill into 15 Cognizant-only and 101 IBM-only questions.

Overview

Cognizant

29 questions

Easy 18Medium 10Hard 1
IBM

115 questions

Easy 33Medium 73Hard 9

Preparation Strategy

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

Step 2 — Company-specific depth: Add Cognizant-specific problems like Count Subarrays of Length Three With a Condition, Smallest Value of the Rearranged Number, Fibonacci Number and IBM-specific problems from the exclusive lists below.

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

Difficulty Comparison

Easy
Cognizant
18
IBM
33
Medium
Cognizant
10
IBM
73
Hard
Cognizant
1
IBM
9

Top Shared Topics

14 Shared Questions

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

ProblemDifficulty
Palindrome NumberEasy
Two SumEasy
Longest Palindromic SubstringMedium
Remove Duplicates from Sorted ArrayEasy
Longest Common PrefixEasy
Maximum SubarrayMedium
Reverse IntegerMedium
Valid ParenthesesEasy
Median of Two Sorted ArraysHard
Longest Substring Without Repeating CharactersMedium
Merge Sorted ArrayEasy
3SumMedium
Happy NumberEasy
Fizz BuzzEasy

Unique to Cognizant (15)

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

ProblemDifficulty
Count Subarrays of Length Three With a ConditionEasy
Smallest Value of the Rearranged NumberMedium
Fibonacci NumberEasy
Valid AnagramEasy
Second Highest SalaryMedium
Managers with at Least 5 Direct ReportsMedium
Product Sales Analysis IEasy
Count PrimesMedium
Move ZeroesEasy
Binary SearchEasy
Merge Two Sorted ListsEasy
Add Two NumbersMedium

Unique to IBM (101)

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

ProblemDifficulty
Find the Smallest Divisor Given a ThresholdMedium
Gray CodeMedium
Exclusive Time of FunctionsMedium
Integer to RomanMedium
Minimum Operations to Make Columns Strictly IncreasingEasy
Roman to IntegerEasy
Best Time to Buy and Sell StockEasy
Count Ways to Group Overlapping RangesMedium
Meeting Rooms IIMedium
Rotate ImageMedium
Minimum Absolute DifferenceEasy
Minimum Operations to Make All Array Elements EqualMedium

Frequently Asked Questions

How many LeetCode questions do Cognizant and IBM share?

Cognizant and IBM share 14 LeetCode interview questions. 15 problems appear only in Cognizant's list and 101 appear only in IBM's list.

What topics overlap most between Cognizant and IBM?

The most common shared topics between Cognizant and IBM are Array (6 shared questions), Two Pointers (5 shared questions), String (5 shared questions), Math (4 shared questions), Hash Table (3 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Cognizant or IBM?

Cognizant has 18 Easy, 10 Medium, and 1 Hard questions. IBM has 33 Easy, 73 Medium, and 9 Hard questions. IBM has a higher proportion of Hard problems in its interview set.

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

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

Explore More