Cognizant vs Yelp Interview Questions

Cognizant lists 29 LeetCode interview questions while Yelp lists 27. They share 4 problems — 14% of Cognizant's bank and 15% of Yelp's. Focus on the overlap first, then drill into 25 Cognizant-only and 23 Yelp-only questions.

Overview

Cognizant

29 questions

Easy 18Medium 10Hard 1
Yelp

27 questions

Easy 7Medium 15Hard 5

Preparation Strategy

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

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

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

Difficulty Comparison

Easy
Cognizant
18
Yelp
7
Medium
Cognizant
10
Yelp
15
Hard
Cognizant
1
Yelp
5

Top Shared Topics

4 Shared Questions

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

ProblemDifficulty
Two SumEasy
Valid AnagramEasy
Longest Common PrefixEasy
Longest Substring Without Repeating CharactersMedium

Unique to Cognizant (25)

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

ProblemDifficulty
Palindrome NumberEasy
Count Subarrays of Length Three With a ConditionEasy
Smallest Value of the Rearranged NumberMedium
Fibonacci NumberEasy
Longest Palindromic SubstringMedium
Second Highest SalaryMedium
Remove Duplicates from Sorted ArrayEasy
Managers with at Least 5 Direct ReportsMedium
Maximum SubarrayMedium
Reverse IntegerMedium
Product Sales Analysis IEasy
Valid ParenthesesEasy

Unique to Yelp (23)

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

ProblemDifficulty
Destination CityEasy
Filter Restaurants by Vegan-Friendly, Price and DistanceMedium
Remove Colored Pieces if Both Neighbors are the Same ColorMedium
Active BusinessesMedium
Decode StringMedium
Reverse Linked ListEasy
Course ScheduleMedium
Reverse Words in a StringMedium
Minimum Index Sum of Two ListsEasy
The Skyline ProblemHard
Top K Frequent ElementsMedium
Check If a Word Occurs As a Prefix of Any Word in a SentenceEasy

Frequently Asked Questions

How many LeetCode questions do Cognizant and Yelp share?

Cognizant and Yelp share 4 LeetCode interview questions. 25 problems appear only in Cognizant's list and 23 appear only in Yelp's list.

What topics overlap most between Cognizant and Yelp?

The most common shared topics between Cognizant and Yelp are Hash Table (3 shared questions), String (3 shared questions), Array (1 shared questions), Sorting (1 shared questions), Trie (1 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Cognizant or Yelp?

Cognizant has 18 Easy, 10 Medium, and 1 Hard questions. Yelp has 7 Easy, 15 Medium, and 5 Hard questions. Yelp has a higher proportion of Hard problems in its interview set.

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

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

Explore More