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
max_compatibility_sum
(students: Vec<Vec<i32>>, mentors: Vec<Vec<i32>>)
maximum-compatibility-score-sum.rs:3
Method
max_envelopes
(mut envelopes: Vec<Vec<i32>>)
russian-doll-envelopes.rs:2
Method
max_events
(mut events: Vec<Vec<i32>>)
maximum-number-of-events-that-can-be-attended.rs:3
Method
max_frequency
(mut nums: Vec<i32>, k: i32)
frequency-of-the-most-frequent-element.rs:2
Method
max_genetic_difference
(parents: Vec<i32>, queries: Vec<Vec<i32>>)
maximum-genetic-difference-query.rs:3
Method
max_matrix_sum
(matrix: Vec<Vec<i32>>)
maximum-matrix-sum.rs:3
Method
max_performance
(n: i32, speed: Vec<i32>, efficiency: Vec<i32>, k: i32)
maximum-performance-of-a-team.rs:3
Method
max_points
(points: Vec<Vec<i32>>)
maximum-number-of-points-with-cost.rs:3
Method
max_product
(s: String)
maximum-product-of-the-length-of-two-palindromic-subsequences.rs:3
Method
max_product
(s: String)
maximum-product-of-the-length-of-two-palindromic-substrings.rs:3
Method
max_sum_after_partitioning
(arr: Vec<i32>, k: i32)
partition-array-for-maximum-sum.rs:2
Method
max_sum_min_product
(a: Vec<i32>)
maximum-subarray-min-product.rs:2
Method
max_sum_range_query
(nums: Vec<i32>, requests: Vec<Vec<i32>>)
maximum-sum-obtained-of-any-permutation.rs:3
Method
maximalPathQuality
maximum-path-quality-of-a-graph.cc:20
Method
maximalRectangle
maximal-rectangle.cc:10
Method
maximalSquare
maximal-square.cc:7
Method
maximizeXor
maximum-xor-with-an-element-from-array.cc:7
Method
maximize_xor
(mut nums: Vec<i32>, mut queries: Vec<Vec<i32>>)
maximum-xor-with-an-element-from-array.rs:3
Method
maximumBags
maximum-bags-with-full-capacity-of-rocks.cc:7
Method
maximumBobPoints
maximum-points-in-an-archery-competition.cc:7
Method
maximumCandies
maximum-candies-allocated-to-k-children.cc:6
Method
maximumCount
maximum-count-of-positive-integer-and-negative-integer.cc:4
Method
maximumDifference
maximum-difference-between-increasing-elements.cc:4
Method
maximumGap
maximum-gap.cc:4
Method
maximumProduct
maximum-product-of-three-numbers.cc:4
Method
maximumRequests
maximum-number-of-achievable-transfer-requests.cc:9
Method
maximumScore
maximum-score-from-performing-multiplication-operations.cc:4
Method
maximumSubarraySum
maximum-sum-of-distinct-subarrays-with-length-k.cc:7
Method
maximumTastiness
maximum-tastiness-of-candy-basket.cc:7
Method
maximumTop
maximize-the-topmost-element-after-k-moves.cc:4
Method
maximum_element_after_decrementing_and_rearranging
(mut a: Vec<i32>)
maximum-element-after-decreasing-and-rearranging.rs:3
Method
maximum_removals
(s: String, p: String, removable: Vec<i32>)
maximum-number-of-removable-characters.rs:3
Method
mconcat
rectangle-area-ii.cc:8
Method
mconcat
longest-substring-of-one-repeating-character.cc:12
Method
medianSlidingWindow
sliding-window-median.cc:4
Method
merge
merge-intervals.cc:4
Method
merge
merge-sorted-array.cc:4
Method
mergeAlternately
merge-strings-alternately.cc:4
Method
mergeKLists
merge-k-sorted-lists.cc:4
Method
mergeStones
minimum-cost-to-merge-stones.cc:8
Method
mergeTrees
merge-two-binary-trees.cc:10
Method
mergeTwoLists
merge-two-sorted-lists.cc:5
Method
minAbsoluteSumDiff
minimum-absolute-sum-difference.cc:8
Method
minArea
smallest-rectangle-enclosing-black-pixels.cc:30
Method
minAreaRect
minimum-area-rectangle.cc:4
Method
minCost
minimum-cost-to-make-at-least-one-valid-path-in-a-grid.cc:7
Method
minCost
paint-house.cc:7
Method
minCostII
paint-house-ii.cc:7
Method
minCut
palindrome-partitioning-ii.cc:7
Method
minDeletionSize
delete-columns-to-make-sorted-iii.cc:8
Method
minDeletionSize
delete-columns-to-make-sorted-ii.cc:7
Method
minDepth
minimum-depth-of-binary-tree.cc:4
Method
minDistance
delete-operation-for-two-strings.cc:7
Method
minDistance
edit-distance.cc:6
Method
minDominoRotations
minimum-domino-rotations-for-equal-row.cc:4
Method
minEatingSpeed
koko-eating-bananas.cc:4
Method
minFallingPathSum
minimum-falling-path-sum.cc:8
Method
minGroups
divide-intervals-into-minimum-number-of-groups.cc:7
Method
minKBitFlips
minimum-number-of-k-consecutive-bit-flips.cc:4
Method
minMeetingRooms
meeting-rooms-ii.cc:7
Method
minMoves
minimum-moves-to-equal-array-elements.cc:4
Method
minMoves2
minimum-moves-to-equal-array-elements-ii.cc:4
Method
minMovesToMakePalindrome
minimum-number-of-moves-to-make-palindrome.cc:4
Method
minNumberOfHours
minimum-hours-of-training-to-win-a-competition.cc:6
Method
minOperations
minimum-number-of-operations-to-move-all-balls-to-each-box.cc:4
Method
minPatches
patching-array.cc:4
Method
minPathSum
minimum-path-sum.cc:6
Method
minPushBox
minimum-moves-to-move-a-box-to-their-target-location.cc:9
Method
minRefuelStops
minimum-number-of-refueling-stops.cc:4
Method
minScore
minimum-score-of-a-path-between-two-cities.cc:4
Method
minSideJumps
minimum-sideway-jumps.cc:4
Method
minSubArrayLen
minimum-size-subarray-sum.cc:4
Method
minSwapsCouples
couples-holding-hands.cc:4
Method
minTotalDistance
best-meeting-point.cc:7
Method
minTransfers
optimal-account-balancing.cc:7
Method
minWindow
minimum-window-substring.cc:7
Method
min_add_to_make_valid
(s: String)
minimum-add-to-make-parentheses-valid.rs:3
Method
min_characters
(a: String, b: String)
change-minimum-characters-to-satisfy-one-of-three-conditions.rs:3
Method
min_cost
(max_time: i32, edges: Vec<Vec<i32>>, passing_fees: Vec<i32>)
minimum-cost-to-reach-destination-in-time.rs:3
Method
min_difference
(a: Vec<i32>, queries: Vec<Vec<i32>>)
minimum-absolute-difference-queries.rs:3
Method
min_flips
(mat: Vec<Vec<i32>>)
minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix.rs:3
Method
min_flips
(s: String)
minimum-number-of-flips-to-make-the-binary-string-alternating.rs:3
Method
min_height_shelves
(books: Vec<Vec<i32>>, shelf_width: i32)
filling-bookcase-shelves.rs:3
Method
min_insertions
(s: String)
minimum-insertions-to-balance-a-parentheses-string.rs:3
Method
min_interval
(mut intervals: Vec<Vec<i32>>, queries: Vec<i32>)
minimum-interval-to-include-each-query.rs:4
Method
min_k_bit_flips
(mut nums: Vec<i32>, k: i32)
minimum-number-of-k-consecutive-bit-flips.rs:2
Method
min_moves
(nums: Vec<i32>, limit: i32)
minimum-moves-to-make-array-complementary.rs:3
Method
min_non_zero_product
(p: i32)
minimum-non-zero-product-of-the-array-elements.rs:3
Method
min_number_of_semesters
(n: i32, relations: Vec<Vec<i32>>, k: i32)
parallel-courses-ii.rs:3
Method
min_operations
(mut nums: Vec<i32>)
minimum-number-of-operations-to-make-array-continuous.rs:3
Method
min_operations
(target: Vec<i32>, arr: Vec<i32>)
minimum-operations-to-make-a-subsequence.rs:3
Method
min_operations_to_flip
(e: String)
minimum-cost-to-change-the-final-value-of-expression.rs:3
Method
min_sessions
(tasks: Vec<i32>, session_time: i32)
minimum-number-of-work-sessions-to-finish-the-tasks.rs:3
Method
min_skips
(dist: Vec<i32>, speed: i32, hours_before: i32)
minimum-skips-to-arrive-at-meeting-on-time.rs:3
Method
min_space_wasted_k_resizing
(nums: Vec<i32>, k: i32)
minimum-total-space-wasted-with-k-resizing-operations.rs:3
Method
min_speed_on_time
(dist: Vec<i32>, hour: f64)
minimum-speed-to-arrive-on-time.rs:3
Method
min_swaps
(s: String)
minimum-number-of-swaps-to-make-the-string-balanced.rs:3
Method
min_wasted_space
(mut ps: Vec<i32>, boxes: Vec<Vec<i32>>)
minimum-space-wasted-from-packaging.rs:3
Method
mincostToHireWorkers
minimum-cost-to-hire-k-workers.cc:8
Method
mincost_to_hire_workers
(quality: Vec<i32>, wage: Vec<i32>, k: i32)
minimum-cost-to-hire-k-workers.rs:23
← previous
next →
901–1,000 of 1,379, ranked by callers