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
add
(ch: usize, pool: &mut [Node], tail: &mut usize, allo: &mut usize)
longest-duplicate-substring.rs:60
Method
add
finding-mk-average.cc:56
Method
add
sliding-window-median.cc:22
Method
add
number-of-flowers-in-full-bloom.cc:7
Method
add
range-sum-query-2d-mutable.cc:8
Method
addBinary
add-binary.cc:6
Method
addBoldTag
add-bold-tag-in-string.cc:4
Method
addContentToFile
design-in-memory-file-system.cc:43
Method
addDigits
add-digits.cc:4
Method
addElement
finding-mk-average.cc:11
Method
addMinimum
minimum-additions-to-make-valid-string.cc:3
Method
addNum
Adds a number into the data structure.
find-median-from-data-stream.cc:8
Method
addNum
data-stream-as-disjoint-intervals.cc:18
Method
addOperators
expression-add-operators.cc:25
Method
addStrings
add-strings.cc:4
Method
addToArrayForm
add-to-array-form-of-integer.cc:8
Method
addTwoNumbers
add-two-numbers.cc:4
Method
addWord
Adds a word into the data structure.
add-and-search-word-data-structure-design.cc:17
Method
advantageCount
advantage-shuffle.cc:6
Method
alienOrder
alien-dictionary.cc:4
Method
allCellsDistOrder
matrix-cells-in-distance-order.cc:4
Method
amountOfTime
amount-of-time-for-binary-tree-to-be-infected.cc:20
Method
anagrams
anagrams.cc:4
Method
appealSum
total-appeal-of-a-string.cc:6
Method
apply
rectangle-area-ii.cc:13
Method
applyOperations
apply-operations-to-an-array.cc:6
Method
areNumbersAscending
check-if-numbers-are-ascending-in-a-sentence.cc:6
Method
are_connected
(n: i32, threshold: i32, queries: Vec<Vec<i32>>)
graph-connectivity-with-threshold.rs:3
Method
arithmeticTriplets
number-of-arithmetic-triplets.cc:6
Method
arrangeCoins
arranging-coins.cc:4
Method
arrayNesting
array-nesting.cc:7
Method
assign_tasks
(servers: Vec<i32>, tasks: Vec<i32>)
process-tasks-using-servers.rs:3
Method
atMostNGivenDigitSet
numbers-at-most-n-given-digit-set.cc:6
Method
atoi
string-to-integer-atoi.cc:4
Method
augment
(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
Method
backward
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
Method
backward
expression-add-operators.cc:44
Method
baseNeg2
convert-to-base-2.cc:4
Method
beautifulArray
beautiful-array.cc:15
Method
best_rotation
(nums: Vec<i32>)
smallest-rotation-with-highest-score.rs:6
Method
bfs
minimum-height-trees.cc:44
Method
binaryGap
binary-gap.cc:4
Method
binaryTreePaths
binary-tree-paths.cc:13
Method
bitwiseComplement
complement-of-base-10-integer.cc:4
Method
brokenCalc
broken-calculator.cc:4
Method
bstFromPreorder
construct-binary-search-tree-from-preorder-traversal.cc:4
Method
buddyStrings
buddy-strings.cc:7
Method
buildTree
construct-binary-tree-from-inorder-and-postorder-traversal.cc:7
Method
buildTree
construct-binary-tree-from-preorder-and-inorder-traversal.cc:6
Method
bulbSwitch
bulb-switcher.cc:4
Method
c
check-completeness-of-a-binary-tree.cc:4
Method
calcEquation
evaluate-division.cc:12
Method
calculate
basic-calculator.cc:6
Method
calculate
basic-calculator-ii.cc:6
Method
calculateMKAverage
finding-mk-average.cc:44
Method
calculateMinimumHP
dungeon-game.cc:6
Method
canAttendMeetings
meeting-rooms.cc:4
Method
canChoose
form-array-by-concatenating-subarrays-of-another-array.cc:4
Method
canCompleteCircuit
gas-station.cc:7
Method
canConstruct
ransom-note.cc:4
Method
canCross
frog-jump.cc:4
Method
canFinish
course-schedule.cc:7
Method
canIWin
can-i-win.cc:18
Method
canJump
jump-game.cc:6
Method
canMeasureWater
water-and-jug-problem.cc:4
Method
canMerge
merge-bsts-to-create-single-bst.cc:3
Method
canPartition
partition-equal-subset-sum.cc:4
Method
canPermutePalindrome
palindrome-permutation.cc:4
Method
canReorderDoubled
array-of-doubled-pairs.cc:4
Method
canThreePartsEqualSum
partition-array-into-three-parts-with-equal-sum.cc:4
Method
canVisitAllRooms
keys-and-rooms.cc:4
Method
canWin
flip-game-ii.cc:4
Method
canWinNim
nim-game.cc:4
Method
can_be_increasing
(nums: Vec<i32>)
remove-one-element-to-make-the-array-strictly-increasing.rs:3
Method
can_distribute
(mut nums: Vec<i32>, quantity: Vec<i32>)
distribute-repeating-integers.rs:3
Method
can_reach
(s: String, min_jump: i32, max_jump: i32)
jump-game-vii.rs:3
Method
can_see_persons_count
(heights: Vec<i32>)
number-of-visible-people-in-a-queue.rs:3
Method
candy
(ratings: Vec<i32>)
candy.rs:2
Method
candy
candy.cc:4
Method
carFleet
car-fleet.cc:9
Method
car_pooling
(trips: Vec<Vec<i32>>, capacity: i32)
car-pooling.rs:3
Method
characterReplacement
longest-repeating-character-replacement.cc:4
Method
check
Check if a number is available or not. */
design-phone-directory.cc:24
Method
checkIfPangram
check-if-the-sentence-is-pangram.cc:4
Method
checkPerfectNumber
perfect-number.cc:4
Method
checkRecord
student-attendance-record-ii.cc:8
Method
check_if_prerequisite
(n: i32, prerequisites: Vec<Vec<i32>>, queries: Vec<Vec<i32>>)
course-schedule-iv.rs:3
Method
check_valid_string
(s: String)
valid-parenthesis-string.rs:3
Method
circularGameLosers
find-the-losers-of-the-circular-game.cc:4
Method
climbStairs
climbing-stairs.cc:4
Method
cloneGraph
clone-graph.cc:4
Method
closedIsland
number-of-closed-islands.cc:7
Method
closestKValues
closest-binary-search-tree-value-ii.cc:4
Method
closestPrimes
closest-prime-numbers-in-range.cc:6
Method
closestValue
closest-binary-search-tree-value.cc:4
Method
closest_room
(mut rooms: Vec<Vec<i32>>, queries: Vec<Vec<i32>>)
closest-room.rs:3
Method
closetTarget
shortest-distance-to-target-string-in-a-circular-array.cc:4
Method
clumsy
clumsy-factorial.cc:4
Method
cmp
erect-the-fence.cc:6
Method
coinChange
coin-change.cc:4
← previous
next →
201–300 of 1,379, ranked by callers