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.

Read the full Goldman Sachs vs TCS preparation guide →

Overview

Goldman Sachs

261 questions

Easy 48Medium 165Hard 48
TCS

228 questions

Easy 99Medium 108Hard 21

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

Easy
Goldman Sachs
48
TCS
99
Medium
Goldman Sachs
165
TCS
108
Hard
Goldman Sachs
48
TCS
21

Top Shared Topics

95 Shared Questions

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

ProblemDifficulty
Trapping Rain WaterHard
Median of Two Sorted ArraysHard
First Unique Character in a StringEasy
LRU CacheMedium
Container With Most WaterMedium
Longest Substring Without Repeating CharactersMedium
String CompressionMedium
Find the Winner of the Circular GameMedium
Merge IntervalsMedium
Group AnagramsMedium
Number of IslandsMedium
Search in Rotated Sorted ArrayMedium
Best Time to Buy and Sell StockEasy
Find Minimum in Rotated Sorted ArrayMedium
Best Time to Buy and Sell Stock IIMedium
Two SumEasy
Maximum SubarrayMedium
Top K Frequent ElementsMedium
Pascal's TriangleEasy
Product of Array Except SelfMedium
Sliding Window MaximumHard
Jump GameMedium
3SumMedium
Sqrt(x)Easy
N-QueensHard
Subarray Sum Equals KMedium
Integer to English WordsHard
Longest Palindromic SubstringMedium
Daily TemperaturesMedium
Unique PathsMedium

Showing top 30 of 95 shared problems.

Unique to Goldman Sachs (166)

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

ProblemDifficulty
Fraction to Recurring DecimalMedium
High FiveEasy
Minimum Path SumMedium
Robot Bounded In CircleMedium
Decode WaysMedium
Better Compression of StringMedium
Knight Probability in ChessboardMedium
Pairs of Songs With Total Durations Divisible by 60Medium
Robot Return to OriginEasy
Valid Arrangement of PairsHard
Design HashMapEasy
Minimum Moves to Capture The QueenMedium

Unique to TCS (133)

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

ProblemDifficulty
Friday Purchases IMedium
Palindrome NumberEasy
Longest Common PrefixEasy
Find the Index of the First Occurrence in a StringEasy
Single NumberEasy
Second Highest SalaryMedium
Rotate ArrayMedium
Reverse IntegerMedium
Contains DuplicateEasy
Remove Letter To Equalize FrequencyEasy
Maximum Ascending Subarray SumEasy
Count the Digits That Divide a NumberEasy

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.

Explore More