Cognizant vs JPMorgan Interview Questions

Cognizant lists 29 LeetCode interview questions while JPMorgan lists 78. They share 7 problems — 24% of Cognizant's bank and 9% of JPMorgan's. Focus on the overlap first, then drill into 22 Cognizant-only and 71 JPMorgan-only questions.

Overview

Cognizant

29 questions

Easy 18Medium 10Hard 1
JPMorgan

78 questions

Easy 25Medium 45Hard 8

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 JPMorgan.

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

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

Difficulty Comparison

Easy
Cognizant
18
JPMorgan
25
Medium
Cognizant
10
JPMorgan
45
Hard
Cognizant
1
JPMorgan
8

Top Shared Topics

7 Shared Questions

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

ProblemDifficulty
Two SumEasy
Longest Palindromic SubstringMedium
Maximum SubarrayMedium
Valid ParenthesesEasy
Longest Substring Without Repeating CharactersMedium
Happy NumberEasy
Fizz BuzzEasy

Unique to Cognizant (22)

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

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

Unique to JPMorgan (71)

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

ProblemDifficulty
Group AnagramsMedium
Count Binary SubstringsEasy
Minimum Swaps to Make Strings EqualMedium
Determine Color of a Chessboard SquareEasy
Button with Longest Push TimeEasy
Rotate ImageMedium
Meeting Rooms IIMedium
Divide Players Into Teams of Equal SkillMedium
Best Time to Buy and Sell StockEasy
Minimum Absolute DifferenceEasy
Check if Number Has Equal Digit Count and Digit ValueEasy
Reverse Odd Levels of Binary TreeMedium

Frequently Asked Questions

How many LeetCode questions do Cognizant and JPMorgan share?

Cognizant and JPMorgan share 7 LeetCode interview questions. 22 problems appear only in Cognizant's list and 71 appear only in JPMorgan's list.

What topics overlap most between Cognizant and JPMorgan?

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

Which company asks harder LeetCode questions: Cognizant or JPMorgan?

Cognizant has 18 Easy, 10 Medium, and 1 Hard questions. JPMorgan has 25 Easy, 45 Medium, and 8 Hard questions. JPMorgan has a higher proportion of Hard problems in its interview set.

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

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

Explore More