MCPcopy Create free account

hub / github.com/MaskRay/LeetCode / functions

Functions1,379 in github.com/MaskRay/LeetCode

Methodmax_compatibility_sum
(students: Vec<Vec<i32>>, mentors: Vec<Vec<i32>>)
maximum-compatibility-score-sum.rs:3
Methodmax_envelopes
(mut envelopes: Vec<Vec<i32>>)
russian-doll-envelopes.rs:2
Methodmax_events
(mut events: Vec<Vec<i32>>)
maximum-number-of-events-that-can-be-attended.rs:3
Methodmax_frequency
(mut nums: Vec<i32>, k: i32)
frequency-of-the-most-frequent-element.rs:2
Methodmax_genetic_difference
(parents: Vec<i32>, queries: Vec<Vec<i32>>)
maximum-genetic-difference-query.rs:3
Methodmax_matrix_sum
(matrix: Vec<Vec<i32>>)
maximum-matrix-sum.rs:3
Methodmax_performance
(n: i32, speed: Vec<i32>, efficiency: Vec<i32>, k: i32)
maximum-performance-of-a-team.rs:3
Methodmax_points
(points: Vec<Vec<i32>>)
maximum-number-of-points-with-cost.rs:3
Methodmax_product
(s: String)
maximum-product-of-the-length-of-two-palindromic-subsequences.rs:3
Methodmax_product
(s: String)
maximum-product-of-the-length-of-two-palindromic-substrings.rs:3
Methodmax_sum_after_partitioning
(arr: Vec<i32>, k: i32)
partition-array-for-maximum-sum.rs:2
Methodmax_sum_min_product
(a: Vec<i32>)
maximum-subarray-min-product.rs:2
Methodmax_sum_range_query
(nums: Vec<i32>, requests: Vec<Vec<i32>>)
maximum-sum-obtained-of-any-permutation.rs:3
MethodmaximalPathQuality
maximum-path-quality-of-a-graph.cc:20
MethodmaximalRectangle
maximal-rectangle.cc:10
MethodmaximalSquare
maximal-square.cc:7
MethodmaximizeXor
maximum-xor-with-an-element-from-array.cc:7
Methodmaximize_xor
(mut nums: Vec<i32>, mut queries: Vec<Vec<i32>>)
maximum-xor-with-an-element-from-array.rs:3
MethodmaximumBags
maximum-bags-with-full-capacity-of-rocks.cc:7
MethodmaximumBobPoints
maximum-points-in-an-archery-competition.cc:7
MethodmaximumCandies
maximum-candies-allocated-to-k-children.cc:6
MethodmaximumCount
maximum-count-of-positive-integer-and-negative-integer.cc:4
MethodmaximumDifference
maximum-difference-between-increasing-elements.cc:4
MethodmaximumGap
maximum-gap.cc:4
MethodmaximumProduct
maximum-product-of-three-numbers.cc:4
MethodmaximumRequests
maximum-number-of-achievable-transfer-requests.cc:9
MethodmaximumScore
maximum-score-from-performing-multiplication-operations.cc:4
MethodmaximumSubarraySum
maximum-sum-of-distinct-subarrays-with-length-k.cc:7
MethodmaximumTastiness
maximum-tastiness-of-candy-basket.cc:7
MethodmaximumTop
maximize-the-topmost-element-after-k-moves.cc:4
Methodmaximum_element_after_decrementing_and_rearranging
(mut a: Vec<i32>)
maximum-element-after-decreasing-and-rearranging.rs:3
Methodmaximum_removals
(s: String, p: String, removable: Vec<i32>)
maximum-number-of-removable-characters.rs:3
Methodmconcat
rectangle-area-ii.cc:8
Methodmconcat
longest-substring-of-one-repeating-character.cc:12
MethodmedianSlidingWindow
sliding-window-median.cc:4
Methodmerge
merge-intervals.cc:4
Methodmerge
merge-sorted-array.cc:4
MethodmergeAlternately
merge-strings-alternately.cc:4
MethodmergeKLists
merge-k-sorted-lists.cc:4
MethodmergeStones
minimum-cost-to-merge-stones.cc:8
MethodmergeTrees
merge-two-binary-trees.cc:10
MethodmergeTwoLists
merge-two-sorted-lists.cc:5
MethodminAbsoluteSumDiff
minimum-absolute-sum-difference.cc:8
MethodminArea
smallest-rectangle-enclosing-black-pixels.cc:30
MethodminAreaRect
minimum-area-rectangle.cc:4
MethodminCost
minimum-cost-to-make-at-least-one-valid-path-in-a-grid.cc:7
MethodminCost
paint-house.cc:7
MethodminCostII
paint-house-ii.cc:7
MethodminCut
palindrome-partitioning-ii.cc:7
MethodminDeletionSize
delete-columns-to-make-sorted-iii.cc:8
MethodminDeletionSize
delete-columns-to-make-sorted-ii.cc:7
MethodminDepth
minimum-depth-of-binary-tree.cc:4
MethodminDistance
delete-operation-for-two-strings.cc:7
MethodminDistance
edit-distance.cc:6
MethodminDominoRotations
minimum-domino-rotations-for-equal-row.cc:4
MethodminEatingSpeed
koko-eating-bananas.cc:4
MethodminFallingPathSum
minimum-falling-path-sum.cc:8
MethodminGroups
divide-intervals-into-minimum-number-of-groups.cc:7
MethodminKBitFlips
minimum-number-of-k-consecutive-bit-flips.cc:4
MethodminMeetingRooms
meeting-rooms-ii.cc:7
MethodminMoves
minimum-moves-to-equal-array-elements.cc:4
MethodminMoves2
minimum-moves-to-equal-array-elements-ii.cc:4
MethodminMovesToMakePalindrome
minimum-number-of-moves-to-make-palindrome.cc:4
MethodminNumberOfHours
minimum-hours-of-training-to-win-a-competition.cc:6
MethodminOperations
minimum-number-of-operations-to-move-all-balls-to-each-box.cc:4
MethodminPatches
patching-array.cc:4
MethodminPathSum
minimum-path-sum.cc:6
MethodminPushBox
minimum-moves-to-move-a-box-to-their-target-location.cc:9
MethodminRefuelStops
minimum-number-of-refueling-stops.cc:4
MethodminScore
minimum-score-of-a-path-between-two-cities.cc:4
MethodminSideJumps
minimum-sideway-jumps.cc:4
MethodminSubArrayLen
minimum-size-subarray-sum.cc:4
MethodminSwapsCouples
couples-holding-hands.cc:4
MethodminTotalDistance
best-meeting-point.cc:7
MethodminTransfers
optimal-account-balancing.cc:7
MethodminWindow
minimum-window-substring.cc:7
Methodmin_add_to_make_valid
(s: String)
minimum-add-to-make-parentheses-valid.rs:3
Methodmin_characters
(a: String, b: String)
change-minimum-characters-to-satisfy-one-of-three-conditions.rs:3
Methodmin_cost
(max_time: i32, edges: Vec<Vec<i32>>, passing_fees: Vec<i32>)
minimum-cost-to-reach-destination-in-time.rs:3
Methodmin_difference
(a: Vec<i32>, queries: Vec<Vec<i32>>)
minimum-absolute-difference-queries.rs:3
Methodmin_flips
(mat: Vec<Vec<i32>>)
minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix.rs:3
Methodmin_flips
(s: String)
minimum-number-of-flips-to-make-the-binary-string-alternating.rs:3
Methodmin_height_shelves
(books: Vec<Vec<i32>>, shelf_width: i32)
filling-bookcase-shelves.rs:3
Methodmin_insertions
(s: String)
minimum-insertions-to-balance-a-parentheses-string.rs:3
Methodmin_interval
(mut intervals: Vec<Vec<i32>>, queries: Vec<i32>)
minimum-interval-to-include-each-query.rs:4
Methodmin_k_bit_flips
(mut nums: Vec<i32>, k: i32)
minimum-number-of-k-consecutive-bit-flips.rs:2
Methodmin_moves
(nums: Vec<i32>, limit: i32)
minimum-moves-to-make-array-complementary.rs:3
Methodmin_non_zero_product
(p: i32)
minimum-non-zero-product-of-the-array-elements.rs:3
Methodmin_number_of_semesters
(n: i32, relations: Vec<Vec<i32>>, k: i32)
parallel-courses-ii.rs:3
Methodmin_operations
(mut nums: Vec<i32>)
minimum-number-of-operations-to-make-array-continuous.rs:3
Methodmin_operations
(target: Vec<i32>, arr: Vec<i32>)
minimum-operations-to-make-a-subsequence.rs:3
Methodmin_operations_to_flip
(e: String)
minimum-cost-to-change-the-final-value-of-expression.rs:3
Methodmin_sessions
(tasks: Vec<i32>, session_time: i32)
minimum-number-of-work-sessions-to-finish-the-tasks.rs:3
Methodmin_skips
(dist: Vec<i32>, speed: i32, hours_before: i32)
minimum-skips-to-arrive-at-meeting-on-time.rs:3
Methodmin_space_wasted_k_resizing
(nums: Vec<i32>, k: i32)
minimum-total-space-wasted-with-k-resizing-operations.rs:3
Methodmin_speed_on_time
(dist: Vec<i32>, hour: f64)
minimum-speed-to-arrive-on-time.rs:3
Methodmin_swaps
(s: String)
minimum-number-of-swaps-to-make-the-string-balanced.rs:3
Methodmin_wasted_space
(mut ps: Vec<i32>, boxes: Vec<Vec<i32>>)
minimum-space-wasted-from-packaging.rs:3
MethodmincostToHireWorkers
minimum-cost-to-hire-k-workers.cc:8
Methodmincost_to_hire_workers
(quality: Vec<i32>, wage: Vec<i32>, k: i32)
minimum-cost-to-hire-k-workers.rs:23
← previousnext →901–1,000 of 1,379, ranked by callers