MCPcopy Create free account

hub / github.com/MaskRay/LeetCode / functions

Functions1,379 in github.com/MaskRay/LeetCode

MethodlastRemaining
elimination-game.cc:14
Methodlatest_day_to_cross
(row: i32, col: i32, cells: Vec<Vec<i32>>)
last-day-where-you-can-still-cross.rs:3
MethodleafSimilar
leaf-similar-trees.cc:11
Methodleave
exam-room.cc:26
MethodlenLongestFibSubseq
length-of-longest-fibonacci-subsequence.cc:4
MethodlengthLongestPath
longest-absolute-file-path.cc:4
MethodlengthOfLIS
longest-increasing-subsequence.cc:3
MethodlengthOfLastWord
length-of-last-word.cc:4
MethodlengthOfLongestSubstring
longest-substring-without-repeating-characters.cc:4
MethodlengthOfLongestSubstringKDistinct
longest-substring-with-at-most-k-distinct-characters.cc:4
MethodlengthOfLongestSubstringTwoDistinct
longest-substring-with-at-most-two-distinct-characters.cc:4
Methodlength_of_lis
(nums: Vec<i32>)
longest-increasing-subsequence.rs:2
MethodletterCombinations
letter-combinations-of-a-phone-number.cc:16
MethodlevelOrder
binary-tree-level-order-traversal.cc:4
MethodlevelOrderBottom
binary-tree-level-order-traversal-ii.cc:4
MethodlexicalOrder
lexicographical-numbers.cc:4
MethodlicenseKeyFormatting
license-key-formatting.cc:4
MethodlongestArithSeqLength
longest-arithmetic-sequence.cc:7
MethodlongestBeautifulSubstring
longest-substring-of-all-vowels-in-order.cc:4
MethodlongestCommonPrefix
longest-common-prefix.cc:7
MethodlongestCommonSubpath
longest-common-subpath.cc:37
MethodlongestConsecutive
binary-tree-longest-consecutive-sequence.cc:12
MethodlongestConsecutive
longest-consecutive-sequence.cc:4
MethodlongestContinuousSubstring
length-of-the-longest-alphabetical-continuous-substring.cc:4
MethodlongestDupSubstring
longest-duplicate-substring.cc:8
MethodlongestIdealString
longest-ideal-subsequence.cc:7
MethodlongestIncreasingPath
longest-increasing-path-in-a-matrix.cc:18
MethodlongestOnes
max-consecutive-ones-iii.cc:4
MethodlongestPalindrome
maximize-palindrome-length-from-subsequences.cc:7
MethodlongestPalindrome
longest-palindromic-substring.cc:9
MethodlongestPalindrome
longest-palindrome.cc:4
MethodlongestPath
longest-path-with-different-adjacent-characters.cc:18
MethodlongestRepeating
longest-substring-of-one-repeating-character.cc:26
MethodlongestSubarray
longest-subarray-with-maximum-bitwise-and.cc:6
MethodlongestSubsequenceRepeatedK
longest-subsequence-repeated-k-times.cc:31
MethodlongestSubstring
longest-substring-with-at-least-k-repeating-characters.cc:7
MethodlongestValidParentheses
longest-valid-parentheses.cc:4
Methodlongest_awesome
(s: String)
find-longest-awesome-substring.rs:3
Methodlongest_beautiful_substring
(word: String)
longest-substring-of-all-vowels-in-order.rs:2
Methodlongest_common_subpath
(ab: i32, mut paths: Vec<Vec<i32>>)
longest-common-subpath.rs:3
Methodlongest_diverse_string
(a: i32, b: i32, c: i32)
longest-happy-string.rs:3
Methodlongest_dup_substring
(s: String)
longest-duplicate-substring.rs:2
Methodlongest_palindrome
(s: String)
longest-palindromic-substring.rs:2
MethodlowestCommonAncestor
lowest-common-ancestor-of-a-binary-search-tree.cc:4
MethodlowestCommonAncestor
lowest-common-ancestor-of-a-binary-tree.cc:4
Methodls
design-in-memory-file-system.cc:20
MethodmagicTower
contest/2021-spring/3.cc:8
MethodmagicalString
magical-string.cc:4
MethodmagnificentSets
divide-nodes-into-the-maximum-number-of-groups.cc:9
MethodmajorityElement
majority-element.cc:4
MethodmajorityElement
majority-element-ii.cc:4
MethodmakeStringSorted
minimum-number-of-operations-to-make-string-sorted.cc:15
Methodmake_string_sorted
(s: String)
minimum-number-of-operations-to-make-string-sorted.rs:13
Methodmakesquare
matchsticks-to-square.cc:7
Methodmanacher
palindrome-pairs.cc:7
FunctionmaxAncestorDiff
maximum-difference-between-node-and-ancestor.cc:12
MethodmaxArea
container-with-most-water.cc:4
MethodmaxBuilding
maximum-building-height.cc:4
MethodmaxCoins
burst-balloons.cc:10
MethodmaxCount
range-addition-ii.cc:4
MethodmaxDepth
maximum-depth-of-binary-tree.cc:4
MethodmaxDistance
two-furthest-houses-with-different-colors.cc:4
MethodmaxEnergyBoost
maximum-energy-boost-from-two-drinks.cc:4
MethodmaxEnvelopes
russian-doll-envelopes.cc:4
MethodmaxFrequency
frequency-of-the-most-frequent-element.cc:7
MethodmaxIceCream
maximum-ice-cream-bars.cc:6
MethodmaxKelements
maximal-score-after-applying-k-operations.cc:6
MethodmaxKilledEnemies
bomb-enemy.cc:7
MethodmaxMoves
maximum-number-of-moves-in-a-grid.cc:7
MethodmaxNumber
create-maximum-number.cc:188
MethodmaxOutput
difference-between-maximum-and-minimum-price-sum.cc:17
MethodmaxPalindromes
maximum-number-of-non-overlapping-palindrome-substrings.cc:7
MethodmaxPathSum
binary-tree-maximum-path-sum.cc:4
MethodmaxPoints
max-points-on-a-line.cc:12
MethodmaxProduct
maximum-product-of-word-lengths.cc:4
MethodmaxProduct
maximum-product-subarray.cc:4
MethodmaxProfit
best-time-to-buy-and-sell-stock-with-cooldown.cc:6
MethodmaxProfit
best-time-to-buy-and-sell-stock.cc:4
MethodmaxProfit
best-time-to-buy-and-sell-stock-ii.cc:4
MethodmaxProfit
best-time-to-buy-and-sell-stock-iv.cc:4
MethodmaxProfit
best-time-to-buy-and-sell-stock-iii.cc:4
MethodmaxProfitAssignment
most-profit-assigning-work.cc:8
MethodmaxRotateFunction
rotate-function.cc:4
MethodmaxScoreSightseeingPair
best-sightseeing-pair.cc:4
MethodmaxScoreWords
maximum-score-words-formed-by-letters.cc:7
MethodmaxSlidingWindow
sliding-window-maximum.cc:7
MethodmaxSubArray
maximum-subarray.cc:5
MethodmaxSubArrayLen
maximum-size-subarray-sum-equals-k.cc:4
MethodmaxSubseq
create-maximum-number.cc:157
MethodmaxSum
maximum-sum-of-an-hourglass.cc:6
MethodmaxSumAfterPartitioning
partition-array-for-maximum-sum.cc:7
MethodmaxSumDivThree
greatest-sum-divisible-by-three.cc:4
MethodmaxSumMinProduct
maximum-subarray-min-product.cc:7
MethodmaxSumSubmatrix
max-sum-of-sub-matrix-no-larger-than-k.cc:7
MethodmaxSumTwoNoOverlap
maximum-sum-of-two-non-overlapping-subarrays.cc:4
MethodmaxTrailingZeros
maximum-trailing-zeros-in-a-cornered-path.cc:11
MethodmaxTurbulenceSize
longest-turbulent-subarray.cc:4
MethodmaxUncrossedLines
uncrossed-lines.cc:8
Methodmax_alternating_sum
(nums: Vec<i32>)
maximum-alternating-subsequence-sum.rs:3
Methodmax_building
(n: i32, restrictions: Vec<Vec<i32>>)
maximum-building-height.rs:2
← previousnext →801–900 of 1,379, ranked by callers