TCS vs Yahoo Interview Questions

TCS lists 228 LeetCode interview questions while Yahoo lists 34. They share 16 problems — 7% of TCS's bank and 47% of Yahoo's. Focus on the overlap first, then drill into 212 TCS-only and 18 Yahoo-only questions.

Read the full TCS vs Yahoo preparation guide →

Overview

TCS

228 questions

Easy 99Medium 108Hard 21
Yahoo

34 questions

Easy 11Medium 20Hard 3

Preparation Strategy

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

Step 2 — Company-specific depth: Add TCS-specific problems like Friday Purchases I, Longest Palindromic Substring, Maximum Subarray and Yahoo-specific problems from the exclusive lists below.

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

Difficulty Comparison

Easy
TCS
99
Yahoo
11
Medium
TCS
108
Yahoo
20
Hard
TCS
21
Yahoo
3

Top Shared Topics

16 Shared Questions

High-priority problems to practice for both TCS and Yahoo.

ProblemDifficulty
Two SumEasy
Palindrome NumberEasy
Longest Common PrefixEasy
Valid ParenthesesEasy
Subarray Sum Equals KMedium
Median of Two Sorted ArraysHard
Contains DuplicateEasy
Spiral MatrixMedium
Search in Rotated Sorted ArrayMedium
Roman to IntegerEasy
Serialize and Deserialize Binary TreeHard
LRU CacheMedium
Maximum Depth of Binary TreeEasy
Top K Frequent ElementsMedium
Reverse Linked ListEasy
Linked List CycleEasy

Unique to TCS (212)

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

ProblemDifficulty
Friday Purchases IMedium
Longest Palindromic SubstringMedium
Maximum SubarrayMedium
Move ZeroesEasy
Majority ElementEasy
Best Time to Buy and Sell StockEasy
Sort ColorsMedium
Valid AnagramEasy
Find the Index of the First Occurrence in a StringEasy
Single NumberEasy
Second Highest SalaryMedium
Longest Substring Without Repeating CharactersMedium

Unique to Yahoo (18)

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

ProblemDifficulty
Largest Palindrome ProductHard
Word BreakMedium
Matrix Cells in Distance OrderEasy
Non-decreasing SubsequencesMedium
Maximum Distance in ArraysMedium
Binary Number with Alternating BitsEasy
Peeking IteratorMedium
Combination SumMedium
Meeting Rooms IIMedium
Validate Binary Search TreeMedium
Longest Repeating Character ReplacementMedium
Shortest Path in Binary MatrixMedium

Frequently Asked Questions

How many LeetCode questions do TCS and Yahoo share?

TCS and Yahoo share 16 LeetCode interview questions. 212 problems appear only in TCS's list and 18 appear only in Yahoo's list.

What topics overlap most between TCS and Yahoo?

The most common shared topics between TCS and Yahoo are Array (8 shared questions), Hash Table (7 shared questions), String (4 shared questions), Linked List (3 shared questions), Math (2 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: TCS or Yahoo?

TCS has 99 Easy, 108 Medium, and 21 Hard questions. Yahoo has 11 Easy, 20 Medium, and 3 Hard questions. TCS has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both TCS and Yahoo?

Start with the 16 shared problems since they cover what both companies ask most often. Then add 20 TCS-specific and 18 Yahoo-specific questions to round out your prep.

Explore More