MCPcopy Create free account

hub / github.com/MaskRay/LeetCode / functions

Functions1,379 in github.com/MaskRay/LeetCode

MethodfirstUniqChar
first-unique-character-in-a-string.cc:4
Methodfirst_day_been_in_all_rooms
(next_visit: Vec<i32>)
first-day-where-you-have-been-in-all-the-rooms.rs:3
MethodfizzBuzz
fizz-buzz.cc:4
Methodflatten
flatten-binary-tree-to-linked-list.cc:4
MethodflipAndInvertImage
flipping-an-image.cc:8
Methodfollow
Follower follows a followee. If the operation is invalid, it should be a no-op. */
design-twitter.cc:47
Methodfoo
determine-the-winner-of-a-bowling-game.cc:3
Methodforward
enumerate valid left part: s[0 , split) invariant: for close parentheses in s[0 , milestones[i]], at least `i+1` of them must be removed
remove-invalid-parentheses.cc:46
Methodforward
expression-add-operators.cc:10
MethodfourSum
4sum.cc:4
MethodfourSumCount
4sum-ii.cc:4
MethodfractionAddition
fraction-addition-and-subtraction.cc:10
MethodfractionToDecimal
fraction-to-recurring-decimal.cc:4
MethodfullJustify
text-justification.cc:6
Methodg
sum-of-distances-in-tree.cc:16
Methodg
palindrome-partitioning.cc:11
FunctiongameOfLife
game-of-life.cc:6
MethodgardenNoAdj
flower-planting-with-no-adjacent.cc:4
Methodgcd
fraction-addition-and-subtraction.cc:3
Methodgcd_sort
(nums: Vec<i32>)
gcd-sort-of-an-array.rs:3
Methodgenerate
pascals-triangle.cc:7
MethodgenerateAbbreviations
generalized-abbreviation.cc:15
MethodgenerateMatrix
spiral-matrix-ii.cc:8
MethodgeneratePalindromes
palindrome-permutation-ii.cc:4
MethodgenerateParenthesis
generate-parentheses.cc:9
MethodgeneratePossibleNextMoves
flip-game.cc:4
MethodgenerateTrees
unique-binary-search-trees-ii.cc:8
Methodget
design-excel-sum-formula.cc:41
Methodget
(self)
sequentially-ordinal-rank-tracker.py:12
Methodget
sum-of-k-mirror-numbers.cc:33
Methodget
Provide a number which is not assigned to anyone. @return - Return an available number. Return -1 if none is available. */
design-phone-directory.cc:15
MethodgetCoprimes
tree-of-coprimes.cc:21
MethodgetDescentPeriods
adding-spaces-to-a-string.cc:4
MethodgetFactors
factor-combinations.cc:17
MethodgetHint
bulls-and-cows.cc:4
MethodgetHits
Return the number of hits in the past 5 minutes. @param timestamp - The current timestamp (in seconds granularity). */
design-hit-counter.cc:18
MethodgetIntersectionNode
intersection-of-two-linked-lists.cc:4
MethodgetIntervals
data-stream-as-disjoint-intervals.cc:22
MethodgetMaxKey
Returns one of the keys with maximal value. */
all-oone-data-structure.cc:46
MethodgetMaxRepetitions
count-the-repetitions.cc:4
MethodgetMin
min-stack.cc:18
MethodgetMinKey
Returns one of the keys with Minimal value. */
all-oone-data-structure.cc:51
MethodgetModifiedArray
range-addition.cc:4
MethodgetMoneyAmount
guess-number-higher-or-lower-ii.cc:5
MethodgetNewsFeed
Retrieve the 10 most recent tweet ids in the user's news feed. Each item in the news feed must be posted by users who the user followed or by the user
design-twitter.cc:18
MethodgetOrder
single-threaded-cpu.cc:15
MethodgetPermutation
permutation-sequence.cc:6
MethodgetRandom
Get a random element from the set. */
insert-delete-getrandom-o1.cc:28
MethodgetRandom
Returns a random node's value. */
linked-list-random-node.cc:16
MethodgetRandom
Get a random element from the collection. */
insert-delete-getrandom-o1-duplicates-allowed.cc:30
MethodgetRow
pascals-triangle-ii.cc:8
MethodgetSkyline
the-skyline-problem.cc:4
MethodgetSum
count-number-of-rectangles-containing-each-point.cc:11
MethodgetSum
sum-of-two-integers.cc:4
MethodgetSum
number-of-flowers-in-full-bloom.cc:11
MethodgetSum
count-of-range-sum.cc:9
MethodgetXORSum
find-xor-sum-of-all-pairs-bitwise-and.cc:4
Methodget_biggest_three
(a: Vec<Vec<i32>>)
get-biggest-three-rhombus-sums-in-a-grid.rs:3
Methodget_cell
design-excel-sum-formula.cc:22
Methodget_min_distance
(nums: Vec<i32>, target: i32, start: i32)
minimum-distance-to-the-target-element.rs:2
Methodget_min_swaps
(num: String, k: i32)
minimum-adjacent-swaps-to-reach-the-kth-smallest-number.rs:12
Methodget_number_of_backlog_orders
(orders: Vec<Vec<i32>>)
number-of-orders-in-the-backlog.rs:3
Methodget_order
(tasks: Vec<Vec<i32>>)
single-threaded-cpu.rs:2
Methodget_permutation
(n: i32, mut k: i32)
permutation-sequence.rs:2
Methodget_sum
design-excel-sum-formula.cc:13
Methodget_sum
rectangle-area-ii.cc:31
Methodget_xor_sum
(arr1: Vec<i32>, arr2: Vec<i32>)
find-xor-sum-of-all-pairs-bitwise-and.rs:2
MethodgoodIndices
find-all-good-indices.cc:7
MethodgoodTriplets
count-good-triplets-in-an-array.cc:17
MethodgrayCode
gray-code.cc:7
MethodgridGame
grid-game.cc:7
MethodgroupStrings
groups-of-strings.cc:7
MethodgroupStrings
group-shifted-strings.cc:13
MethodguardCastle
contest/2021-spring/守卫城堡.cc:39
MethodguessNumber
guess-number-higher-or-lower.cc:6
Methodh
balanced-binary-tree.cc:9
MethodhIndex
h-index.cc:7
MethodhIndex
h-index-ii.cc:4
MethodhammingDistance
hamming-distance.cc:4
MethodhammingWeight
number-of-1-bits.cc:4
Methodhamming_one
word-ladder.cc:36
MethodhardestWorker
the-employee-that-worked-on-the-longest-task.cc:6
MethodhasCycle
linked-list-cycle.cc:4
MethodhasNext
zigzag-iterator.cc:20
MethodhasNext
peeking-iterator.cc:49
MethodhasNext
design-compressed-string-iterator.cc:23
MethodhasNext
@return whether we have a next smallest number */
binary-search-tree-iterator.cc:12
MethodhasNext
flatten-nested-list-iterator.cc:31
MethodhasNext
flatten-2d-vector.cc:19
MethodhasPathSum
path-sum.cc:4
Methodhierholzer
valid-arrangement-of-pairs.cc:8
Methodhierholzer
reconstruct-itinerary.cc:7
MethodhighestPeak
map-of-highest-peak.cc:7
Methodhit
Record a hit. @param timestamp - The current timestamp (in seconds granularity). */
design-hit-counter.cc:12
MethodhitBricks
bricks-falling-when-hit.cc:18
Methodhld
minimize-the-total-price-of-the-trips.cc:20
Methodinc
Inserts a new key <Key> with value 1. Or increments an existing key by 1. */
all-oone-data-structure.cc:13
MethodincreasingBST
increasing-order-search-tree.cc:14
MethodincreasingTriplet
increasing-triplet-subsequence.cc:4
MethodinorderSuccessor
inorder-successor-in-bst.cc:4
← previousnext →601–700 of 1,379, ranked by callers