Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MaskRay/LeetCode
/ functions
Functions
1,379 in github.com/MaskRay/LeetCode
⨍
Functions
1,379
◇
Types & classes
851
Method
lastRemaining
elimination-game.cc:14
Method
latest_day_to_cross
(row: i32, col: i32, cells: Vec<Vec<i32>>)
last-day-where-you-can-still-cross.rs:3
Method
leafSimilar
leaf-similar-trees.cc:11
Method
leave
exam-room.cc:26
Method
lenLongestFibSubseq
length-of-longest-fibonacci-subsequence.cc:4
Method
lengthLongestPath
longest-absolute-file-path.cc:4
Method
lengthOfLIS
longest-increasing-subsequence.cc:3
Method
lengthOfLastWord
length-of-last-word.cc:4
Method
lengthOfLongestSubstring
longest-substring-without-repeating-characters.cc:4
Method
lengthOfLongestSubstringKDistinct
longest-substring-with-at-most-k-distinct-characters.cc:4
Method
lengthOfLongestSubstringTwoDistinct
longest-substring-with-at-most-two-distinct-characters.cc:4
Method
length_of_lis
(nums: Vec<i32>)
longest-increasing-subsequence.rs:2
Method
letterCombinations
letter-combinations-of-a-phone-number.cc:16
Method
levelOrder
binary-tree-level-order-traversal.cc:4
Method
levelOrderBottom
binary-tree-level-order-traversal-ii.cc:4
Method
lexicalOrder
lexicographical-numbers.cc:4
Method
licenseKeyFormatting
license-key-formatting.cc:4
Method
longestArithSeqLength
longest-arithmetic-sequence.cc:7
Method
longestBeautifulSubstring
longest-substring-of-all-vowels-in-order.cc:4
Method
longestCommonPrefix
longest-common-prefix.cc:7
Method
longestCommonSubpath
longest-common-subpath.cc:37
Method
longestConsecutive
binary-tree-longest-consecutive-sequence.cc:12
Method
longestConsecutive
longest-consecutive-sequence.cc:4
Method
longestContinuousSubstring
length-of-the-longest-alphabetical-continuous-substring.cc:4
Method
longestDupSubstring
longest-duplicate-substring.cc:8
Method
longestIdealString
longest-ideal-subsequence.cc:7
Method
longestIncreasingPath
longest-increasing-path-in-a-matrix.cc:18
Method
longestOnes
max-consecutive-ones-iii.cc:4
Method
longestPalindrome
maximize-palindrome-length-from-subsequences.cc:7
Method
longestPalindrome
longest-palindromic-substring.cc:9
Method
longestPalindrome
longest-palindrome.cc:4
Method
longestPath
longest-path-with-different-adjacent-characters.cc:18
Method
longestRepeating
longest-substring-of-one-repeating-character.cc:26
Method
longestSubarray
longest-subarray-with-maximum-bitwise-and.cc:6
Method
longestSubsequenceRepeatedK
longest-subsequence-repeated-k-times.cc:31
Method
longestSubstring
longest-substring-with-at-least-k-repeating-characters.cc:7
Method
longestValidParentheses
longest-valid-parentheses.cc:4
Method
longest_awesome
(s: String)
find-longest-awesome-substring.rs:3
Method
longest_beautiful_substring
(word: String)
longest-substring-of-all-vowels-in-order.rs:2
Method
longest_common_subpath
(ab: i32, mut paths: Vec<Vec<i32>>)
longest-common-subpath.rs:3
Method
longest_diverse_string
(a: i32, b: i32, c: i32)
longest-happy-string.rs:3
Method
longest_dup_substring
(s: String)
longest-duplicate-substring.rs:2
Method
longest_palindrome
(s: String)
longest-palindromic-substring.rs:2
Method
lowestCommonAncestor
lowest-common-ancestor-of-a-binary-search-tree.cc:4
Method
lowestCommonAncestor
lowest-common-ancestor-of-a-binary-tree.cc:4
Method
ls
design-in-memory-file-system.cc:20
Method
magicTower
contest/2021-spring/3.cc:8
Method
magicalString
magical-string.cc:4
Method
magnificentSets
divide-nodes-into-the-maximum-number-of-groups.cc:9
Method
majorityElement
majority-element.cc:4
Method
majorityElement
majority-element-ii.cc:4
Method
makeStringSorted
minimum-number-of-operations-to-make-string-sorted.cc:15
Method
make_string_sorted
(s: String)
minimum-number-of-operations-to-make-string-sorted.rs:13
Method
makesquare
matchsticks-to-square.cc:7
Method
manacher
palindrome-pairs.cc:7
Function
maxAncestorDiff
maximum-difference-between-node-and-ancestor.cc:12
Method
maxArea
container-with-most-water.cc:4
Method
maxBuilding
maximum-building-height.cc:4
Method
maxCoins
burst-balloons.cc:10
Method
maxCount
range-addition-ii.cc:4
Method
maxDepth
maximum-depth-of-binary-tree.cc:4
Method
maxDistance
two-furthest-houses-with-different-colors.cc:4
Method
maxEnergyBoost
maximum-energy-boost-from-two-drinks.cc:4
Method
maxEnvelopes
russian-doll-envelopes.cc:4
Method
maxFrequency
frequency-of-the-most-frequent-element.cc:7
Method
maxIceCream
maximum-ice-cream-bars.cc:6
Method
maxKelements
maximal-score-after-applying-k-operations.cc:6
Method
maxKilledEnemies
bomb-enemy.cc:7
Method
maxMoves
maximum-number-of-moves-in-a-grid.cc:7
Method
maxNumber
create-maximum-number.cc:188
Method
maxOutput
difference-between-maximum-and-minimum-price-sum.cc:17
Method
maxPalindromes
maximum-number-of-non-overlapping-palindrome-substrings.cc:7
Method
maxPathSum
binary-tree-maximum-path-sum.cc:4
Method
maxPoints
max-points-on-a-line.cc:12
Method
maxProduct
maximum-product-of-word-lengths.cc:4
Method
maxProduct
maximum-product-subarray.cc:4
Method
maxProfit
best-time-to-buy-and-sell-stock-with-cooldown.cc:6
Method
maxProfit
best-time-to-buy-and-sell-stock.cc:4
Method
maxProfit
best-time-to-buy-and-sell-stock-ii.cc:4
Method
maxProfit
best-time-to-buy-and-sell-stock-iv.cc:4
Method
maxProfit
best-time-to-buy-and-sell-stock-iii.cc:4
Method
maxProfitAssignment
most-profit-assigning-work.cc:8
Method
maxRotateFunction
rotate-function.cc:4
Method
maxScoreSightseeingPair
best-sightseeing-pair.cc:4
Method
maxScoreWords
maximum-score-words-formed-by-letters.cc:7
Method
maxSlidingWindow
sliding-window-maximum.cc:7
Method
maxSubArray
maximum-subarray.cc:5
Method
maxSubArrayLen
maximum-size-subarray-sum-equals-k.cc:4
Method
maxSubseq
create-maximum-number.cc:157
Method
maxSum
maximum-sum-of-an-hourglass.cc:6
Method
maxSumAfterPartitioning
partition-array-for-maximum-sum.cc:7
Method
maxSumDivThree
greatest-sum-divisible-by-three.cc:4
Method
maxSumMinProduct
maximum-subarray-min-product.cc:7
Method
maxSumSubmatrix
max-sum-of-sub-matrix-no-larger-than-k.cc:7
Method
maxSumTwoNoOverlap
maximum-sum-of-two-non-overlapping-subarrays.cc:4
Method
maxTrailingZeros
maximum-trailing-zeros-in-a-cornered-path.cc:11
Method
maxTurbulenceSize
longest-turbulent-subarray.cc:4
Method
maxUncrossedLines
uncrossed-lines.cc:8
Method
max_alternating_sum
(nums: Vec<i32>)
maximum-alternating-subsequence-sum.rs:3
Method
max_building
(n: i32, restrictions: Vec<Vec<i32>>)
maximum-building-height.rs:2
← previous
next →
801–900 of 1,379, ranked by callers