Cognizant vs eBay Interview Questions

Cognizant lists 29 LeetCode interview questions while eBay lists 62. They share 5 problems — 17% of Cognizant's bank and 8% of eBay's. Focus on the overlap first, then drill into 24 Cognizant-only and 57 eBay-only questions.

Overview

Cognizant

29 questions

Easy 18Medium 10Hard 1
eBay

62 questions

Easy 10Medium 39Hard 13

Preparation Strategy

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

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

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

Difficulty Comparison

Easy
Cognizant
18
eBay
10
Medium
Cognizant
10
eBay
39
Hard
Cognizant
1
eBay
13

Top Shared Topics

5 Shared Questions

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

ProblemDifficulty
Two SumEasy
Longest Palindromic SubstringMedium
Valid ParenthesesEasy
Longest Substring Without Repeating CharactersMedium
3SumMedium

Unique to Cognizant (24)

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

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
Maximum SubarrayMedium
Reverse IntegerMedium
Product Sales Analysis IEasy

Unique to eBay (57)

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

ProblemDifficulty
LRU CacheMedium
Remove One Element to Make the Array Strictly IncreasingEasy
Alternating Digit SumEasy
Partition Equal Subset SumMedium
Binary GapEasy
Minimize Maximum Pair Sum in ArrayMedium
Minimum Window SubsequenceHard
Design SkiplistHard
Subtree of Another TreeEasy
Spiral MatrixMedium
Top K Frequent ElementsMedium
Open the LockMedium

Frequently Asked Questions

How many LeetCode questions do Cognizant and eBay share?

Cognizant and eBay share 5 LeetCode interview questions. 24 problems appear only in Cognizant's list and 57 appear only in eBay's list.

What topics overlap most between Cognizant and eBay?

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

Which company asks harder LeetCode questions: Cognizant or eBay?

Cognizant has 18 Easy, 10 Medium, and 1 Hard questions. eBay has 10 Easy, 39 Medium, and 13 Hard questions. eBay has a higher proportion of Hard problems in its interview set.

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

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

Explore More