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
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
Top Shared Topics
28 Shared Questions
High-priority problems to practice for both Amazon and Cognizant.
| Problem | Difficulty |
|---|---|
| Two Sum | Easy |
| Longest Substring Without Repeating Characters | Medium |
| Add Two Numbers | Medium |
| 3Sum | Medium |
| Longest Palindromic Substring | Medium |
| Median of Two Sorted Arrays | Hard |
| Valid Parentheses | Easy |
| Longest Common Prefix | Easy |
| Merge Sorted Array | Easy |
| Maximum Subarray | Medium |
| Palindrome Number | Easy |
| Merge Two Sorted Lists | Easy |
| Valid Anagram | Easy |
| Remove Duplicates from Sorted Array | Easy |
| Move Zeroes | Easy |
| Reverse Integer | Medium |
| Search Insert Position | Easy |
| Happy Number | Easy |
| Fibonacci Number | Easy |
| Count Primes | Medium |
| Second Highest Salary | Medium |
| Fizz Buzz | Easy |
| Binary Search | Easy |
| Managers with at Least 5 Direct Reports | Medium |
| Rising Temperature | Easy |
| Students and Examinations | Easy |
| Product Sales Analysis I | Easy |
| Count Subarrays of Length Three With a Condition | Easy |
Unique to Amazon (1,940)
Problems in Amazon's list that do not appear at Cognizant.
| Problem | Difficulty |
|---|---|
| LRU Cache | Medium |
| Trapping Rain Water | Hard |
| Number of Islands | Medium |
| Best Time to Buy and Sell Stock | Easy |
| Group Anagrams | Medium |
| Reorganize String | Medium |
| Merge Intervals | Medium |
| Container With Most Water | Medium |
| Koko Eating Bananas | Medium |
| Course Schedule | Medium |
| Merge k Sorted Lists | Hard |
| Rotting Oranges | Medium |
Unique to Cognizant (1)
Problems in Cognizant's list that do not appear at Amazon.
| Problem | Difficulty |
|---|---|
| Smallest Value of the Rearranged Number | Medium |
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.