MCPcopy Create free account

hub / github.com/MaskRay/LeetCode / functions

Functions1,379 in github.com/MaskRay/LeetCode

Methodadd
(ch: usize, pool: &mut [Node], tail: &mut usize, allo: &mut usize)
longest-duplicate-substring.rs:60
Methodadd
finding-mk-average.cc:56
Methodadd
sliding-window-median.cc:22
Methodadd
number-of-flowers-in-full-bloom.cc:7
Methodadd
range-sum-query-2d-mutable.cc:8
MethodaddBinary
add-binary.cc:6
MethodaddBoldTag
add-bold-tag-in-string.cc:4
MethodaddContentToFile
design-in-memory-file-system.cc:43
MethodaddDigits
add-digits.cc:4
MethodaddElement
finding-mk-average.cc:11
MethodaddMinimum
minimum-additions-to-make-valid-string.cc:3
MethodaddNum
Adds a number into the data structure.
find-median-from-data-stream.cc:8
MethodaddNum
data-stream-as-disjoint-intervals.cc:18
MethodaddOperators
expression-add-operators.cc:25
MethodaddStrings
add-strings.cc:4
MethodaddToArrayForm
add-to-array-form-of-integer.cc:8
MethodaddTwoNumbers
add-two-numbers.cc:4
MethodaddWord
Adds a word into the data structure.
add-and-search-word-data-structure-design.cc:17
MethodadvantageCount
advantage-shuffle.cc:6
MethodalienOrder
alien-dictionary.cc:4
MethodallCellsDistOrder
matrix-cells-in-distance-order.cc:4
MethodamountOfTime
amount-of-time-for-binary-tree-to-be-infected.cc:20
Methodanagrams
anagrams.cc:4
MethodappealSum
total-appeal-of-a-string.cc:6
Methodapply
rectangle-area-ii.cc:13
MethodapplyOperations
apply-operations-to-an-array.cc:6
MethodareNumbersAscending
check-if-numbers-are-ascending-in-a-sentence.cc:6
Methodare_connected
(n: i32, threshold: i32, queries: Vec<Vec<i32>>)
graph-connectivity-with-threshold.rs:3
MethodarithmeticTriplets
number-of-arithmetic-triplets.cc:6
MethodarrangeCoins
arranging-coins.cc:4
MethodarrayNesting
array-nesting.cc:7
Methodassign_tasks
(servers: Vec<i32>, tasks: Vec<i32>)
process-tasks-using-servers.rs:3
MethodatMostNGivenDigitSet
numbers-at-most-n-given-digit-set.cc:6
Methodatoi
string-to-integer-atoi.cc:4
Methodaugment
(n:usize, u:usize, mate:&mut[usize], slack:&mut[i32], lx:&mut[i32], ly:&mut[i32], fx:&mut[bool], f
maximum-compatibility-score-sum.rs:5
Methodbackward
enumerate valid right part: s[split, n) for open parentheses in s[milestones2[i] , n), at least `i+1` of them must be removed
remove-invalid-parentheses.cc:62
Methodbackward
expression-add-operators.cc:44
MethodbaseNeg2
convert-to-base-2.cc:4
MethodbeautifulArray
beautiful-array.cc:15
Methodbest_rotation
(nums: Vec<i32>)
smallest-rotation-with-highest-score.rs:6
Methodbfs
minimum-height-trees.cc:44
MethodbinaryGap
binary-gap.cc:4
MethodbinaryTreePaths
binary-tree-paths.cc:13
MethodbitwiseComplement
complement-of-base-10-integer.cc:4
MethodbrokenCalc
broken-calculator.cc:4
MethodbstFromPreorder
construct-binary-search-tree-from-preorder-traversal.cc:4
MethodbuddyStrings
buddy-strings.cc:7
MethodbuildTree
construct-binary-tree-from-inorder-and-postorder-traversal.cc:7
MethodbuildTree
construct-binary-tree-from-preorder-and-inorder-traversal.cc:6
MethodbulbSwitch
bulb-switcher.cc:4
Methodc
check-completeness-of-a-binary-tree.cc:4
MethodcalcEquation
evaluate-division.cc:12
Methodcalculate
basic-calculator.cc:6
Methodcalculate
basic-calculator-ii.cc:6
MethodcalculateMKAverage
finding-mk-average.cc:44
MethodcalculateMinimumHP
dungeon-game.cc:6
MethodcanAttendMeetings
meeting-rooms.cc:4
MethodcanChoose
form-array-by-concatenating-subarrays-of-another-array.cc:4
MethodcanCompleteCircuit
gas-station.cc:7
MethodcanConstruct
ransom-note.cc:4
MethodcanCross
frog-jump.cc:4
MethodcanFinish
course-schedule.cc:7
MethodcanIWin
can-i-win.cc:18
MethodcanJump
jump-game.cc:6
MethodcanMeasureWater
water-and-jug-problem.cc:4
MethodcanMerge
merge-bsts-to-create-single-bst.cc:3
MethodcanPartition
partition-equal-subset-sum.cc:4
MethodcanPermutePalindrome
palindrome-permutation.cc:4
MethodcanReorderDoubled
array-of-doubled-pairs.cc:4
MethodcanThreePartsEqualSum
partition-array-into-three-parts-with-equal-sum.cc:4
MethodcanVisitAllRooms
keys-and-rooms.cc:4
MethodcanWin
flip-game-ii.cc:4
MethodcanWinNim
nim-game.cc:4
Methodcan_be_increasing
(nums: Vec<i32>)
remove-one-element-to-make-the-array-strictly-increasing.rs:3
Methodcan_distribute
(mut nums: Vec<i32>, quantity: Vec<i32>)
distribute-repeating-integers.rs:3
Methodcan_reach
(s: String, min_jump: i32, max_jump: i32)
jump-game-vii.rs:3
Methodcan_see_persons_count
(heights: Vec<i32>)
number-of-visible-people-in-a-queue.rs:3
Methodcandy
(ratings: Vec<i32>)
candy.rs:2
Methodcandy
candy.cc:4
MethodcarFleet
car-fleet.cc:9
Methodcar_pooling
(trips: Vec<Vec<i32>>, capacity: i32)
car-pooling.rs:3
MethodcharacterReplacement
longest-repeating-character-replacement.cc:4
Methodcheck
Check if a number is available or not. */
design-phone-directory.cc:24
MethodcheckIfPangram
check-if-the-sentence-is-pangram.cc:4
MethodcheckPerfectNumber
perfect-number.cc:4
MethodcheckRecord
student-attendance-record-ii.cc:8
Methodcheck_if_prerequisite
(n: i32, prerequisites: Vec<Vec<i32>>, queries: Vec<Vec<i32>>)
course-schedule-iv.rs:3
Methodcheck_valid_string
(s: String)
valid-parenthesis-string.rs:3
MethodcircularGameLosers
find-the-losers-of-the-circular-game.cc:4
MethodclimbStairs
climbing-stairs.cc:4
MethodcloneGraph
clone-graph.cc:4
MethodclosedIsland
number-of-closed-islands.cc:7
MethodclosestKValues
closest-binary-search-tree-value-ii.cc:4
MethodclosestPrimes
closest-prime-numbers-in-range.cc:6
MethodclosestValue
closest-binary-search-tree-value.cc:4
Methodclosest_room
(mut rooms: Vec<Vec<i32>>, queries: Vec<Vec<i32>>)
closest-room.rs:3
MethodclosetTarget
shortest-distance-to-target-string-in-a-circular-array.cc:4
Methodclumsy
clumsy-factorial.cc:4
Methodcmp
erect-the-fence.cc:6
MethodcoinChange
coin-change.cc:4
← previousnext →201–300 of 1,379, ranked by callers