Goldman Sachs vs TCS Interview Questions
Goldman Sachs lists 261 LeetCode interview questions while TCS lists 228. They share 95 problems — 36% of Goldman Sachs's bank and 42% of TCS's. Focus on the overlap first, then drill into 166 Goldman Sachs-only and 133 TCS-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 95 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Goldman Sachs and TCS.
Step 2 — Company-specific depth: Add Goldman Sachs-specific problems like Fraction to Recurring Decimal, High Five, Minimum Path Sum and TCS-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
95 Shared Questions
High-priority problems to practice for both Goldman Sachs and TCS.
| Problem | Difficulty |
|---|---|
| Trapping Rain Water | Hard |
| Median of Two Sorted Arrays | Hard |
| First Unique Character in a String | Easy |
| LRU Cache | Medium |
| Container With Most Water | Medium |
| Longest Substring Without Repeating Characters | Medium |
| String Compression | Medium |
| Find the Winner of the Circular Game | Medium |
| Merge Intervals | Medium |
| Group Anagrams | Medium |
| Number of Islands | Medium |
| Search in Rotated Sorted Array | Medium |
| Best Time to Buy and Sell Stock | Easy |
| Find Minimum in Rotated Sorted Array | Medium |
| Best Time to Buy and Sell Stock II | Medium |
| Two Sum | Easy |
| Maximum Subarray | Medium |
| Top K Frequent Elements | Medium |
| Pascal's Triangle | Easy |
| Product of Array Except Self | Medium |
| Sliding Window Maximum | Hard |
| Jump Game | Medium |
| 3Sum | Medium |
| Sqrt(x) | Easy |
| N-Queens | Hard |
| Subarray Sum Equals K | Medium |
| Integer to English Words | Hard |
| Longest Palindromic Substring | Medium |
| Daily Temperatures | Medium |
| Unique Paths | Medium |
Showing top 30 of 95 shared problems.
Unique to Goldman Sachs (166)
Problems in Goldman Sachs's list that do not appear at TCS.
| Problem | Difficulty |
|---|---|
| Fraction to Recurring Decimal | Medium |
| High Five | Easy |
| Minimum Path Sum | Medium |
| Robot Bounded In Circle | Medium |
| Decode Ways | Medium |
| Better Compression of String | Medium |
| Knight Probability in Chessboard | Medium |
| Pairs of Songs With Total Durations Divisible by 60 | Medium |
| Robot Return to Origin | Easy |
| Valid Arrangement of Pairs | Hard |
| Design HashMap | Easy |
| Minimum Moves to Capture The Queen | Medium |
Unique to TCS (133)
Problems in TCS's list that do not appear at Goldman Sachs.
| Problem | Difficulty |
|---|---|
| Friday Purchases I | Medium |
| Palindrome Number | Easy |
| Longest Common Prefix | Easy |
| Find the Index of the First Occurrence in a String | Easy |
| Single Number | Easy |
| Second Highest Salary | Medium |
| Rotate Array | Medium |
| Reverse Integer | Medium |
| Contains Duplicate | Easy |
| Remove Letter To Equalize Frequency | Easy |
| Maximum Ascending Subarray Sum | Easy |
| Count the Digits That Divide a Number | Easy |
Frequently Asked Questions
How many LeetCode questions do Goldman Sachs and TCS share?
Goldman Sachs and TCS share 95 LeetCode interview questions. 166 problems appear only in Goldman Sachs's list and 133 appear only in TCS's list.
What topics overlap most between Goldman Sachs and TCS?
The most common shared topics between Goldman Sachs and TCS are Array (22 shared questions), Dynamic Programming (8 shared questions), Hash Table (7 shared questions), String (6 shared questions), Two Pointers (5 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: Goldman Sachs or TCS?
Goldman Sachs has 48 Easy, 165 Medium, and 48 Hard questions. TCS has 99 Easy, 108 Medium, and 21 Hard questions. Goldman Sachs has a higher proportion of Hard problems in its interview set.
How should I prepare if interviewing at both Goldman Sachs and TCS?
Start with the 95 shared problems since they cover what both companies ask most often. Then add 20 Goldman Sachs-specific and 20 TCS-specific questions to round out your prep.