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
minimizeXor
minimize-xor.cc:4
Method
minimizedMaximum
minimized-maximum-of-products-distributed-to-any-store.cc:6
Method
minimumCost
minimum-cost-of-a-path-with-special-roads.cc:6
Method
minimumDifference
partition-array-into-two-arrays-to-minimize-sum-difference.cc:6
Method
minimumDifference
minimum-difference-in-sums-after-removal-of-elements.cc:8
Method
minimumHammingDistance
minimize-hamming-distance-after-swap-operations.cc:4
Method
minimumLines
minimum-lines-to-represent-a-line-chart.cc:7
Method
minimumMoves
minimum-moves-to-convert-string.cc:6
Method
minimumOperations
minimum-number-of-operations-to-sort-a-binary-tree-by-level.cc:13
Method
minimumOperations
minimum-operations-to-convert-number.cc:6
Method
minimumPartition
partition-string-into-substrings-with-values-at-most-k.cc:4
Method
minimumRounds
minimum-rounds-to-complete-all-tasks.cc:6
Method
minimumTime
minimum-time-to-remove-all-cars-containing-illegal-goods.cc:4
Method
minimumTotal
triangle.cc:7
Method
minimumTotalDistance
minimum-total-distance-traveled.cc:66
Method
minimumTotalPrice
minimize-the-total-price-of-the-trips.cc:47
Method
minimumWeight
minimum-weighted-subgraph-with-the-required-paths.cc:26
Method
mirrorReflection
mirror-reflection.cc:4
Method
missingNumber
missing-number.cc:4
Method
missingRolls
find-missing-observations.cc:7
Method
mkdir
design-in-memory-file-system.cc:34
Method
modify
rectangle-area-ii.cc:18
Method
monkeyMove
count-collisions-of-monkeys-on-a-polygon.cc:4
Method
mostFrequentEven
most-frequent-even-element.cc:6
Method
move
Player {player} makes a move at ({row}, {col}). @param row The row of the board. @param col The column of the board. @param player The pla
design-tic-tac-toe.cc:27
Method
move
Moves the snake. @param direction - 'U' = Up, 'L' = Left, 'R' = Right, 'D' = Down @return The game's score after the move. Return -1 if game o
design-snake-game.cc:26
Method
moveZeroes
move-zeroes.cc:4
Method
multiply
sparse-matrix-multiplication.cc:6
Method
multiply
multiply-strings.cc:6
Method
networkDelayTime
network-delay-time.cc:6
Method
next
moving-average-from-data-stream.cc:10
Method
next
zigzag-iterator.cc:12
Method
next
hasNext() and next() should behave the same as in the Iterator interface. Override them if needed.
peeking-iterator.cc:41
Method
next
online-stock-span.cc:6
Method
next
design-compressed-string-iterator.cc:11
Method
next
@return the next smallest number */
binary-search-tree-iterator.cc:17
Method
next
rle-iterator.cc:8
Method
next
flatten-nested-list-iterator.cc:26
Method
next
flatten-2d-vector.cc:13
Method
nextBeautifulNumber
next-greater-numerically-balanced-number.cc:6
Method
nextGreaterElement
next-greater-element-iii.cc:6
Method
nextLargerNodes
next-greater-node-in-linked-list.cc:4
Method
nextPermutation
next-permutation.cc:6
Method
next_permutation
(a: &mut [u8])
minimum-adjacent-swaps-to-reach-the-kth-smallest-number.rs:2
Method
nth
(a: &mut [(i32,i32)], lo: usize, hi: usize, k: usize)
top-k-frequent-elements.rs:7
Method
nth
(a: &mut [i32], lo: usize, hi: usize, k: usize)
kth-largest-element-in-an-array.rs:3
Method
nthSuperUglyNumber
super-ugly-number.cc:7
Method
nthUglyNumber
ugly-number-ii.cc:4
Method
nth_super_ugly_number
(n: i32, primes: Vec<i32>)
super-ugly-number.rs:3
Method
nth_ugly_number
(n: i32)
ugly-number-ii.rs:2
Method
numBusesToDestination
bus-routes.cc:6
Method
numDecodings
decode-ways.cc:8
Method
numDistinct
distinct-subsequences.cc:9
Method
numDupDigitsAtMostN
numbers-with-1-repeated-digit..cc:8
Method
numEnclaves
number-of-enclaves.cc:7
Method
numFriendRequests
friends-of-appropriate-ages.cc:6
Method
numIslands
number-of-islands.cc:7
Method
numIslands2
number-of-islands-ii.cc:12
Method
numMagicSquaresInside
magic-squares-in-grid.cc:7
Method
numMovesStones
moving-stones-until-consecutive.cc:4
Method
numPairsDivisibleBy60
pairs-of-songs-with-total-durations-divisible-by-60.cc:4
Method
numPermsDISequence
valid-permutations-for-di-sequence.cc:9
Method
numRescueBoats
boats-to-save-people.cc:4
Method
numSquarefulPerms
number-of-squareful-arrays.cc:8
Method
numSquares
perfect-squares.cc:9
Method
numSubarraysWithSum
binary-subarrays-with-sum.cc:4
Method
numTrees
unique-binary-search-trees.cc:7
Method
numUniqueEmails
unique-email-addresses.cc:4
Method
numWays
paint-fence.cc:4
Method
num_matching_subseq
(s: String, words: Vec<String>)
number-of-matching-subsequences.rs:3
Method
num_perms_di_sequence
(s: String)
valid-permutations-for-di-sequence.rs:3
Method
num_subarray_bounded_max
(nums: Vec<i32>, left: i32, right: i32)
number-of-subarrays-with-bounded-maximum.rs:3
Method
numberOfArithmeticSlices
arithmetic-slices.cc:4
Method
numberOfArithmeticSlices
arithmetic-slices-ii-subsequence.cc:4
Method
numberOfBoomerangs
number-of-boomerangs.cc:7
Method
numberOfGoodPaths
number-of-good-paths.cc:7
Method
numberOfPaths
paths-in-matrix-whose-sum-is-divisible-by-k.cc:7
Method
numberOfPatterns
android-unlock-patterns.cc:28
Method
numberToWords
integer-to-english-words.cc:10
Method
number_of_combinations
(num: String)
number-of-ways-to-separate-numbers.rs:3
Method
number_of_good_subsets
(nums: Vec<i32>)
the-number-of-good-subsets.rs:3
Method
number_of_weak_characters
(mut properties: Vec<Vec<i32>>)
the-number-of-weak-characters-in-the-game.rs:3
Method
number_of_weeks
(a: Vec<i32>)
maximum-number-of-weeks-for-which-you-can-work.rs:3
Method
numsGame
contest/2020-fall/3.cc:6
Method
oddCells
cells-with-odd-values-in-a-matrix.cc:7
Method
oddEvenList
odd-even-linked-list.cc:4
Method
op
different-ways-to-add-parentheses.cc:31
Method
operator()
perfect-rectangle.cc:5
Method
operator()
merge-k-sorted-lists.cc:6
Function
operator+
maximum-trailing-zeros-in-a-cornered-path.cc:6
Function
operator-
maximum-trailing-zeros-in-a-cornered-path.cc:7
Function
operator<
max-points-on-a-line.cc:5
Method
operator<
contest/2021-spring/5.cc:7
Method
operator>
single-threaded-cpu.cc:8
Method
optimalDivision
optimal-division.cc:6
Method
orangesRotting
rotting-oranges.cc:7
Method
orchestraLayout
contest/2021-spring/2.cc:7
Method
orderlyQueue
orderly-queue.cc:4
Method
originalDigits
reconstruct-original-digits-from-english.cc:4
Method
outerTrees
erect-the-fence.cc:13
← previous
next →
1,001–1,100 of 1,379, ranked by callers