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.
Overview
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
Top Shared Topics
13 Shared Questions
High-priority problems to practice for both TCS and Twitter.
| Problem | Difficulty |
|---|---|
| Valid Parentheses | Easy |
| Trapping Rain Water | Hard |
| Merge Intervals | Medium |
| Pascal's Triangle | Easy |
| Happy Number | Easy |
| Merge k Sorted Lists | Hard |
| LRU Cache | Medium |
| Reverse Linked List | Easy |
| Remove All Occurrences of a Substring | Medium |
| Regular Expression Matching | Hard |
| Integer to Roman | Medium |
| Rotting Oranges | Medium |
| Multiply Strings | Medium |
Unique to TCS (215)
Problems in TCS's list that do not appear at Twitter.
| Problem | Difficulty |
|---|---|
| Friday Purchases I | Medium |
| Two Sum | Easy |
| Longest Palindromic Substring | Medium |
| Palindrome Number | Easy |
| Maximum Subarray | Medium |
| Move Zeroes | Easy |
| Majority Element | Easy |
| Longest Common Prefix | Easy |
| Best Time to Buy and Sell Stock | Easy |
| Sort Colors | Medium |
| Valid Anagram | Easy |
| Find the Index of the First Occurrence in a String | Easy |
Unique to Twitter (40)
Problems in Twitter's list that do not appear at TCS.
| Problem | Difficulty |
|---|---|
| Wildcard Matching | Hard |
| Permutation Sequence | Hard |
| Word Break II | Hard |
| Time Needed to Buy Tickets | Easy |
| Max Points on a Line | Hard |
| One Edit Distance | Medium |
| Implement Trie (Prefix Tree) | Medium |
| The Skyline Problem | Hard |
| Lowest Common Ancestor of a Binary Search Tree | Medium |
| Flatten 2D Vector | Medium |
| Alien Dictionary | Hard |
| Best Meeting Point | Hard |
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.