Cognizant vs Uber Interview Questions
Cognizant lists 29 LeetCode interview questions while Uber lists 362. They share 15 problems — 52% of Cognizant's bank and 4% of Uber's. Focus on the overlap first, then drill into 14 Cognizant-only and 347 Uber-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 15 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Cognizant and Uber.
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 Uber-specific problems from the exclusive lists below.
Step 3 — Difficulty tuning: Uber skews harder in our data. Budget extra time for Hard problems if you are targeting that company.
Difficulty Comparison
Top Shared Topics
15 Shared Questions
High-priority problems to practice for both Cognizant and Uber.
| Problem | Difficulty |
|---|---|
| Two Sum | Easy |
| Longest Palindromic Substring | Medium |
| Valid Anagram | Easy |
| Remove Duplicates from Sorted Array | Easy |
| Longest Common Prefix | Easy |
| Maximum Subarray | Medium |
| Reverse Integer | Medium |
| Valid Parentheses | Easy |
| Median of Two Sorted Arrays | Hard |
| Longest Substring Without Repeating Characters | Medium |
| Count Primes | Medium |
| Happy Number | Easy |
| Move Zeroes | Easy |
| Add Two Numbers | Medium |
| Fizz Buzz | Easy |
Unique to Cognizant (14)
Problems in Cognizant's list that do not appear at Uber.
| Problem | Difficulty |
|---|---|
| Palindrome Number | Easy |
| Count Subarrays of Length Three With a Condition | Easy |
| Smallest Value of the Rearranged Number | Medium |
| Fibonacci Number | Easy |
| Second Highest Salary | Medium |
| Managers with at Least 5 Direct Reports | Medium |
| Product Sales Analysis I | Easy |
| Merge Sorted Array | Easy |
| 3Sum | Medium |
| Binary Search | Easy |
| Merge Two Sorted Lists | Easy |
| Rising Temperature | Easy |
Unique to Uber (347)
Problems in Uber's list that do not appear at Cognizant.
| Problem | Difficulty |
|---|---|
| Bus Routes | Hard |
| Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit | Medium |
| Alien Dictionary | Hard |
| Number of Islands | Medium |
| Number of Islands II | Hard |
| Squares of a Sorted Array | Easy |
| Construct Quad Tree | Medium |
| Kth Smallest Element in a BST | Medium |
| First Unique Number | Medium |
| Find the Closest Palindrome | Hard |
| Word Search | Medium |
| Insert Delete GetRandom O(1) | Medium |
Frequently Asked Questions
How many LeetCode questions do Cognizant and Uber share?
Cognizant and Uber share 15 LeetCode interview questions. 14 problems appear only in Cognizant's list and 347 appear only in Uber's list.
What topics overlap most between Cognizant and Uber?
The most common shared topics between Cognizant and Uber are Array (6 shared questions), String (6 shared questions), Math (5 shared questions), Hash Table (4 shared questions), Two Pointers (4 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: Cognizant or Uber?
Cognizant has 18 Easy, 10 Medium, and 1 Hard questions. Uber has 45 Easy, 215 Medium, and 102 Hard questions. Uber has a higher proportion of Hard problems in its interview set.
How should I prepare if interviewing at both Cognizant and Uber?
Start with the 15 shared problems since they cover what both companies ask most often. Then add 14 Cognizant-specific and 20 Uber-specific questions to round out your prep.