Cognizant vs Infosys Interview Questions

Cognizant lists 29 LeetCode interview questions while Infosys lists 105. They share 19 problems — 66% of Cognizant's bank and 18% of Infosys's. Focus on the overlap first, then drill into 10 Cognizant-only and 86 Infosys-only questions.

Overview

Cognizant

29 questions

Easy 18Medium 10Hard 1
Infosys

105 questions

Easy 32Medium 57Hard 16

Preparation Strategy

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

Step 2 — Company-specific depth: Add Cognizant-specific problems like Count Subarrays of Length Three With a Condition, Smallest Value of the Rearranged Number, Managers with at Least 5 Direct Reports 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
Cognizant
18
Infosys
32
Medium
Cognizant
10
Infosys
57
Hard
Cognizant
1
Infosys
16

Top Shared Topics

19 Shared Questions

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

ProblemDifficulty
Palindrome NumberEasy
Two SumEasy
Fibonacci NumberEasy
Longest Palindromic SubstringMedium
Valid AnagramEasy
Second Highest SalaryMedium
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
Move ZeroesEasy
Binary SearchEasy
Merge Two Sorted ListsEasy
Add Two NumbersMedium

Unique to Cognizant (10)

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

ProblemDifficulty
Count Subarrays of Length Three With a ConditionEasy
Smallest Value of the Rearranged NumberMedium
Managers with at Least 5 Direct ReportsMedium
Product Sales Analysis IEasy
Count PrimesMedium
Happy NumberEasy
Fizz BuzzEasy
Rising TemperatureEasy
Students and ExaminationsEasy
Search Insert PositionEasy

Unique to Infosys (86)

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

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
Best Time to Buy and Sell StockEasy
Find the Number of Subsequences With Equal GCDHard
Determine the Minimum Sum of a k-avoiding ArrayMedium
Largest Number After Mutating SubstringMedium

Frequently Asked Questions

How many LeetCode questions do Cognizant and Infosys share?

Cognizant and Infosys share 19 LeetCode interview questions. 10 problems appear only in Cognizant's list and 86 appear only in Infosys's list.

What topics overlap most between Cognizant and Infosys?

The most common shared topics between Cognizant and Infosys are Array (8 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 Infosys?

Cognizant has 18 Easy, 10 Medium, and 1 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 Cognizant and Infosys?

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

Explore More