Skip to content
leetcode problem solution
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.build
.gitignore
AddDigits
ArrayPairSum
AverageOfLevels
BackspaceCompare
CalPoints
CanWinNim
CountBinarySubstrings
DeleteListNode
DetectCapitalUse
DistributeCandies
FindComplement
FindDisappearedNumbers
FindLUSlength
FindMaxConsecutiveOnes
FindTarget
FindTheDifference
FindWords
FizzBuzz
FlipAndInvertImage
GetImportance
GetSum
HammingDistance
HasAlternatingBits
InvertTree
IsPalindrome
IsToeplitzMatrix
IslandPerimeter
JewelsAndStones
JudgeCircle
KthLargest
LemonadeChange
LetterCasePermutation
LinkListHasCycle
LinkListIsPalindrome
MajorityElement
MatrixReshape
MaxAreaOfIsland
MaxDepth
MergeTrees
MinDepth
MinStack
MostCommonWord
MoveZeros
MyHashSet
MyLinkedList
MyQueue
MyStack
NextGreaterElement
NumArray
NumberOfLines
QuadTree
ReverseNumber
ReverseString
ReverseWords
RomanToInt
RotateDigit
RotateString
SameTree
SelfDividing
SingleNumber
Sources/leetcode
Tests
TinyURL
TitleToNumber
ToGoatLatin
Tree2str
TrimBST
UniqueMorseRepresentations
addBinary
addStrings
allPathsSourceTarget
allPossibleFBT
arrangeCoins
binaryGap
binaryTreePaths
bstFromPreorder
buddyStrings
canConstruct
canPlaceFlowers
canVisitAllRooms
checkPerfectNumber
checkPossibility
checkRecord
climbStairs
complexNumberMultiply
compress
constructFromPrePost
constructMaximumBinaryTree
constructRectangle
containsDuplicate
containsNearbyDuplicate
convertBST
convertToBase7
convertToTitle
countAndSay
countBattleships
countBits
countPrimeSetBits
countPrimes
countSegments
customSortString
dailyTemperatures
deckRevealedIncreasing
deleteDuplicates
diameterOfBinaryTree
distributeCoins
dominantIndex
fairCandySwap
findAnagrams
findAndReplacePattern
findContentChildren
findDuplicates
findErrorNums
findLHS
findLengthOfLCIS
findMaxAverage
findMode
findNthDigit
findPairs
findRadius
findRelativeRanks
findRestaurant
findSecondMinimumValue
findShortestSubArray
findTilt
findUnsortedSubarray
firstBadVersion
firstUniqChar
flipEquiv
floodFill
generate
getIntersectionNode
getMinimumDifference
getRow
guessNumber
hasGroupsSizeX
hasPathSum
imageSmoother
insertIntoBST
insertIntoMaxTree
intersect
intersection
intervalIntersection
isAnagram
isBalanced
isHappy
isIsomorphic
isOneBitCharacter
isPalindrome2
isPerfectSquare
isPowerOfFour
isPowerOfThree
isPowerOfTwo
isRectangleOverlap
isSubtree
isSymmetric
isUgly
isValidParenthese
judgeSquareSum
kClosest
largeGroupPositions
largestTimeFromDigits
largestTriangleArea
leafSimilar
lengthOfLastWord
levelOrderBottom
licenseKeyFormatting
longestCommonPrefix
longestPalindrome
longestUnivaluePath
matrixScore
maxCount
maxDistToClosest
maxIncreaseKeepingSkyline
maxProfit
maxProfit2
maxSubArray
maximumProduct
merge
mergeTwoLists
middleNode
minAddToMakeValid
minCostClimbingStairs
minDiffInBST
minFallingPathSum
minMoves
missingNumber
mySqrt
networkDelayTime
nextGreatestLetter
numMagicSquaresInside
numberOfBoomerangs
pancakeSort
partitionLabels
pathSum
peakIndexInMountainArray
pivotIndex
plusOne
poorPigs
projectionArea
pruneTree
queryString
rangeSumBST
reachNumber
readBinaryWatch
readFile
reconstructQueue
removeDuplicates
removeElement
removeLinkedElements
repeatedStringMatch
repeatedSubstringPattern
reverseBits
reverseList
reverseStr
reverseVowels
rob
robotSim
rotateArray
search
searchBST
searchInsert
shortestToChar
sortedArrayToBST
spiralMatrixIII
stoneGame
strStr
strWithout3a3b
subdomainVisits
sumOfLeftLeaves
surfaceArea
thirdMax
toHex
toLowerCase
trailingZeroes
transpose
twoSum
twoSum_2
uncommonFromSentences
validMountainArray
validPalindrome
wordPattern
You can’t perform that action at this time.