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
firstUniqChar
first-unique-character-in-a-string.cc:4
Method
first_day_been_in_all_rooms
(next_visit: Vec<i32>)
first-day-where-you-have-been-in-all-the-rooms.rs:3
Method
fizzBuzz
fizz-buzz.cc:4
Method
flatten
flatten-binary-tree-to-linked-list.cc:4
Method
flipAndInvertImage
flipping-an-image.cc:8
Method
follow
Follower follows a followee. If the operation is invalid, it should be a no-op. */
design-twitter.cc:47
Method
foo
determine-the-winner-of-a-bowling-game.cc:3
Method
forward
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
Method
forward
expression-add-operators.cc:10
Method
fourSum
4sum.cc:4
Method
fourSumCount
4sum-ii.cc:4
Method
fractionAddition
fraction-addition-and-subtraction.cc:10
Method
fractionToDecimal
fraction-to-recurring-decimal.cc:4
Method
fullJustify
text-justification.cc:6
Method
g
sum-of-distances-in-tree.cc:16
Method
g
palindrome-partitioning.cc:11
Function
gameOfLife
game-of-life.cc:6
Method
gardenNoAdj
flower-planting-with-no-adjacent.cc:4
Method
gcd
fraction-addition-and-subtraction.cc:3
Method
gcd_sort
(nums: Vec<i32>)
gcd-sort-of-an-array.rs:3
Method
generate
pascals-triangle.cc:7
Method
generateAbbreviations
generalized-abbreviation.cc:15
Method
generateMatrix
spiral-matrix-ii.cc:8
Method
generatePalindromes
palindrome-permutation-ii.cc:4
Method
generateParenthesis
generate-parentheses.cc:9
Method
generatePossibleNextMoves
flip-game.cc:4
Method
generateTrees
unique-binary-search-trees-ii.cc:8
Method
get
design-excel-sum-formula.cc:41
Method
get
(self)
sequentially-ordinal-rank-tracker.py:12
Method
get
sum-of-k-mirror-numbers.cc:33
Method
get
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
Method
getCoprimes
tree-of-coprimes.cc:21
Method
getDescentPeriods
adding-spaces-to-a-string.cc:4
Method
getFactors
factor-combinations.cc:17
Method
getHint
bulls-and-cows.cc:4
Method
getHits
Return the number of hits in the past 5 minutes. @param timestamp - The current timestamp (in seconds granularity). */
design-hit-counter.cc:18
Method
getIntersectionNode
intersection-of-two-linked-lists.cc:4
Method
getIntervals
data-stream-as-disjoint-intervals.cc:22
Method
getMaxKey
Returns one of the keys with maximal value. */
all-oone-data-structure.cc:46
Method
getMaxRepetitions
count-the-repetitions.cc:4
Method
getMin
min-stack.cc:18
Method
getMinKey
Returns one of the keys with Minimal value. */
all-oone-data-structure.cc:51
Method
getModifiedArray
range-addition.cc:4
Method
getMoneyAmount
guess-number-higher-or-lower-ii.cc:5
Method
getNewsFeed
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
Method
getOrder
single-threaded-cpu.cc:15
Method
getPermutation
permutation-sequence.cc:6
Method
getRandom
Get a random element from the set. */
insert-delete-getrandom-o1.cc:28
Method
getRandom
Returns a random node's value. */
linked-list-random-node.cc:16
Method
getRandom
Get a random element from the collection. */
insert-delete-getrandom-o1-duplicates-allowed.cc:30
Method
getRow
pascals-triangle-ii.cc:8
Method
getSkyline
the-skyline-problem.cc:4
Method
getSum
count-number-of-rectangles-containing-each-point.cc:11
Method
getSum
sum-of-two-integers.cc:4
Method
getSum
number-of-flowers-in-full-bloom.cc:11
Method
getSum
count-of-range-sum.cc:9
Method
getXORSum
find-xor-sum-of-all-pairs-bitwise-and.cc:4
Method
get_biggest_three
(a: Vec<Vec<i32>>)
get-biggest-three-rhombus-sums-in-a-grid.rs:3
Method
get_cell
design-excel-sum-formula.cc:22
Method
get_min_distance
(nums: Vec<i32>, target: i32, start: i32)
minimum-distance-to-the-target-element.rs:2
Method
get_min_swaps
(num: String, k: i32)
minimum-adjacent-swaps-to-reach-the-kth-smallest-number.rs:12
Method
get_number_of_backlog_orders
(orders: Vec<Vec<i32>>)
number-of-orders-in-the-backlog.rs:3
Method
get_order
(tasks: Vec<Vec<i32>>)
single-threaded-cpu.rs:2
Method
get_permutation
(n: i32, mut k: i32)
permutation-sequence.rs:2
Method
get_sum
design-excel-sum-formula.cc:13
Method
get_sum
rectangle-area-ii.cc:31
Method
get_xor_sum
(arr1: Vec<i32>, arr2: Vec<i32>)
find-xor-sum-of-all-pairs-bitwise-and.rs:2
Method
goodIndices
find-all-good-indices.cc:7
Method
goodTriplets
count-good-triplets-in-an-array.cc:17
Method
grayCode
gray-code.cc:7
Method
gridGame
grid-game.cc:7
Method
groupStrings
groups-of-strings.cc:7
Method
groupStrings
group-shifted-strings.cc:13
Method
guardCastle
contest/2021-spring/守卫城堡.cc:39
Method
guessNumber
guess-number-higher-or-lower.cc:6
Method
h
balanced-binary-tree.cc:9
Method
hIndex
h-index.cc:7
Method
hIndex
h-index-ii.cc:4
Method
hammingDistance
hamming-distance.cc:4
Method
hammingWeight
number-of-1-bits.cc:4
Method
hamming_one
word-ladder.cc:36
Method
hardestWorker
the-employee-that-worked-on-the-longest-task.cc:6
Method
hasCycle
linked-list-cycle.cc:4
Method
hasNext
zigzag-iterator.cc:20
Method
hasNext
peeking-iterator.cc:49
Method
hasNext
design-compressed-string-iterator.cc:23
Method
hasNext
@return whether we have a next smallest number */
binary-search-tree-iterator.cc:12
Method
hasNext
flatten-nested-list-iterator.cc:31
Method
hasNext
flatten-2d-vector.cc:19
Method
hasPathSum
path-sum.cc:4
Method
hierholzer
valid-arrangement-of-pairs.cc:8
Method
hierholzer
reconstruct-itinerary.cc:7
Method
highestPeak
map-of-highest-peak.cc:7
Method
hit
Record a hit. @param timestamp - The current timestamp (in seconds granularity). */
design-hit-counter.cc:12
Method
hitBricks
bricks-falling-when-hit.cc:18
Method
hld
minimize-the-total-price-of-the-trips.cc:20
Method
inc
Inserts a new key <Key> with value 1. Or increments an existing key by 1. */
all-oone-data-structure.cc:13
Method
increasingBST
increasing-order-search-tree.cc:14
Method
increasingTriplet
increasing-triplet-subsequence.cc:4
Method
inorderSuccessor
inorder-successor-in-bst.cc:4
← previous
next →
601–700 of 1,379, ranked by callers