Directories ¶ Show internal Expand all Path Synopsis 1002.FindCommonCharacters 1007.MinimumDominoRotationsForEqualRow 1014.BestSightseeingPair 102.BinaryTreeLevelOrderTraversal 1026.MaximumDifferenceBetweenNodeandAncestor 1028.RecoverATreeFromPreorderTraversal 1038.BinarySearchTreetoGreaterSumTree 1039.MinimumScoreTriangulationOfPolygon 1047.RemoveAllAdjacentDuplicatesInString 105.ConstructBinaryTreeFromPreorderAndInorderTraversal 1061.LexicographicallySmallestEquivalentString 1079.LetterTilePossibilities 1092.ShortestCommonSupersequence 110.BalancedBinaryTree 1123.LowestCommonAncestorOfDeepestLeaves 1128.NumberOfEquivalentDominoPairs 116.PopulatingNextRightPointersinEachNode 118.PascalsTriangle 120.Triangle 1207.UniqueNumberofOccurrences 121.BestTimetoBuyandSellStock 1233.RemoveSub-FoldersFromTheFilesystem 124.BinaryTreeMaximumPathSum 125.ValidPalindrome 1261.FindElementsInAContaminatedBinaryTree 1267.CountServersThatCommunicate 1277.CountSquareSubmatricesWithAllOnes 1290.ConvertBinaryNumberInALinkedListToInteger 1295.FindNumbersWithEvenNumberOfDigits 1298.MaximumCandiesYouCanGetFromBoxes 1304.FindNUniqueIntegersSumUpToZero 1317.ConvertIntegerToTheSumOfTwoNo-ZeroIntegers 1323.Maximum69Number 135.Candy 1352.ProductOfTheLastKNumbers 1353.MaximumNumberOfEventsThatCanBeAttended 1358.NumberOfSubstringsContainingAllThreeCharacters 1394.FindLuckyIntegerInAnArray 1399.CountLargestGroup 1400.ConstructKPalindromeStrings 1408.StringMatchingInAnArray 141.LinkedListCycle 1415.TheK-thLexicographicalStringOfAllHappyStringsOfLengthN 1422.MaximumScoreAfterSplittingAString 1423.MaximumPointsYouCanObtainfromCards 1432.MaxDifferenceYouCanGetFromChangingAnInteger 146.LRUCache 1462.CourseScheduleIV 1493.LongestSubarrayOf1sAfterDeletingOneElement 1498.NumberOfSubsequencesThatSatisfyTheGivenSumCondition 15.3Sum 150.EvaluateReversePolishNotation 1504.CountSubmatricesWithAllOnes 1524.NumberOfSub-arraysWithOddSum 1534.CountGoodTriplets 1544.MakeTheStringGreat 155.MinStack 1550.ThreeConsecutiveOdds 1578.MinimumTimetoMakeRopeColorful 165.CompareVersionNumbers 166.FractionToRecurringDecimal 1695.MaximumErasureValue 17.LetterCombinationsOfAPhoneNumber 1704.DetermineifStringHalvesAreAlike 1717.MaximumScoreFromRemovingSubstrings 1718.ConstructTheLexicographicallyLargestValidSequence 1721.SwappingNodesinaLinkedList 1726.TupleWithSameProduct 1733.MinimumNumberOfPeopleToTeach 1749.MaximumAbsoluteSumOfAnySubarray 1751.MaximumNumberOfEventsThatCanBeAttendedII 1752.CheckIfArrayIsSortedAndRotated 1762.BuildingsWithanOceanView 1765.MapOfHighestPeak 1769.MinimumNumberOfOperationsToMoveAllBallsToEachBox 1780.CheckIfNumberIsASumOfPowersOfThree 1790.CheckIfOneStringSwapCanMakeStringsEqual 1792.MaximumAveragePassRatio 1800.MaximumAscendingSubarraySum 1857.LargestColorValueInADirectedGraph 1865.FindingPairsWithACertainSum 19.RemoveNthNodeFromEndofList 1900.TheEarliestAndLatestRoundsWherePlayersCompete 1910.RemoveAllOccurrencesOfASubstring 1912.DesignMovieRentalSystem 1920.BuildArrayFromPermutation 1922.CountGoodNumbers 1930.UniqueLength-3PalindromicSubsequences 1931.PaintingAGridWithThreeDifferentColors 1935.MaximumNumberOfWordsYouCanType 1948.DeleteDuplicateFoldersInSystem 1957.DeleteCharactersToMakeFancyString 1976.NumberOfWaysToArriveAtDestination 1980.FindUniqueBinaryString 2.AddTwoNumbers 20.ValidParentheses 200.NumberOfIslands 2014.LongestSubsequenceRepeatedkTimes 2016.MaximumDifferenceBetweenIncreasingElements 2017.GridGame 2033.MinimumOperationsToMakeAUni-ValueGrid 2040.KthSmallestProductOfTwoSortedArrays 2044.CountNumberOfMaximumBitwise-ORSubsets 2071.MaximumNumberOfTasksYouCanAssign 208.ImplementTriePrefixTree 2081.SumOfk-MirrorNumbers 2094.Finding3-DigitEvenNumbers 2095.DeletetheMiddleNodeofaLinkedList 2099.FindSubsequenceOfLengthKWithTheLargestSum 2106.MaximumFruitsHarvestedAfterAtMostKSteps 2115.FindAllPossibleRecipesFromGivenSupplies 2116.CheckIfAParenthesesStringCanBeValid 2127.MaximumEmployeesToBeInvitedToAMeeting 2131.LongestPalindromeByConcatenatingTwoLetterWords 2138.DivideAStringIntoGroupsOfSizek 2140.SolvingQuestionsWithBrainpower 2145.CountTheHiddenSequences 2161.PartitionArrayAccordingToGivenPivot 2163.MinimumDifferenceInSumsAfterRemovalOfElements 2176.CountEqualAndDivisiblePairsInAnArray 2179.CountGoodTripletsInAnArray 2185.CountingWordsWithAGivenPrefix 2197.ReplaceNon-CoprimeNumbersInArray 22.GenerateParentheses 2200.FindAllK-DistantIndicesInAnArray 2206.DivideArrayIntoEqualPairs 221.MaximalSquare 2210.CountHillsAndValleysInAnArray 222.CountCompleteTreeNodes 2225.FindPlayersWithZeroorOneLosses 2226.MaximumCandiesAllocatedToKChildren 226.InvertBinaryTree 2264.Largest3-Same-DigitNumberInString 2270.NumberOfWaysToSplitArray 2294.PartitionArraySuchThatMaximumDifferenceIsK 230.KthSmallestElementInABST 2302.CountSubarraysWithScoreLessThanK 231.PowerOfTwo 2311.LongestBinarySubsequenceLessThanOrEqualToK 2322.MinimumScoreAfterRemovalsOnATree 2327.NumberOfPeopleAwareOfASecret 2338.CountTheNumberOfIdealArrays 234.PalindromeLinkedList 2342.MaxSumOfAPairWithEqualSumOfDigits 2348.NumberOfZero-FilledSubarrays 2349.DesignANumberContainerSystem 235.LowestCommonAncestorofaBinarySearchTree 2353.DesignAFoodRatingSystem 2359.FindClosestNodeToGivenTwoNodes 2364.CountNumberOfBadPairs 2375.ConstructSmallestNumberFromDIString 2379.MinimumRecolorsToGetKConsecutiveBlackBlocks 238.ProductOfArrayExceptSelf 2381.ShiftingLettersII 2401.LongestNiceSubarray 2402.MeetingRoomsIII 2410.MaximumMatchingOfPlayersWithTrainers 2411.SmallestSubarraysWithMaximumBitwiseOR 2419.LongestSubarrayWithMaximumBitwiseAND 242.ValidAnagram 2425.BitwiseXOROfAllPairings 2429.MinimizeXOR 2434.UsingARobotToPrintTheLexicographicallySmallestString 2438.RangeProductQueriesOfPowers 2444.CountSubarraysWithFixedBounds 2460.ApplyOperationsToAnArray 2466.CountWaysToBuildGoodStrings 2467.MostProfitablePathInATree 2493.DivideNodesIntoTheMaximumNumberOfGroups 2503.MaximumNumberOfPointsFromGridQueries 2529.MaximumCountOfPositiveIntegerAndNegativeInteger 2537.CountTheNumberOfGoodSubarrays 2551.PutMarblesInBags 2559.CountVowelStringsInRanges 2560.HouseRobberIV 2561.RearrangingFruits 2563.CountTheNumberOfFairPairs 2566.MaximumDifferenceByRemappingADigit 2579.CountTotalNumberOfColoredCells 2594.MinimumTimeToRepairCars 26.RemoveDuplicatesfromSortedArray 2616.MinimizeTheMaximumDifferenceOfPairs 2657.FindThePrefixCommonArrayOfTwoArrays 2658.MaximumNumberOfFishInAGrid 2661.FirstCompletelyPaintedRowOrColumn 2685.CountTheNumberOfCompleteComponents 2698.FindThePunishmentNumberOfAnInteger 2749.MinimumOperationsToMakeTheIntegerZero 278.FirstBadVersion 2785.SortVowelsInAString 2787.WaysToExpressAnIntegersSumOfPowers 2799.CountCompleteSubarraysInAnArray 2818.ApplyOperationsToMaximizeScore 2843.CountSymmetricIntegers 2845.CountOfInterestingSubarrays 2873.MaximumValueOfAnOrderedTripletI 2874.MaximumValueOfAnOrderedTripletII 2894.DivisibleAndNon-divisibleSumsDifference 2900.LongestUnequalAdjacentGroupsSubsequenceI 2901.LongestUnequalAdjacentGroupsSubsequenceII 2918.MinimumEqualSumOfTwoArraysAfterReplacingZeros 2929.DistributeCandiesAmongChildrenII 2942.FindWordsContainingCharacter 2948.MakeLexicographicallySmallestArrayBySwappingElements 2962.CountSubarraysWhereMaxElementAppearsAtLeastKTimes 2966.DivideArrayIntoArraysWithMaxDifference 2999.CountTheNumberOfPowerfulIntegers 3.LongestSubstringWithoutRepeatingCharacters 3000.MaximumAreaOfLongestDiagonalRectangle 3005.CountElementsWithMaximumFrequency 3021.AliceAndBobPlayingFlowerGame 3024.TypeOfTriangle 3025.FindTheNumberOfWaysToPlacePeopleI 3027.FindTheNumberOfWaysToPlacePeopleII 3042.CountPrefixAndSuffixPairsI 3066.MinimumOperationsToExceedThresholdValueII 3068.FindTheMaximumSumOfNodeValues 3085.MinimumDeletionsToMakeStringK-Special 3105.LongestStrictlyIncreasingOrStrictlyDecreasingSubarray 3108.MinimumCostWalkInWeightedGraph 3136.ValidWord 3151.SpecialArrayI 3160.FindTheNumberOfDistinctColorsAmongTheBalls 3170.LexicographicallyMinimumStringAfterRemovingStars 3174.ClearDigits 3191.MinimumOperationsToMakeBinaryArrayElementsEqualToOneI 3195.FindTheMinimumAreaToCoverAllnesI 3201.FindTheMaximumLengthOfValidSubsequenceI 3202.FindTheMaximumLengthOfValidSubsequenceII 3208.AlternatingGroupsII 322.CoinChange 3223.MinimumLengthOfStringAfterOperations 3227.VowelsGameInAString 326.PowerOfThree 3272.FindTheCountOfGoodIntegers 33.SearchInRotatedSortedArray 3304.FindTheK-thCharacterInStringGameI 3306.CountOfSubstringsContainingEveryVowelAndKConsonantsII 3307.FindTheK-thCharacterInStringGameII 3330.FindTheOriginalTypedStringI 3333.FindTheOriginalTypedStringII 3335.TotalCharactersInStringAfterTransformationsI 3337.TotalCharactersInStringAfterTransformationsII 3341.FindMinimumTimeToReachLastRoomI 3342.FindMinimumTimeToReachLastRoomII 3343.CountNumberOfBalancedPermutations 3355.ZeroArrayTransformationI 3356.ZeroArrayTransformationII 3362.ZeroArrayTransformationIII 3363.FindTheMaximumNumberOfFruitsCollected 3372.MaximizeTheNumberOfTargetNodesAfterConnectingTreesI 3373.MaximizeTheNumberOfTargetNodesAfterConnectingTreesII 3375.MinimumOperationsToMakeArrayValuesEqualToK 3392.CountSubarraysOfLengthThreeWithACondition 3394.CheckIfGridCanBeCutIntoSections 3396.MinimumNumberOfOperationsToMakeElementsInArrayDistinct 3403.FindTheLexicographicallyLargestStringFromTheBoxI 3405.CountTheNumberOfArraysWithKMatchingAdjacentElements 3408.DesignTaskManager 342.PowerOfFour 3423.MaximumDifferenceBetweenAdjacentElementsInACircularArray 3439.RescheduleMeetingsForMaximumFreeTimeI 3440.RescheduleMeetingsForMaximumFreeTimeII 3442.MaximumDifferenceBetweenEvenAndOddFrequencyI 3443.MaximumManhattanDistanceAfterKChanges 3445.MaximumDifferenceBetweenEvenAndOddFrequencyII 3446.SortMatrixByDiagonals 3459.LengthOfLongestV-ShapedDiagonalSegment 3477.FruitsIntoBasketsII 3479.FruitsIntoBasketsIII 3480.MaximizeSubarraysAfterRemovingOneConflictingPair 3484.DesignSpreadsheet 3487.MaximumUniqueSubarraySumAfterDeletion 3495.MinimumOperationsToMakeArrayElementsZero 3508.ImplementRouter 3516.FindClosestPerson 3541.FindMostFrequentVowelAndConsonant 36.ValidSudoku 368.LargestDivisibleSubset 37.SudokuSolver 376.WiggleSubsequence 38.CountAndSay 386.LexicographicalNumbers 387.FirstUniqueCharacterinaString 407.TrappingRainWaterII 409.LongestPalindrome 416.PartitionEqualSubsetSum 420.StrongPasswordChecker 429.N-aryTreeLevelOrderTraversal 438.FindAllAnagramsInAString 440.K-thSmallestInLexicographicalOrder 46.Permutations 48.RotateImage 494.TargetSum 498.DiagonalTraverse 53.MaximumSubarray 543.DiameterOfBinaryTree 556.NextGreaterElementIII 56.MergeIntervals 560.SubarraySumEqualsK 57.InsertInterval 589.N-aryTreePreorderTraversal 594.LongestHarmoniousSubsequence 606.ConstructStringfromBinaryTree 61.RotateList 611.ValidTriangleNumber 623.AddOneRowtoTree 637.AverageOfLevelsInBinaryTree 653.TwoSumIV-InputisaBST 658.FindKClosestElements 678.ValidParenthesisString 679.24Game 684.RedundantConnection 692.TopKFrequentWords 70.ClimbingStairs 704.BinarySearch 73.SetMatrixZeroes 733.FloodFill 75.SortColors 763.PartitionLabels 781.RabbitsInForest 79.WordSearch 790.DominoAndTrominoTiling 802.FindEventualSafeStates 808.SoupServings 812.LargestTriangleArea 827.MakingALargeIsland 83.RemoveDuplicatesfromSortedList 837.New21Game 838.PushDominoes 869.ReorderedPowerOf2 873.LengthOfLongestFibonacciSubsequence 889.ConstructBinaryTreeFromPreorderAndPostorderTraversal 898.BitwiseORsOfSubarrays 904.FruitIntoBaskets 909.SnakesAndLadders 916.WordSubsets 92.ReverseLinkedListII 946.ValidateStackSequences 966.VowelSpellchecker 973.KClosestPointsToOrigin 976.LargestPerimeterTriangle 98.ValidateBinarySearchTree 981.TimeBasedKey-ValueStore 983.MinimumCostForTickets 994.RottingOranges MinimumOperationsToMakeColumnsStrictlyIncreasing Click to show internal directories. Click to hide internal directories.