Commit a9393ef
File tree
579 files changed
+27916
-1161
lines changed- algorithms
- cpp
- 3SumClosest
- 3Sum
- 4Sum
- LRUCache
- UTF8Validation
- accountsMerge
- addAndSearchWord
- addBinary
- addDigits
- addStrings
- addToArrayFormOfInteger
- addTwoNumbers
- additiveNumber
- anagrams
- arithmeticSlices
- backspaceStringCompare
- balancedBinaryTree
- basicCalculator
- bestTimeToBuyAndSellStock
- binarySearchTreeIterator
- binaryTreeInorderTraversal
- binaryTreeLevelOrderTraversal
- binaryTreeMaximumPathSum
- binaryTreePaths
- binaryTreePostorderTraversal
- binaryTreePreorderTraversal
- binaryTreeRightSideView
- binaryTreeUpsideDown
- binaryTreeZigzagLevelOrderTraversal
- binaryWatch
- bitwiseANDOfNumbersRange
- brokenCalculator
- buddyStrings
- bulbSwitcher
- bullsAndCows
- burstBalloons
- candy
- climbStairs
- cloneGraph
- coinChange
- combinationSumIV
- combinationSum
- combinations
- compareStringsByFrequencyOfTheSmallestCharacter
- compareVersionNumbers
- constructBinaryTreeFromInorderAndPostorderTraversal
- constructBinaryTreeFromPreorderAndInorderTraversal
- containerWithMostWater
- containsDuplicate
- convertANumberToHexadecimal
- convertSortedArrayToBinarySearchTree
- convertSortedListToBinarySearchTree
- copyListWithRandomPointer
- countAndSay
- countCompleteTreeNodes
- countNumbersWithUniqueDigits
- countOfRangeSum
- countOfSmallerNumbersAfterSelf
- countPrimes
- countingBits
- courseSchedule
- non-recursive
- cousinsInBinaryTree
- createMaximumNumber
- decodeString
- decodeWays
- deleteNodeInALinkedList
- detectCapital
- differentWaysToAddParentheses
- distinctSubsequences
- distributeCoinsInBinaryTree
- divideTwoInt
- dungeonGame
- editDistance
- eliminationGame
- evaluateDivision
- evaluateReversePolishNotation
- excelSheetColumnNumber
- excelSheetColumnTitle
- expressionAddOperators
- factorialTrailingZeroes
- fibonacciNumber
- findAllAnagramsInAString
- findMedianFromDataStream
- findMinimumInRotatedSortedArray
- findPeakElement
- findTheDifference
- findTheDuplicateNumber
- firstBadVersion
- firstMissingPositive
- firstUniqueCharacterInAString
- fizzBuzz
- flattenBinaryTreeToLinkedList
- flattenNestedListIterator
- fractionToRecurringDecimal
- friendCircles
- frogJump
- gameOfLife
- gasStation
- generateParentheses
- grayCode
- greatestCommonDivisorOfStrings
- h-Index
- happyNumber
- houseRobber
- implementQueueUsingStacks
- implementStackUsingQueues
- implementTriePrefixTree
- increasingTripletSubsequence
- insertDeleteGetRandom
- insertInterval
- insertionSortList
- integerBreak
- integerReplacement
- integerToEnglishWords
- integerToRoman
- interleavingString
- intersectionOfTwoArrays
- intersectionOfTwoLinkedLists
- intervalListIntersectons
- invertBinaryTree
- isSubsequence
- islandPerimeter
- isomorphicStrings
- jewelsAndStones
- jumpGame
- kthLargestElementInAnArray
- kthSmallestElementInaBST
- largestNumber
- largestPerimeterTriangle
- largestRectangleInHistogram
- lengthOfLastWord
- letterCombinationsOfAPhoneNumber
- lexicographicalNumbers
- linkedListCycle
- linkedListRandomNode
- longestAbsoluteFilePath
- longestCommonPrefix
- longestConsecutiveSequence
- longestIncreasingPathInAMatrix
- longestIncreasingSubsequence
- longestPalindrome
- longestPalindromicSubstring
- longestSubstringWithAtLeastKRepeatingCharacters
- longestSubstringWithAtMostTwoDistinctCharacters
- longestSubstringWithoutRepeatingCharacters
- longestTurbulentSubarray
- longestValidParentheses
- lowestCommonAncestorOfABinarySearchTree
- lowestCommonAncestorOfABinaryTree
- majorityElement
- maxAreaOfIsland
- maxPointsOnALine
- maximalRectangle
- maximalSquare
- maximumAverageSubarray
- maximumDepthOfBinaryTree
- maximumGap
- maximumProductOfWordLengths
- maximumProductSubarray
- maximumSubArray
- medianOfTwoSortedArrays
- mergeIntervals
- mergeKSortedLists
- mergeTwoSortedArray
- mergeTwoSortedList
- minCostClimbingStairs
- minStack
- miniParser
- minimumASCIIDeleteSumForTwoStrings
- minimumCostForTickets
- minimumDepthOfBinaryTree
- minimumFallingPathSum
- minimumHeightTrees
- minimumPathSum
- minimumSizeSubarraySum
- minimumWindowSubstring
- mirrorReflection
- missingNumber
- missingRanges
- mostCommonWord
- moveZeroes
- multiplyStrings
- nQueens
- nRepeatedElementInSize2NArray
- nextPermutation
- nimGame
- nthDigit
- numberOf1Bits
- numberOfDigitOne
- numberOfIslands
- numberOfRecentCalls
- oddEvenLinkedList
- oneEditDistance
- palindromeLinkedList
- palindromeNumber
- palindromePairs
- palindromePartitioning
- palindromicSubstrings
- partitionEqualSubsetSum
- partitionList
- pascalTriangle
- patchingArray
- pathSum
- peakIndexInAMountainArray
- peekingIterator
- perfectRectangle
- perfectSquares
- permutationSequence
- permutations
- plusOne
- populatingNextRightPointersInEachNode
- powerOfFour
- powerOfThree
- powerOfTwo
- pow
- productOfArrayExceptSelf
- queueReconstructionByHeight
- randomPickIndex
- rangeSumQuery-Immutable
- rangeSumQuery-Mutable
- rangeSumQuery2D-Immutable
- ransomNote
- readNCharactersGivenRead4
- reconstructItinerary
- recoverATreeFromPreorderTraversal
- recoverBinarySearchTree
- rectangleArea
- regularExpressionMatching
- removeDuplicateLetters
- removeDuplicatesFromSortedArray
- removeDuplicatesFromSortedList
- removeElement
- removeInvalidParentheses
- removeKDigits
- removeLinkedListElements
- removeNthNodeFromEndOfList
- reorderList
- repeatedDNASequences
- restoreIPAddresses
- reverseBits
- reverseInteger
- reverseLinkedList
- reverseNodesInKGroup
- reverseString
- reverseVowelsOfAString
- reverseWordsInAString
- romanToInteger
- rotateArray
- rotateFunction
- rotateImage
- rotateList
- sameTree
- satisfiabilityOfEqualityEquations
- scrambleString
- search2DMatrix
- searchForRange
- searchInRotatedSortedArray
- searchInsertPosition
- sentenceScreenFitting
- serializeAndDeserializeBinaryTree
- setMatrixZeroes
- shortestPalindrome
- shuffleAnArray
- simplifyPath
- singleNumber
- slidingWindowMaximum
- smallestStringStartingFromLeaf
- sortArrayByParity
- sortColors
- sortList
- spiralMatrix
- splitArrayLargestSum
- sqrt
- squaresOfASortedArray
- strStr
- stringToIntegerAtoi
- stringWithoutAAAOrBBB
- subsets
- substringWithConcatenationOfAllWords
- sudokuSolver
- sumOfEvenNumbersAfterQueries
- sumOfLeftLeaves
- sumOfTwoIntegers
- sumRootToLeafNumber
- summaryRanges
- superUglyNumber
- surroundedRegions
- swapNodesInPairs
- symmetricTree
- textJustification
- theSkylineProblem
- thirdMaximumNumber
- timeBasedKeyValueStore
- topKFrequentElements
- totalHammingDistance
- trappingRainWater
- triangle
- triplesWithBitwiseANDEqualToZero
- twoCityScheduling
- twoSum
- uglyNumber
- uniqueBinarySearchTrees
- uniqueMorseCodeWords
- uniqueNumberOfOccurrences
- uniquePaths
- validNumber
- validPalindrome
- validParentheses
- validSudoku
- validateBinarySearchTree
- verifyPreorderSerializationOfABinaryTree
- verticalOrderTraversalOfABinaryTree
- videoStitching
- wiggleSort
- wiggleSubsequence
- wildcardMatching
- wordBreak
- wordLadder
- wordPattern
- wordSearch
- zigZagConversion
- golang/twoSum
- java
- src
- balancedBinaryTree
- binarySearchTreeIterator
- binaryTreeBFSTraversal
- binaryTreeLevelOrderTraversal
- binaryTreeMaximumPathSum
- binaryTreePreorderTraversal
- countAndSay
- dynamicProgramming
- climbStairs
- minimumPathSum
- triangle
- uniquePaths
- findMinimumInRotatedSortedArray
- findPeakElement
- firstBadVersion
- inorderSuccessorInBST
- lengthOfLastWord
- lowestCommonAncestorOfABinaryTree
- lruCache
- maximumDepthOfBinaryTree
- minStack
- myQueue
- myStack
- palindromeNumber
- powXn
- removeDuplicatesFromSortedArray
- reverseLinkedListII
- reverseLinkedList
- reverseWordsInAString
- rotateArray
- search2DMatrix
- searchA2DMatrixII
- searchForRange
- searchInABigSortedArray
- searchInRotatedSortedArray
- searchInsertPosition
- searchRangeInBinarySearchTree
- strStr
- subsets
- validAnagram
- validPalindrome
- validateBinarySearchTree
- python
- 1-bitAnd2-bitCharacters
- AddOneRowToTree
- BinarySearchTreeIterator
- BinaryTreePostorderTraversal
- BinaryTreeTilt
- BinaryTreeZigzagLevelOrderTraversal
- CheckCompletenessOfABinaryTree
- ConstructBinaryTreeFromInorderAndPostorderTraversal
- ConstructBinaryTreeFromPreorderAndInorderTraversal
- ContainsDuplicateIII
- ContainsDuplicateII
- ConvertBSTtoGreaterTree
- CopyListWithRandomPointer
- CountCompleteTreeNodes
- DeleteNodeInABST
- DiameterOfBinaryTree
- DifferentWaysToAddParentheses
- FibonacciNumber
- FindDuplicateSubtrees
- FindTheDuplicateNumber
- FlattenBinaryTreeToLinkedList
- FlipBinaryTreeToMatchPreorderTraversal
- FlipEquivalentBinaryTrees
- HappyNumber
- HouseRobberIII
- HouseRobber
- ImageSmoother
- InsertionSortList
- K-diffPairsInAnArray
- KthSmallestElementInABST
- LargestNumberAtLeastTwiceOfOthers
- LargestPerimeterTriangle
- LinkedListCycleII
- LongestContinuousIncreasingSubsequence
- LongestTurbulentSubarray
- LongestUnivaluePath
- LowestCommonAncestorOfABinarySearchTree
- LowestCommonAncestorOfABinaryTree
- MaximizeDistanceToClosestPerson
- MaximumAverageSubarrayI
- MaximumProductOfThreeNumbers
- MaximumWidthOfBinaryTree
- MiddleOfTheLinkedList
- MinCostClimbingStairs
- Non-decreasingArray
- NumberOfIslands
- PancakeSorting
- PartitionList
- PathSumIII
- PathSumII
- PopulatingNextRightPointersInEachNodeII
- PopulatingNextRightPointersInEachNode
- PositionsOfLargeGroups
- PrintBinaryTree
- RedundantConnection
- RemoveDuplicatesFromSortedListII
- RemoveNthNodeFromEndOfList
- ReorderList
- RevealCardsInIncreasingOrder
- ReverseLinkedListII
- SearchA2DMatrixII
- SecondMinimumNodeInABinaryTree
- SerializeAndDeserializeBST
- ShortestUnsortedContinuousSubarray
- SortList
- SquaresOfSortedArray
- Subsets
- SubtreeOfAnotherTree
- SumOfLeftLeaves
- SumRootToLeafNumbers
- ThirdMaximumNumber
- UniqueBinarySearchTreesII
- UniqueBinarySearchTrees
- ValidMountainArray
- ValidateBinarySearchTree
- XOfAKindInADeckOfCards
- database
- scripts
- lib
- shell
- src
- 3SumClosest
- anagrams
- bestTimeToBuyAndSellStock
- linkedListCycle
- longestPalindromicSubstring
- minimumPathSum
- minimumWindowSubstring
- singleNumber
- uniquePaths
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
579 files changed
+27916
-1161
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Large diffs are not rendered by default.
Lines changed: 52 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
33 | 48 | | |
34 | 49 | | |
35 | 50 | | |
| 51 | + | |
36 | 52 | | |
| 53 | + | |
37 | 54 | | |
38 | 55 | | |
39 | 56 | | |
40 | 57 | | |
41 | 58 | | |
42 | 59 | | |
43 | | - | |
| 60 | + | |
44 | 61 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
48 | 65 | | |
49 | 66 | | |
50 | | - | |
| 67 | + | |
51 | 68 | | |
52 | 69 | | |
53 | 70 | | |
| |||
56 | 73 | | |
57 | 74 | | |
58 | 75 | | |
59 | | - | |
60 | | - | |
| 76 | + | |
| 77 | + | |
61 | 78 | | |
62 | 79 | | |
63 | 80 | | |
64 | 81 | | |
65 | | - | |
| 82 | + | |
66 | 83 | | |
67 | | - | |
| 84 | + | |
68 | 85 | | |
69 | | - | |
| 86 | + | |
70 | 87 | | |
71 | 88 | | |
72 | 89 | | |
| |||
82 | 99 | | |
83 | 100 | | |
84 | 101 | | |
85 | | - | |
86 | | - | |
| 102 | + | |
| 103 | + | |
87 | 104 | | |
88 | 105 | | |
89 | 106 | | |
90 | 107 | | |
91 | 108 | | |
92 | 109 | | |
93 | | - | |
94 | | - | |
| 110 | + | |
| 111 | + | |
95 | 112 | | |
96 | 113 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
100 | 117 | | |
101 | 118 | | |
102 | 119 | | |
| |||
107 | 124 | | |
108 | 125 | | |
109 | 126 | | |
110 | | - | |
111 | | - | |
| 127 | + | |
| 128 | + | |
112 | 129 | | |
113 | 130 | | |
114 | 131 | | |
115 | 132 | | |
116 | 133 | | |
117 | | - | |
| 134 | + | |
118 | 135 | | |
119 | | - | |
| 136 | + | |
120 | 137 | | |
121 | 138 | | |
122 | 139 | | |
123 | 140 | | |
124 | 141 | | |
125 | 142 | | |
126 | 143 | | |
127 | | - | |
128 | | - | |
| 144 | + | |
| 145 | + | |
129 | 146 | | |
130 | | - | |
131 | | - | |
| 147 | + | |
| 148 | + | |
132 | 149 | | |
133 | 150 | | |
134 | | - | |
135 | | - | |
| 151 | + | |
| 152 | + | |
136 | 153 | | |
137 | 154 | | |
138 | 155 | | |
139 | 156 | | |
140 | | - | |
| 157 | + | |
141 | 158 | | |
142 | | - | |
| 159 | + | |
143 | 160 | | |
144 | 161 | | |
145 | 162 | | |
| |||
150 | 167 | | |
151 | 168 | | |
152 | 169 | | |
153 | | - | |
| 170 | + | |
154 | 171 | | |
155 | | - | |
| 172 | + | |
156 | 173 | | |
157 | 174 | | |
158 | 175 | | |
| |||
163 | 180 | | |
164 | 181 | | |
165 | 182 | | |
166 | | - | |
167 | | - | |
168 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
169 | 186 | | |
170 | 187 | | |
171 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
0 commit comments