Amazon vs Cognizant Interview Questions

Amazon lists 1,968 LeetCode interview questions while Cognizant lists 29. They share 28 problems — 1% of Amazon's bank and 97% of Cognizant's. Focus on the overlap first, then drill into 1,940 Amazon-only and 1 Cognizant-only questions.

Overview

Amazon

1,968 questions

Easy 527Medium 1074Hard 367
Cognizant

29 questions

Easy 18Medium 10Hard 1

Preparation Strategy

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

Step 2 — Company-specific depth: Add Amazon-specific problems like LRU Cache, Trapping Rain Water, Number of Islands and Cognizant-specific problems from the exclusive lists below.

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

Difficulty Comparison

Easy
Amazon
527
Cognizant
18
Medium
Amazon
1074
Cognizant
10
Hard
Amazon
367
Cognizant
1

Top Shared Topics

28 Shared Questions

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

ProblemDifficulty
Two SumEasy
Longest Substring Without Repeating CharactersMedium
Add Two NumbersMedium
3SumMedium
Longest Palindromic SubstringMedium
Median of Two Sorted ArraysHard
Valid ParenthesesEasy
Longest Common PrefixEasy
Merge Sorted ArrayEasy
Maximum SubarrayMedium
Palindrome NumberEasy
Merge Two Sorted ListsEasy
Valid AnagramEasy
Remove Duplicates from Sorted ArrayEasy
Move ZeroesEasy
Reverse IntegerMedium
Search Insert PositionEasy
Happy NumberEasy
Fibonacci NumberEasy
Count PrimesMedium
Second Highest SalaryMedium
Fizz BuzzEasy
Binary SearchEasy
Managers with at Least 5 Direct ReportsMedium
Rising TemperatureEasy
Students and ExaminationsEasy
Product Sales Analysis IEasy
Count Subarrays of Length Three With a ConditionEasy

Unique to Amazon (1,940)

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

ProblemDifficulty
LRU CacheMedium
Trapping Rain WaterHard
Number of IslandsMedium
Best Time to Buy and Sell StockEasy
Group AnagramsMedium
Reorganize StringMedium
Merge IntervalsMedium
Container With Most WaterMedium
Koko Eating BananasMedium
Course ScheduleMedium
Merge k Sorted ListsHard
Rotting OrangesMedium

Unique to Cognizant (1)

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

ProblemDifficulty
Smallest Value of the Rearranged NumberMedium

Frequently Asked Questions

How many LeetCode questions do Amazon and Cognizant share?

Amazon and Cognizant share 28 LeetCode interview questions. 1940 problems appear only in Amazon's list and 1 appear only in Cognizant's list.

What topics overlap most between Amazon and Cognizant?

The most common shared topics between Amazon and Cognizant are Array (12 shared questions), Math (7 shared questions), String (6 shared questions), Two Pointers (6 shared questions), Database (5 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Amazon or Cognizant?

Amazon has 527 Easy, 1074 Medium, and 367 Hard questions. Cognizant has 18 Easy, 10 Medium, and 1 Hard questions. Amazon has a higher proportion of Hard problems in its interview set.

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

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

Explore More