QUESTIONS BY COMPANY

TCS LeetCode Questions

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

Dataset last changed: 22 September 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
62.5%
Math
Palindrome NumberEASY
75%
Math
Container With Most WaterMEDIUM
62.5%
ArrayTwo PointersGreedy
Roman to IntegerEASY
50%
Hash TableMathString
Longest Common PrefixEASY
62.5%
ArrayStringTrie
4SumMEDIUM
50%
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
62.5%
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