← tcs roles

Interview question tracker

tcs SDE 1

The 253 highest-frequency questions from all time. Finish the strongest signals first.

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 253

DoneQuestionLeetCode
Friday Purchases ISolve
Two SumSolve
Longest Palindromic SubstringSolve
Palindrome NumberSolve
Maximum SubarraySolve
Container With Most WaterSolve
Move ZeroesSolve
Best Time to Buy and Sell StockSolve
Longest Common PrefixSolve
Rank Transform of an ArraySolve
Majority ElementSolve
Second Highest SalarySolve
Valid AnagramSolve
3SumSolve
First Missing PositiveSolve
Longest Substring Without Repeating CharactersSolve
Roman to IntegerSolve
Valid ParenthesesSolve
Fibonacci NumberSolve
Find the Index of the First Occurrence in a StringSolve
Reverse StringSolve
Single NumberSolve
Sort ColorsSolve
Integer to RomanSolve
Remove Duplicates from Sorted ArraySolve
Median of Two Sorted ArraysSolve
Merge Sorted ArraySolve
Reverse IntegerSolve
Contains DuplicateSolve
Jump GameSolve
Rotate ArraySolve
Spiral MatrixSolve
Subarray Sum Equals KSolve
Valid PalindromeSolve
Check if Array Is Sorted and RotatedSolve
Maximum Product SubarraySolve
Contains Duplicate IISolve
First Unique Character in a StringSolve
Group AnagramsSolve
Pow(x, n)Solve
Task SchedulerSolve
Zigzag Grid Traversal With SkipSolve
Climbing StairsSolve
Count the Digits That Divide a NumberSolve
Maximum Ascending Subarray SumSolve
Maximum Product of Three NumbersSolve
Remove Letter To Equalize FrequencySolve
Trapping Rain WaterSolve
Find First and Last Position of Element in Sorted ArraySolve
Largest Rectangle in HistogramSolve
Minimum Cuts to Divide a CircleSolve
Minimum Operations to Exceed Threshold Value ISolve
Minimum Operations to Exceed Threshold Value IISolve
Palindrome Partitioning IVSolve
Search in Rotated Sorted ArraySolve
Add BinarySolve
Bitwise ORs of SubarraysSolve
Longest Consecutive SequenceSolve
Maximum Average Subarray ISolve
Merge IntervalsSolve
Peak Index in a Mountain ArraySolve
Plus OneSolve
Set Matrix ZeroesSolve
Sqrt(x)Solve
4SumSolve
Add Two NumbersSolve
Burst BalloonsSolve
Count Number of Pairs With Absolute Difference KSolve
Duplicate EmailsSolve
Employees Earning More Than Their ManagersSolve
House RobberSolve
Kth Smallest Element in a BSTSolve
Length of Last WordSolve
Letter Combinations of a Phone NumberSolve
Missing NumberSolve
Search Insert PositionSolve
Single Element in a Sorted ArraySolve
Smallest Sufficient TeamSolve
Sort an ArraySolve
Split Array With Same AverageSolve
Squares of a Sorted ArraySolve
Toeplitz MatrixSolve
Two Sum II - Input Array Is SortedSolve
Unique PathsSolve
Count PrimesSolve
Happy NumberSolve
Middle of the Linked ListSolve
Min StackSolve
Next PermutationSolve
Pascal's TriangleSolve
Product of Array Except SelfSolve
Product Sales Analysis ISolve
Remove Nth Node From End of ListSolve
Reverse Linked ListSolve
Sliding Window MaximumSolve
Diameter of Binary TreeSolve
Find Minimum in Rotated Sorted ArraySolve
Find Peak ElementSolve
Find the Duplicate NumberSolve
Generate ParenthesesSolve
Koko Eating BananasSolve
Longest Increasing SubsequenceSolve
Longest Palindromic SubsequenceSolve
Max Consecutive OnesSolve
Merge k Sorted ListsSolve
N-QueensSolve
Palindrome Linked ListSolve
Partition Equal Subset SumSolve
Permutation in StringSolve
Remove Duplicates from Sorted ListSolve
Running Sum of 1d ArraySolve
Search in Rotated Sorted Array IISolve
Serialize and Deserialize Binary TreeSolve
String to Integer (atoi)Solve
SubsetsSolve
Subsets IISolve
Tallest BillboardSolve
Article Views ISolve
Assign CookiesSolve
Best Time to Buy and Sell Stock IISolve
Combine Two TablesSolve
Consecutive NumbersSolve
Customer Who Visited but Did Not Make Any TransactionsSolve
Daily TemperaturesSolve
Decode StringSolve
Delete Duplicate EmailsSolve
Delete the Middle Node of a Linked ListSolve
Find Missing ElementsSolve
Find Pivot IndexSolve
Find Subsequence of Length K With the Largest SumSolve
Find the PeaksSolve
Fizz BuzzSolve
Jump Game IISolve
K-diff Pairs in an ArraySolve
Lemonade ChangeSolve
Longest Subarray of 1's After Deleting One ElementSolve
LRU CacheSolve
Managers with at Least 5 Direct ReportsSolve
Maximum Total Subarray Value ISolve
Minimum Depth of Binary TreeSolve
Minimum Moves to Equal Array Elements IISolve
Next Greater Element ISolve
Non-overlapping IntervalsSolve
Number of IslandsSolve
PermutationsSolve
Range Sum Query - ImmutableSolve
Remove ElementSolve
Reorder ListSolve
Reverse Words in a StringSolve
Same TreeSolve
Search a 2D MatrixSolve
String CompressionSolve
Third Maximum NumberSolve
Top K Frequent ElementsSolve
Ugly NumberSolve
3Sum ClosestSolve
Asteroid CollisionSolve
Binary SearchSolve
Binary Tree Inorder TraversalSolve
Binary Tree Maximum Path SumSolve
Boats to Save PeopleSolve
Bulb SwitcherSolve
Check If Array Pairs Are Divisible by kSolve
Contiguous ArraySolve
Continuous Subarray SumSolve
Convert Sorted List to Binary Search TreeSolve
Count and SaySolve
Count Odd Numbers in an Interval RangeSolve
Count the Number of Fair PairsSolve
Create Hello World FunctionSolve
Department Highest SalarySolve
Divisor GameSolve
Employee BonusSolve
Factorial Trailing ZeroesSolve
Find All Duplicates in an ArraySolve
Find All Numbers Disappeared in an ArraySolve
Find Numbers with Even Number of DigitsSolve
Find Smallest Letter Greater Than TargetSolve
Find the Original Typed String ISolve
Find the Winner of the Circular GameSolve
Flood FillSolve
Fruit Into BasketsSolve
Gas StationSolve
GCD of Odd and Even SumsSolve
Guess Number Higher or LowerSolve
How Many Numbers Are Smaller Than the Current NumberSolve
Insert IntervalSolve
Integer to English WordsSolve
Intersection of Two Arrays IISolve
Intersection of Two Linked ListsSolve
Isomorphic StringsSolve
Kth Largest Element in an ArraySolve
Largest NumberSolve
Linked List CycleSolve
Linked List Cycle IISolve
Longest Balanced Substring IISolve
Longest Common SubsequenceSolve
Longest PalindromeSolve
Majority Element IISolve
Max Number of K-Sum PairsSolve
Maximal RectangleSolve
Maximum Depth of Binary TreeSolve
Maximum GapSolve
Maximum Ice Cream BarsSolve
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 Product of Two Elements in an ArraySolve
Maximum Sum of Distinct Subarrays With Length KSolve
Merge Two Sorted ListsSolve
Min Cost Climbing StairsSolve
Minimum Number of Operations to Make Array ContinuousSolve
Minimum Number of Operations to Reinitialize a PermutationSolve
Minimum Size Subarray SumSolve
Next Greater Element IISolve
Nim GameSolve
Nth Highest SalarySolve
Odd Even Linked ListSolve
Online Stock SpanSolve
Power of TwoSolve
Project Employees ISolve
Ransom NoteSolve
Recyclable and Low Fat ProductsSolve
Reducing DishesSolve
Regular Expression MatchingSolve
Remove All Occurrences of a SubstringSolve
Remove Linked List ElementsSolve
Remove Outermost ParenthesesSolve
Repeated Substring PatternSolve
Replace Employee ID With The Unique IdentifierSolve
Reshape the MatrixSolve
Return Length of Arguments PassedSolve
Reverse Nodes in k-GroupSolve
Rotate ImageSolve
Rotate StringSolve
Rotting OrangesSolve
Search in a Binary Search TreeSolve
Set MismatchSolve
Smallest Integer Divisible by KSolve
Smallest Range Covering Elements from K ListsSolve
Sort Array By ParitySolve
Spiral Matrix IISolve
Subarray Product Less Than KSolve
Subtract the Product and Sum of Digits of an IntegerSolve
Subtree of Another TreeSolve
Swap Nodes in PairsSolve
Teemo AttackingSolve
Top K Frequent WordsSolve
Valid WordSolve
Vertical Order Traversal of a Binary TreeSolve
Water BottlesSolve
Word LadderSolve
Zigzag ConversionSolve