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
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
Top Shared Topics
15 Shared Questions
High-priority problems to practice for both Cognizant and Goldman Sachs.
| Problem | Difficulty |
|---|---|
| Two Sum | Easy |
| Longest Palindromic Substring | Medium |
| Valid Anagram | Easy |
| Remove Duplicates from Sorted Array | Easy |
| Maximum Subarray | Medium |
| Valid Parentheses | Easy |
| Median of Two Sorted Arrays | Hard |
| Longest Substring Without Repeating Characters | Medium |
| Merge Sorted Array | Easy |
| Count Primes | Medium |
| 3Sum | Medium |
| Move Zeroes | Easy |
| Merge Two Sorted Lists | Easy |
| Add Two Numbers | Medium |
| Fizz Buzz | Easy |
Unique to Cognizant (14)
Problems in Cognizant's list that do not appear at Goldman Sachs.
| 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 |
| Longest Common Prefix | Easy |
| Managers with at Least 5 Direct Reports | Medium |
| Reverse Integer | Medium |
| Product Sales Analysis I | Easy |
| Happy Number | Easy |
| Binary Search | Easy |
| Rising Temperature | Easy |
Unique to Goldman Sachs (246)
Problems in Goldman Sachs's list that do not appear at Cognizant.
| Problem | Difficulty |
|---|---|
| Trapping Rain Water | Hard |
| First Unique Character in a String | Easy |
| Fraction to Recurring Decimal | Medium |
| High Five | Easy |
| Minimum Path Sum | Medium |
| LRU Cache | Medium |
| Container With Most Water | Medium |
| String Compression | Medium |
| Find the Winner of the Circular Game | Medium |
| Merge Intervals | Medium |
| Robot Bounded In Circle | Medium |
| Group Anagrams | Medium |
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.