MCPcopy Create free account

hub / github.com/MaskRay/LeetCode / functions

Functions1,379 in github.com/MaskRay/LeetCode

MethodminimizeXor
minimize-xor.cc:4
MethodminimizedMaximum
minimized-maximum-of-products-distributed-to-any-store.cc:6
MethodminimumCost
minimum-cost-of-a-path-with-special-roads.cc:6
MethodminimumDifference
partition-array-into-two-arrays-to-minimize-sum-difference.cc:6
MethodminimumDifference
minimum-difference-in-sums-after-removal-of-elements.cc:8
MethodminimumHammingDistance
minimize-hamming-distance-after-swap-operations.cc:4
MethodminimumLines
minimum-lines-to-represent-a-line-chart.cc:7
MethodminimumMoves
minimum-moves-to-convert-string.cc:6
MethodminimumOperations
minimum-number-of-operations-to-sort-a-binary-tree-by-level.cc:13
MethodminimumOperations
minimum-operations-to-convert-number.cc:6
MethodminimumPartition
partition-string-into-substrings-with-values-at-most-k.cc:4
MethodminimumRounds
minimum-rounds-to-complete-all-tasks.cc:6
MethodminimumTime
minimum-time-to-remove-all-cars-containing-illegal-goods.cc:4
MethodminimumTotal
triangle.cc:7
MethodminimumTotalDistance
minimum-total-distance-traveled.cc:66
MethodminimumTotalPrice
minimize-the-total-price-of-the-trips.cc:47
MethodminimumWeight
minimum-weighted-subgraph-with-the-required-paths.cc:26
MethodmirrorReflection
mirror-reflection.cc:4
MethodmissingNumber
missing-number.cc:4
MethodmissingRolls
find-missing-observations.cc:7
Methodmkdir
design-in-memory-file-system.cc:34
Methodmodify
rectangle-area-ii.cc:18
MethodmonkeyMove
count-collisions-of-monkeys-on-a-polygon.cc:4
MethodmostFrequentEven
most-frequent-even-element.cc:6
Methodmove
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
Methodmove
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
MethodmoveZeroes
move-zeroes.cc:4
Methodmultiply
sparse-matrix-multiplication.cc:6
Methodmultiply
multiply-strings.cc:6
MethodnetworkDelayTime
network-delay-time.cc:6
Methodnext
moving-average-from-data-stream.cc:10
Methodnext
zigzag-iterator.cc:12
Methodnext
hasNext() and next() should behave the same as in the Iterator interface. Override them if needed.
peeking-iterator.cc:41
Methodnext
online-stock-span.cc:6
Methodnext
design-compressed-string-iterator.cc:11
Methodnext
@return the next smallest number */
binary-search-tree-iterator.cc:17
Methodnext
rle-iterator.cc:8
Methodnext
flatten-nested-list-iterator.cc:26
Methodnext
flatten-2d-vector.cc:13
MethodnextBeautifulNumber
next-greater-numerically-balanced-number.cc:6
MethodnextGreaterElement
next-greater-element-iii.cc:6
MethodnextLargerNodes
next-greater-node-in-linked-list.cc:4
MethodnextPermutation
next-permutation.cc:6
Methodnext_permutation
(a: &mut [u8])
minimum-adjacent-swaps-to-reach-the-kth-smallest-number.rs:2
Methodnth
(a: &mut [(i32,i32)], lo: usize, hi: usize, k: usize)
top-k-frequent-elements.rs:7
Methodnth
(a: &mut [i32], lo: usize, hi: usize, k: usize)
kth-largest-element-in-an-array.rs:3
MethodnthSuperUglyNumber
super-ugly-number.cc:7
MethodnthUglyNumber
ugly-number-ii.cc:4
Methodnth_super_ugly_number
(n: i32, primes: Vec<i32>)
super-ugly-number.rs:3
Methodnth_ugly_number
(n: i32)
ugly-number-ii.rs:2
MethodnumBusesToDestination
bus-routes.cc:6
MethodnumDecodings
decode-ways.cc:8
MethodnumDistinct
distinct-subsequences.cc:9
MethodnumDupDigitsAtMostN
numbers-with-1-repeated-digit..cc:8
MethodnumEnclaves
number-of-enclaves.cc:7
MethodnumFriendRequests
friends-of-appropriate-ages.cc:6
MethodnumIslands
number-of-islands.cc:7
MethodnumIslands2
number-of-islands-ii.cc:12
MethodnumMagicSquaresInside
magic-squares-in-grid.cc:7
MethodnumMovesStones
moving-stones-until-consecutive.cc:4
MethodnumPairsDivisibleBy60
pairs-of-songs-with-total-durations-divisible-by-60.cc:4
MethodnumPermsDISequence
valid-permutations-for-di-sequence.cc:9
MethodnumRescueBoats
boats-to-save-people.cc:4
MethodnumSquarefulPerms
number-of-squareful-arrays.cc:8
MethodnumSquares
perfect-squares.cc:9
MethodnumSubarraysWithSum
binary-subarrays-with-sum.cc:4
MethodnumTrees
unique-binary-search-trees.cc:7
MethodnumUniqueEmails
unique-email-addresses.cc:4
MethodnumWays
paint-fence.cc:4
Methodnum_matching_subseq
(s: String, words: Vec<String>)
number-of-matching-subsequences.rs:3
Methodnum_perms_di_sequence
(s: String)
valid-permutations-for-di-sequence.rs:3
Methodnum_subarray_bounded_max
(nums: Vec<i32>, left: i32, right: i32)
number-of-subarrays-with-bounded-maximum.rs:3
MethodnumberOfArithmeticSlices
arithmetic-slices.cc:4
MethodnumberOfArithmeticSlices
arithmetic-slices-ii-subsequence.cc:4
MethodnumberOfBoomerangs
number-of-boomerangs.cc:7
MethodnumberOfGoodPaths
number-of-good-paths.cc:7
MethodnumberOfPaths
paths-in-matrix-whose-sum-is-divisible-by-k.cc:7
MethodnumberOfPatterns
android-unlock-patterns.cc:28
MethodnumberToWords
integer-to-english-words.cc:10
Methodnumber_of_combinations
(num: String)
number-of-ways-to-separate-numbers.rs:3
Methodnumber_of_good_subsets
(nums: Vec<i32>)
the-number-of-good-subsets.rs:3
Methodnumber_of_weak_characters
(mut properties: Vec<Vec<i32>>)
the-number-of-weak-characters-in-the-game.rs:3
Methodnumber_of_weeks
(a: Vec<i32>)
maximum-number-of-weeks-for-which-you-can-work.rs:3
MethodnumsGame
contest/2020-fall/3.cc:6
MethododdCells
cells-with-odd-values-in-a-matrix.cc:7
MethododdEvenList
odd-even-linked-list.cc:4
Methodop
different-ways-to-add-parentheses.cc:31
Methodoperator()
perfect-rectangle.cc:5
Methodoperator()
merge-k-sorted-lists.cc:6
Functionoperator+
maximum-trailing-zeros-in-a-cornered-path.cc:6
Functionoperator-
maximum-trailing-zeros-in-a-cornered-path.cc:7
Functionoperator<
max-points-on-a-line.cc:5
Methodoperator<
contest/2021-spring/5.cc:7
Methodoperator>
single-threaded-cpu.cc:8
MethodoptimalDivision
optimal-division.cc:6
MethodorangesRotting
rotting-oranges.cc:7
MethodorchestraLayout
contest/2021-spring/2.cc:7
MethodorderlyQueue
orderly-queue.cc:4
MethodoriginalDigits
reconstruct-original-digits-from-english.cc:4
MethodouterTrees
erect-the-fence.cc:13
← previousnext →1,001–1,100 of 1,379, ranked by callers