Cognizant vs Goldman Sachs Interview Questions

Cognizant lists 29 LeetCode interview questions while Goldman Sachs lists 261. They share 15 problems — 52% of Cognizant's bank and 6% of Goldman Sachs's. Focus on the overlap first, then drill into 14 Cognizant-only and 246 Goldman Sachs-only questions.

Overview

Cognizant

29 questions

Easy 18Medium 10Hard 1
Goldman Sachs

261 questions

Easy 48Medium 165Hard 48

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 Goldman Sachs.

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

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

Difficulty Comparison

Easy
Cognizant
18
Goldman Sachs
48
Medium
Cognizant
10
Goldman Sachs
165
Hard
Cognizant
1
Goldman Sachs
48

Top Shared Topics

15 Shared Questions

High-priority problems to practice for both Cognizant and Goldman Sachs.

ProblemDifficulty
Two SumEasy
Longest Palindromic SubstringMedium
Valid AnagramEasy
Remove Duplicates from Sorted ArrayEasy
Maximum SubarrayMedium
Valid ParenthesesEasy
Median of Two Sorted ArraysHard
Longest Substring Without Repeating CharactersMedium
Merge Sorted ArrayEasy
Count PrimesMedium
3SumMedium
Move ZeroesEasy
Merge Two Sorted ListsEasy
Add Two NumbersMedium
Fizz BuzzEasy

Unique to Cognizant (14)

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

ProblemDifficulty
Palindrome NumberEasy
Count Subarrays of Length Three With a ConditionEasy
Smallest Value of the Rearranged NumberMedium
Fibonacci NumberEasy
Second Highest SalaryMedium
Longest Common PrefixEasy
Managers with at Least 5 Direct ReportsMedium
Reverse IntegerMedium
Product Sales Analysis IEasy
Happy NumberEasy
Binary SearchEasy
Rising TemperatureEasy

Unique to Goldman Sachs (246)

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

ProblemDifficulty
Trapping Rain WaterHard
First Unique Character in a StringEasy
Fraction to Recurring DecimalMedium
High FiveEasy
Minimum Path SumMedium
LRU CacheMedium
Container With Most WaterMedium
String CompressionMedium
Find the Winner of the Circular GameMedium
Merge IntervalsMedium
Robot Bounded In CircleMedium
Group AnagramsMedium

Frequently Asked Questions

How many LeetCode questions do Cognizant and Goldman Sachs share?

Cognizant and Goldman Sachs share 15 LeetCode interview questions. 14 problems appear only in Cognizant's list and 246 appear only in Goldman Sachs's list.

What topics overlap most between Cognizant and Goldman Sachs?

The most common shared topics between Cognizant and Goldman Sachs are Array (8 shared questions), Two Pointers (5 shared questions), String (5 shared questions), Hash Table (3 shared questions), Sorting (3 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Cognizant or Goldman Sachs?

Cognizant has 18 Easy, 10 Medium, and 1 Hard questions. Goldman Sachs has 48 Easy, 165 Medium, and 48 Hard questions. Goldman Sachs has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Cognizant and Goldman Sachs?

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

Explore More