TCS vs Twitter Interview Questions

TCS lists 228 LeetCode interview questions while Twitter lists 53. They share 13 problems — 6% of TCS's bank and 25% of Twitter's. Focus on the overlap first, then drill into 215 TCS-only and 40 Twitter-only questions.

Read the full TCS vs Twitter preparation guide →

Overview

TCS

228 questions

Easy 99Medium 108Hard 21
Twitter

53 questions

Easy 8Medium 33Hard 12

Preparation Strategy

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

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

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

Difficulty Comparison

Easy
TCS
99
Twitter
8
Medium
TCS
108
Twitter
33
Hard
TCS
21
Twitter
12

Top Shared Topics

13 Shared Questions

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

ProblemDifficulty
Valid ParenthesesEasy
Trapping Rain WaterHard
Merge IntervalsMedium
Pascal's TriangleEasy
Happy NumberEasy
Merge k Sorted ListsHard
LRU CacheMedium
Reverse Linked ListEasy
Remove All Occurrences of a SubstringMedium
Regular Expression MatchingHard
Integer to RomanMedium
Rotting OrangesMedium
Multiply StringsMedium

Unique to TCS (215)

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

ProblemDifficulty
Friday Purchases IMedium
Two SumEasy
Longest Palindromic SubstringMedium
Palindrome NumberEasy
Maximum SubarrayMedium
Move ZeroesEasy
Majority ElementEasy
Longest Common PrefixEasy
Best Time to Buy and Sell StockEasy
Sort ColorsMedium
Valid AnagramEasy
Find the Index of the First Occurrence in a StringEasy

Unique to Twitter (40)

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

ProblemDifficulty
Wildcard MatchingHard
Permutation SequenceHard
Word Break IIHard
Time Needed to Buy TicketsEasy
Max Points on a LineHard
One Edit DistanceMedium
Implement Trie (Prefix Tree)Medium
The Skyline ProblemHard
Lowest Common Ancestor of a Binary Search TreeMedium
Flatten 2D VectorMedium
Alien DictionaryHard
Best Meeting PointHard

Frequently Asked Questions

How many LeetCode questions do TCS and Twitter share?

TCS and Twitter share 13 LeetCode interview questions. 215 problems appear only in TCS's list and 40 appear only in Twitter's list.

What topics overlap most between TCS and Twitter?

The most common shared topics between TCS and Twitter are String (5 shared questions), Array (4 shared questions), Stack (3 shared questions), Dynamic Programming (3 shared questions), Hash Table (3 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: TCS or Twitter?

TCS has 99 Easy, 108 Medium, and 21 Hard questions. Twitter has 8 Easy, 33 Medium, and 12 Hard questions. Twitter has a higher proportion of Hard problems in its interview set.

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

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

Explore More