QUESTIONS BY COMPANY

TCS LeetCode Questions 2026

Browse LeetCode problems frequently asked by TCS. Filter by difficulty and timeframe to focus your interview prep.

Last updated: 20 May 2026

ProblemDifficultyFrequencyTopics
Two SumEASY
87.5%
ArrayHash Table
Add Two NumbersMEDIUM
50%
Linked ListMathRecursion
Longest Substring Without Repeating CharactersMEDIUM
62.5%
Hash TableStringSliding Window
Longest Palindromic SubstringMEDIUM
75%
Two PointersStringDynamic Programming
Reverse IntegerMEDIUM
50%
Math
Palindrome NumberEASY
75%
Math
Container With Most WaterMEDIUM
50%
ArrayTwo PointersGreedy
Roman to IntegerEASY
50%
Hash TableMathString
Longest Common PrefixEASY
62.5%
ArrayStringTrie
4SumMEDIUM
37.5%
ArrayTwo PointersSorting
3SumMEDIUM
62.5%
ArrayTwo PointersSorting
Merge Two Sorted ListsEASY
37.5%
Linked ListRecursion
Generate ParenthesesMEDIUM
37.5%
StringDynamic ProgrammingBacktracking
Remove Duplicates from Sorted ArrayEASY
50%
ArrayTwo Pointers
Find the Index of the First Occurrence in a StringEASY
62.5%
Two PointersStringString Matching
Valid ParenthesesEASY
62.5%
StringStack
Next PermutationMEDIUM
37.5%
ArrayTwo Pointers
Find First and Last Position of Element in Sorted ArrayMEDIUM
50%
ArrayBinary Search
Trapping Rain WaterHARD
50%
ArrayTwo PointersDynamic ProgrammingStackMonotonic Stack
Pow(x, n)MEDIUM
50%
MathRecursion

Need Help Solving These Problems?

CodingInterviewAI can instantly identify algorithms and generate optimal solutions for any LeetCode problem. Get step-by-step explanations and ace your next technical interview.

See How It Works