I

Infosys

100 questions tracked99 with solutions
🔍
Frequency scoreSorted highest → lowest frequency✓ Our Solution = we have a detailed walkthrough

Showing 100 of 100 questions

1
EasyTwo Sum✓ Our Solution
100
ArrayHash Table
LeetCode ↗56% acc.
2
HardFind Building Where Alice and Bob Can Meet✓ Our Solution
95
ArrayBinary SearchStackBinary Indexed Tree+3
LeetCode ↗52% acc.
3
HardMinimum Reverse Operations✓ Our Solution
93
ArrayBreadth-First SearchOrdered Set
LeetCode ↗15% acc.
4
HardCount the Number of Ideal Arrays✓ Our Solution
91
MathDynamic ProgrammingCombinatoricsNumber Theory
LeetCode ↗57% acc.
5
EasyTransform Array by Parity✓ Our Solution
89
ArraySortingCounting
LeetCode ↗90% acc.
6
HardMaximum Sum of Subsequence With Non-adjacent Elements✓ Our Solution
89
ArrayDivide and ConquerDynamic ProgrammingSegment Tree
LeetCode ↗15% acc.
7
MediumEat Pizzas!✓ Our Solution
89
ArrayGreedySorting
LeetCode ↗32% acc.
8
MediumLongest Substring Without Repeating Characters✓ Our Solution
89
Hash TableStringSliding Window
LeetCode ↗37% acc.
9
MediumDetermine the Minimum Sum of a k-avoiding Array✓ Our Solution
86
MathGreedy
LeetCode ↗60% acc.
10
EasySort the People✓ Our Solution
86
ArrayHash TableStringSorting
LeetCode ↗85% acc.
11
HardNumber of Beautiful Integers in the Range✓ Our Solution
86
MathDynamic Programming
LeetCode ↗20% acc.
12
MediumLongest Well-Performing Interval✓ Our Solution
86
ArrayHash TableStackMonotonic Stack+1
LeetCode ↗36% acc.
13
MediumMaximum Product After K Increments✓ Our Solution
86
ArrayGreedyHeap (Priority Queue)
LeetCode ↗42% acc.
14
HardMaximum Segment Sum After Removals✓ Our Solution
86
ArrayUnion FindPrefix SumOrdered Set
LeetCode ↗48% acc.
15
HardMinimum Total Distance Traveled✓ Our Solution
86
ArrayDynamic ProgrammingSorting
LeetCode ↗59% acc.
16
MediumMinimum Addition to Make Integer Beautiful✓ Our Solution
86
MathGreedy
LeetCode ↗38% acc.
17
MediumNumber of Nodes With Value One
86
TreeDepth-First SearchBreadth-First SearchBinary Tree
LeetCode ↗66% acc.
18
MediumCan Convert String in K Moves✓ Our Solution
86
Hash TableString
LeetCode ↗36% acc.
19
MediumThe Number of Beautiful Subsets✓ Our Solution
86
ArrayHash TableMathDynamic Programming+3
LeetCode ↗51% acc.
20
HardStone Game VIII✓ Our Solution
86
ArrayMathDynamic ProgrammingPrefix Sum+1
LeetCode ↗53% acc.
21
MediumMaximum Number of Consecutive Values You Can Make✓ Our Solution
86
ArrayGreedySorting
LeetCode ↗62% acc.
22
EasyBest Time to Buy and Sell Stock✓ Our Solution
86
ArrayDynamic Programming
LeetCode ↗55% acc.
23
MediumFind the Minimum Possible Sum of a Beautiful Array✓ Our Solution
86
MathGreedy
LeetCode ↗36% acc.
24
EasyValid Parentheses✓ Our Solution
86
StringStack
LeetCode ↗42% acc.
25
HardMaximize the Minimum Game Score✓ Our Solution
86
ArrayBinary SearchGreedy
LeetCode ↗25% acc.
26
MediumLargest Number After Mutating Substring✓ Our Solution
86
ArrayStringGreedy
LeetCode ↗37% acc.
27
HardFind the Number of Subsequences With Equal GCD✓ Our Solution
86
ArrayMathDynamic ProgrammingNumber Theory
LeetCode ↗29% acc.
28
EasyMerge Sorted Array✓ Our Solution
80
ArrayTwo PointersSorting
LeetCode ↗53% acc.
29
MediumNext Permutation✓ Our Solution
80
ArrayTwo Pointers
LeetCode ↗43% acc.
30
EasyPalindrome Number✓ Our Solution
77
Math
LeetCode ↗59% acc.
31
EasyRemove Duplicates from Sorted Array✓ Our Solution
77
ArrayTwo Pointers
LeetCode ↗60% acc.
32
MediumMaximum Subarray✓ Our Solution
77
ArrayDivide and ConquerDynamic Programming
LeetCode ↗52% acc.
33
EasyReverse String✓ Our Solution
73
Two PointersString
LeetCode ↗80% acc.
34
EasyLongest Common Prefix✓ Our Solution
68
StringTrie
LeetCode ↗45% acc.
35
MediumRotate Image✓ Our Solution
68
ArrayMathMatrix
LeetCode ↗78% acc.
36
HardTrapping Rain Water✓ Our Solution
68
ArrayTwo PointersDynamic ProgrammingStack+1
LeetCode ↗65% acc.
37
MediumSecond Highest Salary✓ Our Solution
68
Database
LeetCode ↗44% acc.
38
EasyValid Anagram✓ Our Solution
68
Hash TableStringSorting
LeetCode ↗67% acc.
39
MediumProduct of Array Except Self✓ Our Solution
68
ArrayPrefix Sum
LeetCode ↗68% acc.
40
EasyFibonacci Number✓ Our Solution
62
MathDynamic ProgrammingRecursionMemoization
LeetCode ↗73% acc.
41
MediumReverse Integer✓ Our Solution
62
Math
LeetCode ↗30% acc.
42
MediumCoin Change✓ Our Solution
62
ArrayDynamic ProgrammingBreadth-First Search
LeetCode ↗46% acc.
43
62
ArrayTwo PointersSorting
LeetCode ↗37% acc.
44
MediumGroup Anagrams✓ Our Solution
62
ArrayHash TableStringSorting
LeetCode ↗71% acc.
45
MediumGenerate Parentheses✓ Our Solution
62
StringDynamic ProgrammingBacktracking
LeetCode ↗77% acc.
46
MediumRotate Array✓ Our Solution
62
ArrayMathTwo Pointers
LeetCode ↗43% acc.
47
MediumSpiral Matrix✓ Our Solution
62
ArrayMatrixSimulation
LeetCode ↗54% acc.
48
MediumMerge Intervals✓ Our Solution
62
ArraySorting
LeetCode ↗49% acc.
49
MediumLongest Consecutive Sequence✓ Our Solution
55
ArrayHash TableUnion Find
LeetCode ↗47% acc.
50
MediumReverse Words in a String✓ Our Solution
55
Two PointersString
LeetCode ↗52% acc.
51
MediumKth Largest Element in an Array✓ Our Solution
55
ArrayDivide and ConquerSortingHeap (Priority Queue)+1
LeetCode ↗68% acc.
52
MediumSort an Array✓ Our Solution
55
ArrayDivide and ConquerSortingHeap (Priority Queue)+4
LeetCode ↗57% acc.
53
MediumTwo Sum II - Input Array Is Sorted✓ Our Solution
55
ArrayTwo PointersBinary Search
LeetCode ↗63% acc.
54
EasyMove Zeroes✓ Our Solution
55
ArrayTwo Pointers
LeetCode ↗63% acc.
55
EasyFind the Index of the First Occurrence in a String✓ Our Solution
55
Two PointersStringString Matching
LeetCode ↗45% acc.
56
MediumRearrange Array Elements by Sign✓ Our Solution
55
ArrayTwo PointersSimulation
LeetCode ↗84% acc.
57
MediumLongest Palindromic Substring✓ Our Solution
55
Two PointersStringDynamic Programming
LeetCode ↗36% acc.
58
MediumNumber of Islands✓ Our Solution
55
ArrayDepth-First SearchBreadth-First SearchUnion Find+1
LeetCode ↗62% acc.
59
MediumPalindrome Partitioning✓ Our Solution
55
StringDynamic ProgrammingBacktracking
LeetCode ↗72% acc.
60
MediumAdd Two Numbers✓ Our Solution
55
Linked ListMathRecursion
LeetCode ↗46% acc.
61
MediumSingle Element in a Sorted Array✓ Our Solution
55
ArrayBinary Search
LeetCode ↗59% acc.
62
HardReverse Nodes in k-Group✓ Our Solution
55
Linked ListRecursion
LeetCode ↗63% acc.
63
EasyClimbing Stairs✓ Our Solution
55
MathDynamic ProgrammingMemoization
LeetCode ↗54% acc.
64
EasySqrt(x)✓ Our Solution
55
MathBinary Search
LeetCode ↗40% acc.
65
EasyMerge Two Sorted Lists✓ Our Solution
55
Linked ListRecursion
LeetCode ↗67% acc.
66
EasyMissing Number✓ Our Solution
55
ArrayHash TableMathBinary Search+2
LeetCode ↗70% acc.
67
MediumHouse Robber✓ Our Solution
55
ArrayDynamic Programming
LeetCode ↗52% acc.
68
MediumGas Station✓ Our Solution
55
ArrayGreedy
LeetCode ↗46% acc.
69
EasyCreate a DataFrame from List✓ Our Solution
44
LeetCode ↗81% acc.
70
EasyMaximum Product of Three Numbers✓ Our Solution
44
ArrayMathSorting
LeetCode ↗45% acc.
71
44
ArrayTwo PointersSorting
LeetCode ↗38% acc.
72
HardMinimum Window Substring✓ Our Solution
44
Hash TableStringSliding Window
LeetCode ↗45% acc.
73
MediumInteger to Roman✓ Our Solution
44
Hash TableMathString
LeetCode ↗69% acc.
74
MediumKoko Eating Bananas✓ Our Solution
44
ArrayBinary Search
LeetCode ↗49% acc.
75
MediumBest Time to Buy and Sell Stock II✓ Our Solution
44
ArrayDynamic ProgrammingGreedy
LeetCode ↗70% acc.
76
MediumSubsets✓ Our Solution
44
ArrayBacktrackingBit Manipulation
LeetCode ↗81% acc.
77
MediumContainer With Most Water✓ Our Solution
44
ArrayTwo PointersGreedy
LeetCode ↗58% acc.
78
EasyImplement Queue using Stacks✓ Our Solution
44
StackDesignQueue
LeetCode ↗68% acc.
79
MediumSearch in Rotated Sorted Array✓ Our Solution
44
ArrayBinary Search
LeetCode ↗43% acc.
80
EasyBinary Search✓ Our Solution
44
ArrayBinary Search
LeetCode ↗60% acc.
81
EasyIsomorphic Strings✓ Our Solution
44
Hash TableString
LeetCode ↗47% acc.
82
EasyTo Lower Case✓ Our Solution
44
String
LeetCode ↗84% acc.
83
EasyKids With the Greatest Number of Candies✓ Our Solution
44
Array
LeetCode ↗88% acc.
84
MediumSubarray Sum Equals K✓ Our Solution
44
ArrayHash TablePrefix Sum
LeetCode ↗45% acc.
85
MediumCombination Sum✓ Our Solution
44
ArrayBacktracking
LeetCode ↗75% acc.
86
EasyMaximum Depth of Binary Tree✓ Our Solution
44
TreeDepth-First SearchBreadth-First SearchBinary Tree
LeetCode ↗77% acc.
87
MediumString to Integer (atoi)✓ Our Solution
44
String
LeetCode ↗19% acc.
88
MediumJump Game✓ Our Solution
44
ArrayDynamic ProgrammingGreedy
LeetCode ↗39% acc.
89
MediumCar Fleet✓ Our Solution
44
ArrayStackSortingMonotonic Stack
LeetCode ↗53% acc.
90
HardMedian of Two Sorted Arrays✓ Our Solution
44
ArrayBinary SearchDivide and Conquer
LeetCode ↗44% acc.
91
MediumEdit Distance✓ Our Solution
44
StringDynamic Programming
LeetCode ↗59% acc.
92
EasyGreatest Common Divisor of Strings✓ Our Solution
44
MathString
LeetCode ↗53% acc.
93
EasyReplace Employee ID With The Unique Identifier✓ Our Solution
44
Database
LeetCode ↗84% acc.
94
MediumFind the Duplicate Number✓ Our Solution
44
ArrayTwo PointersBinary SearchBit Manipulation
LeetCode ↗63% acc.
95
HardMaximum Score Words Formed by Letters✓ Our Solution
44
ArrayStringDynamic ProgrammingBacktracking+2
LeetCode ↗82% acc.
96
EasyValid Palindrome✓ Our Solution
44
Two PointersString
LeetCode ↗51% acc.
97
MediumCombination Sum II✓ Our Solution
44
ArrayBacktracking
LeetCode ↗58% acc.
98
MediumPow(x, n)✓ Our Solution
44
MathRecursion
LeetCode ↗37% acc.
99
EasyAverage Time of Process per Machine✓ Our Solution
44
Database
LeetCode ↗69% acc.
100
EasyRoman to Integer✓ Our Solution
44
Hash TableMathString
LeetCode ↗65% acc.