LeetCode

Num Problems Java C++
1 TwoSum solution
2 AddTwoNumbers solution
3 LongestSubstringWithoutRepeatingCharacters solution
7 ReverseInteger solution
8 StringToInteger solution
9 PalindromeNumber solution
12 IntegerToRoman solution
13 RomanToInteger solution
14 LongestCommonPrefix solution
15 3Sum solution
19 RemoveNthNodeFromEndOfList solution
20 ValidParentheses solution solution
21 MergeTwoSortedLists solution solution
24 SwapNodesInPairs solution
26 RemoveDuplicatesFromSortedArray solution solution
27 RemoveElement solution solution
28 ImplementStrStr solution
31 NextPermutation solution solution
33 SearchInRotatedSortedArray solution
34 FindFirstAndLastPositionOfElementInSortedArray solution
35 SearchInsertPosition solution
36 ValidSudoku solution
38 CountAndSay solution
45 JumpGameII solution
46 Permutation solution
47 PermutationsII solution
49 GroupAnagrams solution
50 Powxn solution
53 MaximumSubarray solution
54 SpiralMatrix solution
55 JumpGame solution
56 MergeIntervals solution
58 LengthOfLastWord solution
59 SpiralMatrixII solution
60 PermutationSequence solution
61 RotateList solution
62 UniquePaths solution
64 MinimumPathSum solution
66 PlusOne solution
67 AddBinary solution
69 Sqrtx solution
70 ClimbingStairs solution
72 EditDistance solution
74 SearchA2dMatrix solution solution
75 SortColors solution
78 Subsets solution
79 WordSearch solution
80 RemoveDuplicatesFromSortedArrayII solution
83 RemoveDuplicatesFromSortedList solution
88 MergeSortedArray solution solution
94 BinaryTreeInorderTraversal solution
96 UniqueBinarySearchTrees solution
98 ValidateBinarySearchTree solution
100 SameTree solution
101 SymmetricTree solution
102 BinaryTreeLevelOrderTraversal solution
103 BinaryTreeZigzagLevelOrderTraversal solution
104 MaximumDepthOfBinaryTree solution
106 ConstructBinaryTreeFromInorderAndPostorderTraversal solution
107 BinaryTreeLevelOrderTraversalII solution
108 ConvertSortedArrayToBinarySearchTree solution
111 MinimumDepthOfBinaryTree solution
112 PathSum solution
116 PopulatingNextRightPointersInEachNode solution
118 PascalsTriangle solution
119 PascalsTriangleII solution
121 BestTimeToBuyAndSellStock solution
122 BestTimeToBuyAndSellStockII solution
123 BestTimeToBuyAndSellStockIII solution
124 BinaryTreeMaximumPathSum solution
125 ValidPalindrome solution
129 SumRootToLeafNumbers solution
130 SurroundedRegions solution
133 CloneGraph solution
136 SingleNumber solution
137 SingleNumberII solution
138 CopyListWithRandomPointer solution
140 WordBreakII solution
141 LinkedListCycle solution
142 LinkedListCycleII solution
143 ReorderList solution
146 LRUCache solution
150 EvaluateReversePolishNotation solution
151 ReverseWordsInAString solution
153 FindMinimumInRotatedSortedArray solution
154 FindMinimumInRotatedSortedArrayII solution
155 MinStack solution solution
160 IntersectionOfTwoLinkedLists solution
162 FindPeakElement solution
167 TwoSumII solution
169 MajorityElement solution
171 ExcelSheetColumnNumber solution
172 FactorialTrailingZeroes solution
174 DungeonGame solution
187 RepeatedDNASequences solution
189 RotateArray solution
190 ReverseBits solution
191 NumberOf1Bits solution solution
198 HouseRobber solution
200 NumberOfIslands solution
201 BitwiseANDOfNumbersRange solution
202 HappyNumber solution
203 RemoveLinkedListElements solution
204 CountPrimes solution
205 IsomorphicStrings solution
206 ReverseLinkedList solution
207 CourseSchedule solution
208 ImplementTriePrefixTree solution
209 MinimumSizeSubarraySum solution
210 CourseScheduleII solution
211 AddAndSearchWord_DataStructureDesign solution
212 WordSearchII solution
215 KthLargestElementInAnArray solution
217 ContainsDuplicate solution
219 ContainsDuplicateII solution
221 MaximalSquare solution
222 CountCompleteTreeNodes solution
225 ImplementStackUsingQueues solution
226 InvertBinaryTree solution
230 KthSmallestElementInABST solution
231 PowerOfTwo solution
232 ImplementQueueUsingStacks solution
234 PalindromeLinkedList solution solution
237 DeleteNodeInALinkedList solution
238 ProductOfArrayExceptSelf solution
242 ValidAnagram solution
257 BinaryTreePaths solution
258 AddDigits solution
260 SingleNumberIII solution
264 UglyNumberII solution
268 MissingNumber solution
274 HIndex solution
275 HIndexII solution
278 FirstBadVersion solution solution
279 PerfectSquares solution
283 MoveZeroes solution solution
287 FindTheDuplicateNumber solution
289 GameOfLife solution solution
292 NimGame solution
300 LongestIncreasingSubsequence solution
303 RangeSumQueryImmutable solution
309 BestTimeToBuyAndSellStockWithCooldown solution
322 CoinChange solution
326 PowerOfThree solution
328 OddEvenLinkedList solution
332 ReconstructItinerary solution
338 CountingBits solution
342 PowerOfFour solution
344 ReverseString solution solution
345 ReverseVowelsOfAString solution
347 TopKFrequentElements solution solution
349 IntersectionOfTwoArrays solution
350 IntersectionOfTwoArraysIi solution solution
357 ComplexNumberMultiplication solution
367 ValidPerfectSquare solution
368 LargestDivisibleSubset solution
371 SumOfTwoIntegers solution
374 GuessNumberHigherOrLower solution
380 InsertDeleteGetRandomO1 solution
382 LinkedListRandomNode solution
383 RansomNote solution solution
384 ShuffleAnArray solution
387 FirstUniqueCharacterInAString solution solution
389 FindTheDifference solution
392 IsSubsequence solution
394 DecodeString solution
402 RemoveKDigits solution
406 QueueReconstructionByHeight solution
409 LongestPalindrome solution
412 FizzBuzz solution solution
414 ThirdMaximumNumber solution
430 FlattenAMultilevelDoublyLinkedList solution
434 NumberOfSegmentsInAString solution
435 NonOverlappingIntervals solution
437 PathSumIII solution
438 FindAllAnagramsInAString solution
441 ArrangingCoins solution
442 FindAllDuplicatesInAnArray solution
443 StringCompression solution
445 AddTwoNumbersII solution
448 FindAllNumbersDisappearedInAnArray solution solution
451 SortCharactersByFrequency solution
453 MinimumMovesToEqualArrayElements solution
454 4SumII solution
456 132Pattern solution
461 HammingDistance solution
463 IslandPerimeter solution
468 ValidateIPAddress solution
476 NumberComplement solution
485 MaxConsecutiveOnes solution solution
494 TargetSum solution
496 NextGreaterElementI solution
497 RandomPointInNonOverlappingRectangles solution
498 DiagonalTraverse solution
509 FibonacciNumber solution
518 CoinChange2 solution
520 DetectCapital solution
521 LongestUncommonSubsequenceI solution
525 ContiguousArray solution
526 BeautifulArrangement solution
528 RandomPickWithWeight solution
535 EncodeAndDecodeTinyURL solution
538 ConvertBSTToGreaterTree solution
540 SingleElementInASortedArray solution
541 ReverseStringII solution
542 01Matrix solution
543 DiameterOfBinaryTree solution
551 StudentAttendanceRecordI solution
557 ReverseWordsInAStringIII solution
559 MaximumDepthOfNAryTree solution
560 SubarraySumEqualsK solution
561 ArrayPartitionI solution
563 BinaryTreeTilt solution
566 ReshapeTheMatrix solution
567 PermutationInString solution
572 SubtreeOfAnotherTree solution
575 DistributeCandies solution
581 ShortestUnsortedContinuousSubarray solution
589 NAryTreePreorderTraversal solution
590 NAryTreePostorderTraversal solution
598 RangeAdditionII solution
599 MinimumIndexSumOfTwoLists solution
605 CanPlaceFlowers solution
606 ConstructStringFromBinaryTree solution
617 MergeTwoBinaryTrees solution
621 TaskScheduler solution
622 DesignCircularQueue solution
628 MaximumProductOfThreeNumbers solution
633 SumOfSquareNumbers solution
637 AverageOfLevelsInBinaryTree solution
643 MaximumAverageSubarrayI solution
645 SetMismatch solution
652 FindDuplicateSubtrees solution
653 TwoSumIV solution
657 RobotReturnToOrigin solution
658 FindKClosestElements solution
661 ImageSmoother solution
662 MaximumWidthOfBinaryTree solution
665 NonDecreasingArray solution
669 TrimABinarySearchTree solution
673 NumberOfLongestIncreasingSubsequence solution
674 LongestContinuousIncreasingSubsequence solution
678 ValidParenthesisString solution
682 BaseballGame solution
686 RepeatedStringMatch solution
690 EmployeeImportance solution
693 BinaryNumberWithAlternatingBits solution
695 MaxAreaofIsland solution
696 CountBinarySubstrings solution
697 DegreeOfAnArray solution
700 SearchInABinarySearchTree solution
703 KthLargestElementInAStream solution
704 BinarySearch solution solution
705 DesignHashSet solution
706 DesignHashMap solution
707 DesignLinkedList solution solution
709 ToLowerCase solution
717 1BitAnd2BitCharacters solution
720 LongestWordInDictionary solution
724 FindPivotIndex solution
728 SelfDividingNumbers solution
733 FloodFill solution
735 AsteroidCollision solution
739 DailyTemperatures solution
744 FindSmallestLetterGreaterThanTarget solution
746 MinCostClimbingStairs solution
747 LargestNumberAtLeastTwiceOfOthers solution
748 ShortestCompletingWord solution
752 OpenTheLock solution
762 PrimeNumberOfSetBitsInBinaryRepresentation solution
763 PartitionLabels solution
766 ToeplitzMatrix solution
771 JewelsAndStones solution
783 MinimumDistanceBetweenBSTNodes solution
784 LetterCasePermutation solution
787 CheapestFlightsWithinKStops solution
788 RotatedDigits solution
791 CustomSortString solution
796 RotateString solution
797 AllPathsFromSourceToTarget solution
804 UniqueMorseCodeWords solution
806 NumberOfLinesToWriteString solution
807 MaxIncreaseToKeepCitySkyline solution
811 SubdomainVisitCount solution
812 LargestTriangleArea solution
813 LargestSumOfAverages solution
819 MostCommonWord solution
821 ShortestDistanceToACharacter solution
824 GoatLatin solution
830 PositionsOfLargeGroups solution
832 FlippingAnImage solution
836 RectangleOverlap solution
840 MagicSquaresInGrid solution
841 KeysAndRooms solution
844 BackspaceStringCompare solution
849 MaximizeDistanceToClosestPerson solution
852 PeakIndexInAMountainArray solution
860 LemonadeChange solution
865 SmallestSubtreeWithAllTheDeepestNodes solution
867 TransposeMatrix solution
868 BinaryGap solution
872 LeafSimilarTrees solution
876 MiddleOfTheLinkedList solution solution
881 BoatsToSavePeople solution
883 ProjectionAreaOf3DShapes solution
884 UncommonWordsFromTwoSentences solution
886 PossibleBipartition solution
888 FairCandySwap solution
890 FindAndReplacePattern solution
892 SurfaceAreaOf3DShapes solution
893 GroupsOfSpecialEquivalentStrings solution
896 MonotonicArray solution
897 IncreasingOrderSearchTree solution
901 OnlineStockSpan solution
905 SortArrayByParity solution solution
908 SmallestRangeI solution
912 SortAnArray solution
917 ReverseOnlyLetters solution
918 MaximumSumCircularSubarray solution
921 MinimumAddToMakeParenthesesValid solution
922 SortArrayByParityII solution
925 LongPressedName solution
929 UniqueEmailAddresses solution
933 NumberOfRecentCalls solution
937 ReorderDataInLogFiles solution
938 RangeSumOfBST solution
941 ValidMountainArray solution solution
942 DIStringMatch solution
944 DeleteColumnsToMakeSorted solution
946 ValidateStackSequences solution
948 BagOfTokens solution
949 LargestTimeForGivenDigits solution
953 VerifyingAnAlienDictionary solution
957 PrisonCellsAfterNDays solution
961 NRepeatedElementInSize2NArray solution
965 UnivaluedBinaryTree solution
967 NumbersWithSameConsecutiveDifferences solution
970 PowerfulIntegers solution
973 KClosestPointsToOrigin solution
976 LargestPerimeterTriangle solution
977 SquaresOfASortedArray solution solution
985 SumOfEvenNumbersAfterQueries solution
986 IntervalListIntersections solution
987 VerticalOrderTraversalOfABinaryTree solution
989 AddToArrayFormOfInteger solution
991 BrokenCalculator solution
993 CousinsInBinaryTree solution
994 RottingOranges solution
997 FindTheTownJudge solution
1002 FindCommonCharacters solution
1007 MinimumDominoRotationsForEqualRow solution
1008 ConstructBinarySearchTreeFromPreorderTraversal solution
1009 ComplementOfBase10Integer solution
1010 PairsOfSongsWithTotalDurationsDivisibleBy60 solution
1021 RemoveOutermostParentheses solution
1026 MaximumDifferenceBetweenNodeAndAncestor solution
1029 TwoCityScheduling solution
1030 MatrixCellsInDistanceOrder solution
1035 UncrossedLines solution
1044 LongestDuplicateSubstring solution
1046 LastStoneWeight solution
1047 RemoveAllAdjacentDuplicatesInString solution
1051 HeightChecker solution solution
1071 GreatestCommonDivisorOfStrings solution
1089 DuplicateZeros solution solution
1091 ShortestPathInBinaryMatrix solution
1103 DistributeCandiesToPeople solution
1108 DefangingAnIPAddress solution
1122 RelativeSortArray solution
1137 NthTribonacciNumber solution
1143 LongestCommonSubsequence solution solution
1160 FindWordsThatCanBeFormedByCharacters solution
1189 MaximumNumberOfBalloons solution
1207 UniqueNumberOfOccurrences solution
1217 MinimumCostToMoveChipsToTheSamePosition solution
1221 SplitAStringInBalancedStrings solution
1227 CountSquareSubmatricesWithAllOnes solution
1232 CheckIfItIsAStraightLine solution
1254 NumberOfClosedIslands solution
1260 Shift2dGrid solution solution
1266 MinimumTimeVisitingAllPoints solution
1281 SubtractTheProductAndSumOfDigitsOfAnInteger solution solution
1282 GroupThePeopleGivenTheGroupSizeTheyBelongTo solution
1283 FindTheSmallestDivisorGivenAThreshold solution
1286 IteratorForCombination solution
1290 ConvertBinaryNumberInALinkedListToInteger solution
1295 FindNumbersWithEvenNumberOfDigits solution solution
1299 ReplaceElementsWithGreatestElementOnRightSide solution
1302 DeepestLeavesSum solution
1304 FindNUniqueIntegersSumUpToZero solution
1306 JumpGameIII solution
1309 DecryptStringFromAlphabetToIntegerMapping solution
1314 MatrixBlockSum solution
1317 ConvertIntegerToTheSumOfTwoNoZeroIntegers solution
1323 Maximum69Number solution
1329 SortTheMatrixDiagonally solution
1332 RemovePalindromicSubsequences solution
1337 TheKWeakestRowsInAMatrix solution
1342 NumberOfStepsToReduceANumberToZero solution solution
1344 AngleBetweenHandsOfAClock solution
1346 CheckIfNAndItsDoubleExist solution
1347 MinimumNumberOfStepsToMakeTwoStringsAnagram solution
1351 CountNegativeNumbersInASortedMatrix solution
1356 SortIntegersByTheNumberOf1Bits solution
1365 HowManyNumbersAreSmallerThanTheCurrentNumber solution
1370 IncreasingDecreasingString solution
1374 GenerateAStringWithCharactersThatHaveOddCounts solution
1379 FindACorrespondingNodeOfABinaryTreeInACloneOfThatTree solution
1380 LuckyNumbersInAMatrix solution
1387 SortIntegersByThePowerValue solution
1389 CreateTargetArrayInTheGivenOrder solution
1394 FindLuckyIntegerInAnArray solution
1400 ConstructKPalindromeStrings solution
1403 MinimumSubsequenceInNonIncreasingOrder solution
1408 StringMatchingInAnArray solution
1417 ReformatTheString solution
1431 KidsWithTheGreatestNumberOfCandies solution
1437 CheckIfAll1sAreAtLeastLengthKPlacesAway solution
1446 ConsecutiveCharacters solution
1451 RearrangeWordsInASentence solution
1460 MakeTwoArraysEqualByReversingSubArrays solution
1461 CheckIfAStringContainsAllBinaryCodesOfSizeK solution
1464 MaximumProductOfTwoElementsInAnArray solution
1475 FinalPricesWithASpecialDiscountInAShop solution
1476 SubrectangleQueries solution
1480 RunningSumOf1dArray solution solution
1491 AverageSalaryExcludingTheMinimumAndMaximumSalary solution solution
1492 TheKthFactorOfN solution
1510 StoneGameIV solution
1512 NumberOfGoodPairs solution
1523 CountOddNumbersInAnIntervalRange solution solution
1525 NumberOfGoodWaysToSplitAString solution
1539 KthMissingPositiveNumber solution
1550 ThreeConsecutiveOdds solution
1556 ThousandSeparator solution
1561 MaximumNumberOfCoinsYouCanGet solution
1572 MatrixDiagonalSum solution
1582 SpecialPositionsInABinaryMatrix solution
1588 SumOfAllOddLengthSubarrays solution
1605 FindValidMatrixGivenRowAndColumnSums solution
1624 LargestSubstringBetweenTwoEqualCharacters solution
1640 CheckArrayFormationThroughConcatenation solution
1646 GetMaximumInGeneratedArray solution
1657 DetermineIfTwoStringsAreClose solution
1662 CheckIfTwoStringArraysAreEquivalent solution
1663 SmallestStringWithAGivenNumericValue solution
1669 MergeInBetweenLinkedLists solution
1672 RichestCustomerWealth solution solution
1684 CountTheNumberOfConsistentStrings solution
1694 ReformatPhoneNumber solution
1848 MinimumDistanceToTheTargetElement solution
1925 CountSquareSumTriples solution