Interview Intel · tcs

tcs coding interview
questions, leaked.

130 problems reported across recent tcs interviews. Top patterns: array, math, string. The list below is what most candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

TCS pulls from a pool of 130 problems, most of them easy to medium. Arrays dominate their interview, appearing in 71 problems. You'll see two-pointers, hash tables, and dynamic programming stacked on top of arrays repeatedly. Math and string problems fill the gaps. The good news: 67 of the 130 are easy, so speed and pattern recognition matter more than grinding obscure problems. The risky part: you'll face an array problem under time pressure, and if you freeze on subarray logic or prefix sums, the interview stalls. That's where StealthCoder acts as your invisible backstop on the live assessment, solving it in seconds so you stay in the round.

Tracked problems
130
Easy
67/ 52%
Medium
54/ 42%
Hard
9/ 7%

Top problems at tcs

leaked_problems.csv50 rows
#ProblemDiffFrequency
01Two SumEASY
84.5
02Palindrome NumberEASY
76.6
03Majority ElementEASY
72.2
04Best Time to Buy and Sell StockEASY
68.6
05Maximum SubarrayMEDIUM
66.5
06Longest Common PrefixEASY
64.1
07Subarray Sum Equals KMEDIUM
61.4
08Move ZeroesEASY
61.4
09Rotate ArrayMEDIUM
61.4
10Valid ParenthesesEASY
61.4
11Fibonacci NumberEASY
61.4
12Reverse IntegerMEDIUM
59.9
13Jump GameMEDIUM
59.9
14Count the Digits That Divide a NumberEASY
59.9
15Maximum Ascending Subarray SumEASY
59.9
16Valid AnagramEASY
56.4
17Single NumberEASY
56.4
18Roman to IntegerEASY
56.4
19Unique PathsMEDIUM
56.4
20Merge Sorted ArrayEASY
56.4
21Remove Letter To Equalize FrequencyEASY
56.4
22Minimum Cuts to Divide a CircleEASY
56.4
23Minimum Operations to Exceed Threshold Value IEASY
56.4
24Minimum Operations to Exceed Threshold Value IIMEDIUM
56.4
25Palindrome Partitioning IVHARD
56.4
26Find the Index of the First Occurrence in a StringEASY
54.4
27Bitwise ORs of SubarraysMEDIUM
54.4
28Climbing StairsEASY
54.4
293SumMEDIUM
54.4
30Remove Duplicates from Sorted ArrayEASY
52.2
31Longest Palindromic SubstringMEDIUM
52.2
32Pow(x, n)MEDIUM
49.7
33Second Highest SalaryMEDIUM
49.7
34Sort ColorsMEDIUM
49.7
35Plus OneEASY
49.7
36Length of Last WordEASY
49.7
37Container With Most WaterMEDIUM
49.7
38Spiral MatrixMEDIUM
46.8
39Trapping Rain WaterHARD
46.8
40Contains DuplicateEASY
46.8
41Happy NumberEASY
46.8
42Reverse Words in a StringMEDIUM
46.8
43Sliding Window MaximumHARD
46.8
44Missing NumberEASY
46.8
45Best Time to Buy and Sell Stock IIMEDIUM
43.4
46Set Matrix ZeroesMEDIUM
43.4
47Longest Substring Without Repeating CharactersMEDIUM
43.4
48Max Consecutive Ones IIIMEDIUM
43.4
49Add Two NumbersMEDIUM
43.4
50Toeplitz MatrixEASY
43.4

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual tcs OA. The proctor cannot see it. Screen share cannot detect it. Made by a working FAANG engineer who treats the OA the way companies treat hiring: as a game with rules you should know.

Get StealthCoder
Topic distribution
What this means

Array problems are the spine of TCS interviews. Two Sum, Majority Element, Maximum Subarray, Rotate Array, and Subarray Sum Equals K all test the same core skill: iteration with hash tables or pointers to cut time complexity. Math rounds out 28 problems, mostly single-digit arithmetic and number properties (Palindrome Number, Fibonacci, digit division). Strings are lighter (26 problems) but non-negotiable. Dynamic programming appears in 24 problems, often layered onto arrays (Jump Game, Maximum Subarray). Prepare arrays first, get comfortable with prefix sums and two-pointer manipulation, then lock in hash-table lookups. Binary search, bit manipulation, and recursion are lower frequency but show up late in rounds. If you blank on a subarray pattern mid-OA, StealthCoder surfaces the solution invisibly while you stay calm and move forward.

Companies with similar patterns

If you prepped for tcs, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass tcs.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Made by a working FAANG engineer who treats the OA the way companies treat hiring: as a game with rules you should know. Works on HackerRank, CodeSignal, CoderPad, and Karat.

tcs interview FAQ

How many array problems should I solve before the TCS interview?+

Array problems account for 71 of 130 TCS problems. Solve Two Sum, Majority Element, Maximum Subarray, Rotate Array, and Move Zeroes first. These five cover the core patterns. Then practice Subarray Sum Equals K and Jump Game to get comfortable with prefix sums and DP overlays on arrays.

Is math enough to prep for TCS, or do I need to drill strings too?+

Math is 21 percent of the pool, strings 20 percent. Both matter equally. Palindrome Number, Fibonacci, and digit problems are common. But you can't ignore Valid Parentheses and Longest Common Prefix. Spend 30 percent of prep time on math, 25 percent on strings, the rest on arrays and two-pointers.

Should I study dynamic programming early or late for TCS?+

DP appears in 24 problems, usually combined with arrays. Don't isolate it. Learn DP through array problems: Best Time to Buy and Sell Stock, Maximum Subarray, Jump Game. Once you're solid on array iteration, DP becomes the optimization layer, not a separate skill.

What's the hardest topic I'll see in a TCS interview?+

Only 9 of 130 problems are hard. Bit manipulation, recursion, and matrix problems are the lowest frequency. If you hit one, it's a bonus round. Prepare them last. The interview is won on medium-difficulty arrays and hash-table problems, not rare edge cases.

Can I pass TCS by only solving easy problems?+

67 of 130 are easy, but most OAs mix difficulty. You'll face easy problems in rounds one and two, medium in round three. Two Sum, Move Zeroes, Valid Parentheses are safe easy wins. Practice five to seven medium problems (Rotate Array, Reverse Integer, Maximum Subarray) to handle the jump.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and tcs. StealthCoder is not affiliated with tcs.