Cognizant vs Morgan Stanley Interview Questions

Cognizant lists 29 LeetCode interview questions while Morgan Stanley lists 60. They share 7 problems — 24% of Cognizant's bank and 12% of Morgan Stanley's. Focus on the overlap first, then drill into 22 Cognizant-only and 53 Morgan Stanley-only questions.

Overview

Cognizant

29 questions

Easy 18Medium 10Hard 1
Morgan Stanley

60 questions

Easy 13Medium 40Hard 7

Preparation Strategy

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

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

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

Difficulty Comparison

Easy
Cognizant
18
Morgan Stanley
13
Medium
Cognizant
10
Morgan Stanley
40
Hard
Cognizant
1
Morgan Stanley
7

Top Shared Topics

7 Shared Questions

High-priority problems to practice for both Cognizant and Morgan Stanley.

ProblemDifficulty
Palindrome NumberEasy
Two SumEasy
Longest Palindromic SubstringMedium
Remove Duplicates from Sorted ArrayEasy
Maximum SubarrayMedium
Longest Substring Without Repeating CharactersMedium
3SumMedium

Unique to Cognizant (22)

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

ProblemDifficulty
Count Subarrays of Length Three With a ConditionEasy
Smallest Value of the Rearranged NumberMedium
Fibonacci NumberEasy
Valid AnagramEasy
Second Highest SalaryMedium
Longest Common PrefixEasy
Managers with at Least 5 Direct ReportsMedium
Reverse IntegerMedium
Product Sales Analysis IEasy
Valid ParenthesesEasy
Median of Two Sorted ArraysHard
Merge Sorted ArrayEasy

Unique to Morgan Stanley (53)

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

ProblemDifficulty
Best Time to Buy and Sell StockEasy
Best Team With No ConflictsMedium
Minimum Number of Lines to Cover PointsMedium
Find the Longest Valid Obstacle Course at Each PositionHard
Minimum Cost to Move Chips to The Same PositionEasy
Find Subarrays With Equal SumEasy
The Employee That Worked on the Longest TaskEasy
Find The Original Array of Prefix XorMedium
Delete and EarnMedium
Count Subarrays With Fixed BoundsHard
Merge IntervalsMedium
First Unique Character in a StringEasy

Frequently Asked Questions

How many LeetCode questions do Cognizant and Morgan Stanley share?

Cognizant and Morgan Stanley share 7 LeetCode interview questions. 22 problems appear only in Cognizant's list and 53 appear only in Morgan Stanley's list.

What topics overlap most between Cognizant and Morgan Stanley?

The most common shared topics between Cognizant and Morgan Stanley are Array (4 shared questions), Two Pointers (3 shared questions), Hash Table (2 shared questions), String (2 shared questions), Dynamic Programming (2 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Cognizant or Morgan Stanley?

Cognizant has 18 Easy, 10 Medium, and 1 Hard questions. Morgan Stanley has 13 Easy, 40 Medium, and 7 Hard questions. Morgan Stanley has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Cognizant and Morgan Stanley?

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

Explore More