Skip to main content

Infosys LeetCode Questions

IDURLTitleDifficultyAcceptance %Frequency %
1https://leetcode.com/problems/two-sumTwo SumEasy57.1%100.0%
2https://leetcode.com/problems/add-two-numbersAdd Two NumbersMedium47.9%50.0%
3https://leetcode.com/problems/longest-substring-without-repeating-charactersLongest Substring Without Repeating CharactersMedium38.5%87.5%
5https://leetcode.com/problems/longest-palindromic-substringLongest Palindromic SubstringMedium37.3%75.0%
7https://leetcode.com/problems/reverse-integerReverse IntegerMedium31.5%50.0%
9https://leetcode.com/problems/palindrome-numberPalindrome NumberEasy60.2%87.5%
11https://leetcode.com/problems/container-with-most-waterContainer With Most WaterMedium59.5%50.0%
12https://leetcode.com/problems/integer-to-romanInteger to RomanMedium70.4%37.5%
14https://leetcode.com/problems/longest-common-prefixLongest Common PrefixEasy47.1%62.5%
15https://leetcode.com/problems/3sum3SumMedium38.6%62.5%
20https://leetcode.com/problems/valid-parenthesesValid ParenthesesEasy43.7%75.0%
21https://leetcode.com/problems/merge-two-sorted-listsMerge Two Sorted ListsEasy67.9%50.0%
25https://leetcode.com/problems/reverse-nodes-in-k-groupReverse Nodes in k-GroupHard65.3%50.0%
26https://leetcode.com/problems/remove-duplicates-from-sorted-arrayRemove Duplicates from Sorted ArrayEasy62.2%62.5%
1946https://leetcode.com/problems/largest-number-after-mutating-substringLargest Number After Mutating SubstringMedium37.8%75.0%
31https://leetcode.com/problems/next-permutationNext PermutationMedium44.7%75.0%
39https://leetcode.com/problems/combination-sumCombination SumMedium76.1%37.5%
42https://leetcode.com/problems/trapping-rain-waterTrapping Rain WaterHard66.8%62.5%
49https://leetcode.com/problems/group-anagramsGroup AnagramsMedium72.2%62.5%
53https://leetcode.com/problems/maximum-subarrayMaximum SubarrayMedium53.0%75.0%
70https://leetcode.com/problems/climbing-stairsClimbing StairsEasy53.9%62.5%
72https://leetcode.com/problems/edit-distanceEdit DistanceMedium60.1%50.0%
88https://leetcode.com/problems/merge-sorted-arrayMerge Sorted ArrayEasy54.4%62.5%
2940https://leetcode.com/problems/find-building-where-alice-and-bob-can-meetFind Building Where Alice and Bob Can MeetHard52.2%75.0%
121https://leetcode.com/problems/best-time-to-buy-and-sell-stockBest Time to Buy and Sell StockEasy56.4%75.0%
134https://leetcode.com/problems/gas-stationGas StationMedium47.5%75.0%
176https://leetcode.com/problems/second-highest-salarySecond Highest SalaryMedium46.3%75.0%
189https://leetcode.com/problems/rotate-arrayRotate ArrayMedium44.4%62.5%
1124https://leetcode.com/problems/longest-well-performing-intervalLongest Well-Performing IntervalMedium37.0%75.0%
198https://leetcode.com/problems/house-robberHouse RobberMedium52.9%62.5%
200https://leetcode.com/problems/number-of-islandsNumber of IslandsMedium63.8%50.0%
268https://leetcode.com/problems/missing-numberMissing NumberEasy71.6%37.5%
2233https://leetcode.com/problems/maximum-product-after-k-incrementsMaximum Product After K IncrementsMedium43.1%75.0%
344https://leetcode.com/problems/reverse-stringReverse StringEasy80.5%50.0%
69https://leetcode.com/problems/sqrtxSqrt(x)Easy41.4%50.0%
3165https://leetcode.com/problems/maximum-sum-of-subsequence-with-non-adjacent-elementsMaximum Sum of Subsequence With Non-adjacent ElementsHard15.4%75.0%
1255https://leetcode.com/problems/maximum-score-words-formed-by-lettersMaximum Score Words Formed by LettersHard81.6%37.5%
2338https://leetcode.com/problems/count-the-number-of-ideal-arraysCount the Number of Ideal ArraysHard56.9%75.0%
2382https://leetcode.com/problems/maximum-segment-sum-after-removalsMaximum Segment Sum After RemovalsHard49.3%75.0%
2418https://leetcode.com/problems/sort-the-peopleSort the PeopleEasy84.8%75.0%
2457https://leetcode.com/problems/minimum-addition-to-make-integer-beautifulMinimum Addition to Make Integer BeautifulMedium38.5%75.0%
2463https://leetcode.com/problems/minimum-total-distance-traveledMinimum Total Distance TraveledHard58.8%75.0%
2445https://leetcode.com/problems/number-of-nodes-with-value-oneNumber of Nodes With Value OneMedium66.2%75.0%
1540https://leetcode.com/problems/can-convert-string-in-k-movesCan Convert String in K MovesMedium37.0%75.0%
2597https://leetcode.com/problems/the-number-of-beautiful-subsetsThe Number of Beautiful SubsetsMedium50.9%75.0%
2612https://leetcode.com/problems/minimum-reverse-operationsMinimum Reverse OperationsHard16.6%75.0%
2829https://leetcode.com/problems/determine-the-minimum-sum-of-a-k-avoiding-arrayDetermine the Minimum Sum of a k-avoiding ArrayMedium60.5%75.0%
1661https://leetcode.com/problems/average-time-of-process-per-machineAverage Time of Process per MachineEasy66.9%50.0%
853https://leetcode.com/problems/car-fleetCar FleetMedium54.7%37.5%
1798https://leetcode.com/problems/maximum-number-of-consecutive-values-you-can-makeMaximum Number of Consecutive Values You Can MakeMedium63.5%75.0%
875https://leetcode.com/problems/koko-eating-bananasKoko Eating BananasMedium49.7%37.5%
2827https://leetcode.com/problems/number-of-beautiful-integers-in-the-rangeNumber of Beautiful Integers in the RangeHard21.6%75.0%
2834https://leetcode.com/problems/find-the-minimum-possible-sum-of-a-beautiful-arrayFind the Minimum Possible Sum of a Beautiful ArrayMedium35.2%75.0%
1872https://leetcode.com/problems/stone-game-viiiStone Game VIIIHard53.9%75.0%
509https://leetcode.com/problems/fibonacci-numberFibonacci NumberEasy73.9%62.5%
322https://leetcode.com/problems/coin-changeCoin ChangeMedium47.9%62.5%
48https://leetcode.com/problems/rotate-imageRotate ImageMedium79.3%62.5%
40https://leetcode.com/problems/combination-sum-iiCombination Sum IIMedium59.0%37.5%
125https://leetcode.com/problems/valid-palindromeValid PalindromeEasy52.8%50.0%
215https://leetcode.com/problems/kth-largest-element-in-an-arrayKth Largest Element in an ArrayMedium68.8%50.0%
167https://leetcode.com/problems/two-sum-ii-input-array-is-sortedTwo Sum II - Input Array Is SortedMedium64.6%50.0%
2149https://leetcode.com/problems/rearrange-array-elements-by-signRearrange Array Elements by SignMedium84.5%37.5%
912https://leetcode.com/problems/sort-an-arraySort an ArrayMedium55.9%37.5%
1378https://leetcode.com/problems/replace-employee-id-with-the-unique-identifierReplace Employee ID With The Unique IdentifierEasy83.5%37.5%
54https://leetcode.com/problems/spiral-matrixSpiral MatrixMedium56.1%50.0%
128https://leetcode.com/problems/longest-consecutive-sequenceLongest Consecutive SequenceMedium47.0%50.0%
22https://leetcode.com/problems/generate-parenthesesGenerate ParenthesesMedium78.2%62.5%
238https://leetcode.com/problems/product-of-array-except-selfProduct of Array Except SelfMedium68.6%50.0%
151https://leetcode.com/problems/reverse-words-in-a-stringReverse Words in a StringMedium55.5%50.0%
3336https://leetcode.com/problems/find-the-number-of-subsequences-with-equal-gcdFind the Number of Subsequences With Equal GCDHard31.4%75.0%
4https://leetcode.com/problems/median-of-two-sorted-arraysMedian of Two Sorted ArraysHard45.9%37.5%
28https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-stringFind the Index of the First Occurrence in a StringEasy46.2%37.5%
560https://leetcode.com/problems/subarray-sum-equals-kSubarray Sum Equals KMedium46.8%75.0%
242https://leetcode.com/problems/valid-anagramValid AnagramEasy67.8%62.5%
8https://leetcode.com/problems/string-to-integer-atoiString to Integer (atoi)Medium20.6%37.5%
104https://leetcode.com/problems/maximum-depth-of-binary-treeMaximum Depth of Binary TreeEasy77.9%50.0%
56https://leetcode.com/problems/merge-intervalsMerge IntervalsMedium51.1%50.0%
122https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iiBest Time to Buy and Sell Stock IIMedium70.7%37.5%
1431https://leetcode.com/problems/kids-with-the-greatest-number-of-candiesKids With the Greatest Number of CandiesEasy88.0%37.5%
18https://leetcode.com/problems/4sum4SumMedium40.0%62.5%
3449https://leetcode.com/problems/maximize-the-minimum-game-scoreMaximize the Minimum Game ScoreHard26.0%75.0%
3457https://leetcode.com/problems/eat-pizzasEat Pizzas!Medium33.1%75.0%
76https://leetcode.com/problems/minimum-window-substringMinimum Window SubstringHard46.9%50.0%
283https://leetcode.com/problems/move-zeroesMove ZeroesEasy63.5%62.5%
78https://leetcode.com/problems/subsetsSubsetsMedium82.0%50.0%
3467https://leetcode.com/problems/transform-array-by-parityTransform Array by ParityEasy89.7%75.0%
232https://leetcode.com/problems/implement-queue-using-stacksImplement Queue using StacksEasy69.3%37.5%
33https://leetcode.com/problems/search-in-rotated-sorted-arraySearch in Rotated Sorted ArrayMedium44.1%50.0%
704https://leetcode.com/problems/binary-searchBinary SearchEasy60.5%50.0%
13https://leetcode.com/problems/roman-to-integerRoman to IntegerEasy66.2%37.5%
73https://leetcode.com/problems/set-matrix-zeroesSet Matrix ZeroesMedium62.4%50.0%
34https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-arrayFind First and Last Position of Element in Sorted ArrayMedium48.3%37.5%
141https://leetcode.com/problems/linked-list-cycleLinked List CycleEasy53.9%62.5%
196https://leetcode.com/problems/delete-duplicate-emailsDelete Duplicate EmailsEasy65.6%37.5%
142https://leetcode.com/problems/linked-list-cycle-iiLinked List Cycle IIMedium57.2%50.0%
303https://leetcode.com/problems/range-sum-query-immutableRange Sum Query - ImmutableEasy71.4%50.0%
3575https://leetcode.com/problems/maximum-good-subtree-scoreMaximum Good Subtree ScoreHard45.4%75.0%
153https://leetcode.com/problems/find-minimum-in-rotated-sorted-arrayFind Minimum in Rotated Sorted ArrayMedium53.8%37.5%
992https://leetcode.com/problems/subarrays-with-k-different-integersSubarrays with K Different IntegersHard67.5%37.5%
162https://leetcode.com/problems/find-peak-elementFind Peak ElementMedium46.8%50.0%
349https://leetcode.com/problems/intersection-of-two-arraysIntersection of Two ArraysEasy77.5%37.5%
556https://leetcode.com/problems/next-greater-element-iiiNext Greater Element IIIMedium35.1%37.5%
3184https://leetcode.com/problems/count-pairs-that-form-a-complete-day-iCount Pairs That Form a Complete Day IEasy78.0%37.5%
234https://leetcode.com/problems/palindrome-linked-listPalindrome Linked ListEasy57.4%37.5%
392https://leetcode.com/problems/is-subsequenceIs SubsequenceEasy48.8%37.5%
118https://leetcode.com/problems/pascals-trianglePascal's TriangleEasy78.7%37.5%
583https://leetcode.com/problems/delete-operation-for-two-stringsDelete Operation for Two StringsMedium65.2%37.5%
541https://leetcode.com/problems/reverse-string-iiReverse String IIEasy53.3%37.5%
347https://leetcode.com/problems/top-k-frequent-elementsTop K Frequent ElementsMedium65.8%62.5%
3637https://leetcode.com/problems/trionic-array-iTrionic Array IEasy49.5%62.5%
994https://leetcode.com/problems/rotting-orangesRotting OrangesMedium58.1%50.0%
3640https://leetcode.com/problems/trionic-array-iiTrionic Array IIHard47.3%75.0%
1922https://leetcode.com/problems/count-good-numbersCount Good NumbersMedium57.4%37.5%
3653https://leetcode.com/problems/xor-after-range-multiplication-queries-iXOR After Range Multiplication Queries IMedium73.9%62.5%
3655https://leetcode.com/problems/xor-after-range-multiplication-queries-iiXOR After Range Multiplication Queries IIHard37.2%62.5%
239https://leetcode.com/problems/sliding-window-maximumSliding Window MaximumHard48.4%37.5%
628https://leetcode.com/problems/maximum-product-of-three-numbersMaximum Product of Three NumbersEasy45.7%37.5%
945https://leetcode.com/problems/minimum-increment-to-make-array-uniqueMinimum Increment to Make Array UniqueMedium60.6%37.5%
450https://leetcode.com/problems/delete-node-in-a-bstDelete Node in a BSTMedium54.2%37.5%
2035https://leetcode.com/problems/partition-array-into-two-arrays-to-minimize-sum-differencePartition Array Into Two Arrays to Minimize Sum DifferenceHard23.0%37.5%
3671https://leetcode.com/problems/sum-of-beautiful-subsequencesSum of Beautiful SubsequencesHard31.2%62.5%
3661https://leetcode.com/problems/maximum-walls-destroyed-by-robotsMaximum Walls Destroyed by RobotsHard26.4%62.5%
2163https://leetcode.com/problems/minimum-difference-in-sums-after-removal-of-elementsMinimum Difference in Sums After Removal of ElementsHard69.9%50.0%
1910https://leetcode.com/problems/remove-all-occurrences-of-a-substringRemove All Occurrences of a SubstringMedium78.4%37.5%
77https://leetcode.com/problems/combinationsCombinationsMedium74.2%37.5%
50https://leetcode.com/problems/powx-nPow(x, n)Medium38.2%37.5%
1094https://leetcode.com/problems/car-poolingCar PoolingMedium56.2%37.5%
3539https://leetcode.com/problems/find-sum-of-array-product-of-magical-sequencesFind Sum of Array Product of Magical SequencesHard62.0%37.5%
10https://leetcode.com/problems/regular-expression-matchingRegular Expression MatchingHard30.4%50.0%
516https://leetcode.com/problems/longest-palindromic-subsequenceLongest Palindromic SubsequenceMedium65.1%37.5%
918https://leetcode.com/problems/maximum-sum-circular-subarrayMaximum Sum Circular SubarrayMedium49.4%37.5%
2872https://leetcode.com/problems/maximum-number-of-k-divisible-componentsMaximum Number of K-Divisible ComponentsHard74.1%37.5%
1929https://leetcode.com/problems/concatenation-of-arrayConcatenation of ArrayEasy90.5%37.5%
92https://leetcode.com/problems/reverse-linked-list-iiReverse Linked List IIMedium51.0%50.0%
90https://leetcode.com/problems/subsets-iiSubsets IIMedium60.9%37.5%
258https://leetcode.com/problems/add-digitsAdd DigitsEasy68.6%37.5%
1235https://leetcode.com/problems/maximum-profit-in-job-schedulingMaximum Profit in Job SchedulingHard54.6%37.5%
319https://leetcode.com/problems/bulb-switcherBulb SwitcherMedium55.5%37.5%
410https://leetcode.com/problems/split-array-largest-sumSplit Array Largest SumHard59.8%50.0%
2259https://leetcode.com/problems/remove-digit-from-number-to-maximize-resultRemove Digit From Number to Maximize ResultEasy48.2%62.5%
840https://leetcode.com/problems/magic-squares-in-gridMagic Squares In GridMedium55.1%37.5%
120https://leetcode.com/problems/triangleTriangleMedium59.8%37.5%
30https://leetcode.com/problems/substring-with-concatenation-of-all-wordsSubstring with Concatenation of All WordsHard34.0%37.5%
143https://leetcode.com/problems/reorder-listReorder ListMedium64.6%37.5%
767https://leetcode.com/problems/reorganize-stringReorganize StringMedium56.8%37.5%
44https://leetcode.com/problems/wildcard-matchingWildcard MatchingHard31.3%37.5%
1819https://leetcode.com/problems/number-of-different-subsequences-gcdsNumber of Different Subsequences GCDsHard44.9%37.5%
300https://leetcode.com/problems/longest-increasing-subsequenceLongest Increasing SubsequenceMedium59.0%50.0%
525https://leetcode.com/problems/contiguous-arrayContiguous ArrayMedium50.8%37.5%
150https://leetcode.com/problems/evaluate-reverse-polish-notationEvaluate Reverse Polish NotationMedium57.0%37.5%
1838https://leetcode.com/problems/frequency-of-the-most-frequent-elementFrequency of the Most Frequent ElementMedium44.6%50.0%
84https://leetcode.com/problems/largest-rectangle-in-histogramLargest Rectangle in HistogramHard49.3%37.5%
6https://leetcode.com/problems/zigzag-conversionZigzag ConversionMedium53.5%37.5%
135https://leetcode.com/problems/candyCandyHard47.9%37.5%
131https://leetcode.com/problems/palindrome-partitioningPalindrome PartitioningMedium73.7%37.5%
977https://leetcode.com/problems/squares-of-a-sorted-arraySquares of a Sorted ArrayEasy73.6%37.5%
213https://leetcode.com/problems/house-robber-iiHouse Robber IIMedium44.6%37.5%
231https://leetcode.com/problems/power-of-twoPower of TwoEasy49.8%37.5%