← tcs roles

Interview question tracker

tcs Coding Interview Questions — All time

Practice 204 coding questions from tcs company-tagged LeetCode lists across all available reporting periods. Explore reported interview questions and track your progress.

Company-wide data from Fahad7177-jeh/leetcode-company-wise-questions; see its AGPL-3.0 license. All-time questions also use dataengineervishal/leetcode-companywise-questions (MIT license).

Reporting periods reflect source data, not verified interview dates. Questions can recur; inclusion does not guarantee they will appear in your interview.

Updated weekly · Latest source check: ⓘLatest successful check of the sources used by this company. A check does not necessarily mean the questions changed.

One question at a time.

Top questions 204

DoneQuestionLeetCode
Friday Purchases ISolve
Two SumSolve
Majority ElementSolve
Maximum SubarraySolve
Palindrome NumberSolve
3SumSolve
Best Time to Buy and Sell StockSolve
Bitwise ORs of SubarraysSolve
Check if Array Is Sorted and RotatedSolve
Count the Digits That Divide a NumberSolve
Fibonacci NumberSolve
Jump GameSolve
Longest Common PrefixSolve
Longest Palindromic SubstringSolve
Maximum Ascending Subarray SumSolve
Move ZeroesSolve
Reverse IntegerSolve
Rotate ArraySolve
Second Highest SalarySolve
Single NumberSolve
Sort ColorsSolve
Subarray Sum Equals KSolve
Unique PathsSolve
Valid AnagramSolve
Valid ParenthesesSolve
Add BinarySolve
Climbing StairsSolve
Container With Most WaterSolve
Find the Index of the First Occurrence in a StringSolve
Happy NumberSolve
Longest Substring Without Repeating CharactersSolve
Median of Two Sorted ArraysSolve
Merge IntervalsSolve
Merge Sorted ArraySolve
Minimum Cuts to Divide a CircleSolve
Minimum Operations to Exceed Threshold Value ISolve
Minimum Operations to Exceed Threshold Value IISolve
Missing NumberSolve
Next PermutationSolve
Palindrome Partitioning IVSolve
Plus OneSolve
Pow(x, n)Solve
Remove Duplicates from Sorted ArraySolve
Remove Letter To Equalize FrequencySolve
Reverse StringSolve
Reverse Words in a StringSolve
Roman to IntegerSolve
Sliding Window MaximumSolve
Sort an ArraySolve
Spiral MatrixSolve
Trapping Rain WaterSolve
Valid PalindromeSolve
Zigzag Grid Traversal With SkipSolve
4SumSolve
Add Two NumbersSolve
Article Views ISolve
Binary SearchSolve
Burst BalloonsSolve
Combination SumSolve
Contains DuplicateSolve
Contains Duplicate IISolve
Convert a Number to HexadecimalSolve
Count Number of Pairs With Absolute Difference KSolve
Count PrimesSolve
Delete Duplicate EmailsSolve
Delete the Middle Node of a Linked ListSolve
Department Top Three SalariesSolve
Diameter of Binary TreeSolve
Divisor GameSolve
Duplicate EmailsSolve
Edit DistanceSolve
Employee BonusSolve
Find Customer RefereeSolve
Find First and Last Position of Element in Sorted ArraySolve
Find the Duplicate NumberSolve
First Unique Character in a StringSolve
Fizz BuzzSolve
Generate ParenthesesSolve
Group AnagramsSolve
Integer to English WordsSolve
Jump Game IISolve
K-diff Pairs in an ArraySolve
Koko Eating BananasSolve
Largest NumberSolve
Largest Rectangle in HistogramSolve
Length of Last WordSolve
Longest Common SubsequenceSolve
Longest Consecutive SequenceSolve
Longest Subarray of 1's After Deleting One ElementSolve
Max Consecutive OnesSolve
Maximal RectangleSolve
Maximum Average Subarray ISolve
Maximum Product of Three NumbersSolve
Maximum Product SubarraySolve
Merge k Sorted ListsSolve
Merge Two Sorted ListsSolve
Middle of the Linked ListSolve
Minimum Moves to Equal Array Elements IISolve
N-QueensSolve
N-th Tribonacci NumberSolve
Number of Good PairsSolve
Partition Equal Subset SumSolve
Pascal's TriangleSolve
Peak Index in a Mountain ArraySolve
Power of TwoSolve
Product Sales Analysis ISolve
Project Employees ISolve
Recyclable and Low Fat ProductsSolve
Remove Duplicates from Sorted Array IISolve
Remove Nth Node From End of ListSolve
Replace Employee ID With The Unique IdentifierSolve
Reverse Linked ListSolve
Search in Rotated Sorted ArraySolve
Search in Rotated Sorted Array IISolve
Search Insert PositionSolve
Serialize and Deserialize Binary TreeSolve
Set Matrix ZeroesSolve
Single Element in a Sorted ArraySolve
Smallest Sufficient TeamSolve
Sort Array by Increasing FrequencySolve
Split Array With Same AverageSolve
Sqrt(x)Solve
SubsetsSolve
Sum of Unique ElementsSolve
Tallest BillboardSolve
The kth Factor of nSolve
Toeplitz MatrixSolve
Ugly NumberSolve
Water BottlesSolve
3Sum ClosestSolve
Best Time to Buy and Sell Stock IISolve
Big CountriesSolve
Binary Tree Maximum Path SumSolve
Check If a Word Occurs As a Prefix of Any Word in a SentenceSolve
Check If Array Pairs Are Divisible by kSolve
Coin ChangeSolve
Convert Sorted List to Binary Search TreeSolve
Count the Number of Fair PairsSolve
Create Hello World FunctionSolve
Distribute Coins in Binary TreeSolve
Factorial Trailing ZeroesSolve
Find All Duplicates in an ArraySolve
Find K Closest ElementsSolve
Find Minimum Operations to Make All Elements Divisible by ThreeSolve
Find Peak ElementSolve
Find Subsequence of Length K With the Largest SumSolve
Find the Highest AltitudeSolve
Find the Original Typed String ISolve
First Missing PositiveSolve
Flipping an ImageSolve
Guess Number Higher or LowerSolve
House RobberSolve
How Many Numbers Are Smaller Than the Current NumberSolve
Insert IntervalSolve
Intersection of Two ArraysSolve
Largest Local Values in a MatrixSolve
Letter Combinations of a Phone NumberSolve
Linked List CycleSolve
Linked List Cycle IISolve
Longest Palindromic SubsequenceSolve
LRU CacheSolve
Majority Element IISolve
Matrix Diagonal SumSolve
Maximum GapSolve
Maximum Nesting Depth of the ParenthesesSolve
Maximum Number of Events That Can Be Attended IISolve
Maximum Number of Vowels in a Substring of Given LengthSolve
Maximum Sum of Distinct Subarrays With Length KSolve
Maximum SwapSolve
Merge Strings AlternatelySolve
Min StackSolve
Minimum Add to Make Parentheses ValidSolve
Minimum Cost to Make at Least One Valid Path in a GridSolve
Minimum Size Subarray SumSolve
Number of ProvincesSolve
Odd Even Linked ListSolve
Path with Maximum ProbabilitySolve
Permutation in StringSolve
Product of Array Except SelfSolve
Remove All Occurrences of a SubstringSolve
Repeated Substring PatternSolve
Return Length of Arguments PassedSolve
Rotate ImageSolve
Rotate ListSolve
Rotate StringSolve
Running Sum of 1d ArraySolve
Same TreeSolve
Search a 2D MatrixSolve
Search a 2D Matrix IISolve
Sort Characters By FrequencySolve
String Compression IIISolve
Students and ExaminationsSolve
Subarray Product Less Than KSolve
Subsets IISolve
Task SchedulerSolve
Teemo AttackingSolve
Third Maximum NumberSolve
To Be Or Not To BeSolve
Unique Paths IISolve
Valid Perfect SquareSolve
Valid WordSolve
Word LadderSolve
Word SearchSolve
Zigzag ConversionSolve