Cognizant vs Microsoft Interview Questions

Cognizant lists 29 LeetCode interview questions while Microsoft lists 192. They share 18 problems — 62% of Cognizant's bank and 9% of Microsoft's. Focus on the overlap first, then drill into 11 Cognizant-only and 174 Microsoft-only questions.

Overview

Cognizant

29 questions

Easy 18Medium 10Hard 1
Microsoft

192 questions

Easy 55Medium 109Hard 28

Preparation Strategy

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

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 Microsoft-specific problems from the exclusive lists below.

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

Difficulty Comparison

Easy
Cognizant
18
Microsoft
55
Medium
Cognizant
10
Microsoft
109
Hard
Cognizant
1
Microsoft
28

Top Shared Topics

18 Shared Questions

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

ProblemDifficulty
Palindrome NumberEasy
Two SumEasy
Longest Palindromic SubstringMedium
Valid AnagramEasy
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
Move ZeroesEasy
Merge Two Sorted ListsEasy
Add Two NumbersMedium
Search Insert PositionEasy

Unique to Cognizant (11)

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

ProblemDifficulty
Count Subarrays of Length Three With a ConditionEasy
Smallest Value of the Rearranged NumberMedium
Fibonacci NumberEasy
Second Highest SalaryMedium
Managers with at Least 5 Direct ReportsMedium
Product Sales Analysis IEasy
Count PrimesMedium
Binary SearchEasy
Fizz BuzzEasy
Rising TemperatureEasy
Students and ExaminationsEasy

Unique to Microsoft (174)

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

ProblemDifficulty
Trapping Rain WaterHard
Single Element in a Sorted ArrayMedium
Merge IntervalsMedium
Group AnagramsMedium
Search in Rotated Sorted ArrayMedium
Reverse Nodes in k-GroupHard
Roman to IntegerEasy
Spiral MatrixMedium
Climbing StairsEasy
Container With Most WaterMedium
Rotate ImageMedium
Merge k Sorted ListsHard

Frequently Asked Questions

How many LeetCode questions do Cognizant and Microsoft share?

Cognizant and Microsoft share 18 LeetCode interview questions. 11 problems appear only in Cognizant's list and 174 appear only in Microsoft's list.

What topics overlap most between Cognizant and Microsoft?

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

Which company asks harder LeetCode questions: Cognizant or Microsoft?

Cognizant has 18 Easy, 10 Medium, and 1 Hard questions. Microsoft has 55 Easy, 109 Medium, and 28 Hard questions. Microsoft has a higher proportion of Hard problems in its interview set.

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

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

Explore More