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
pacificAtlantic
pacific-atlantic-water-flow.cc:7
Method
paintWalls
painting-the-walls.cc:7
Method
palindromePairs
palindrome-pairs.cc:20
Method
parseTernary
ternary-expression-parser.cc:12
Method
partial_cmp
(&self, o: &Self)
minimum-cost-to-hire-k-workers.rs:11
Method
partition
partition-list.cc:4
Method
partition
palindrome-partitioning.cc:23
Method
partition
(s: String)
palindrome-partitioning.rs:2
Method
partitionString
optimal-partition-of-string.cc:4
Method
parts
design-in-memory-file-system.cc:9
Method
pathSum
path-sum-ii.cc:7
Method
pathSum
path-sum-iii.cc:15
Method
peakIndexInMountainArray
peak-index-in-a-mountain-array.cc:4
Method
peek
Get the front element.
implement-queue-using-stacks.cc:25
Method
people_indexes
(favorite_companies: Vec<Vec<String>>)
people-whose-list-of-favorite-companies-is-not-a-subset-of-another-list.rs:3
Method
percentageLetter
(self, s: str, letter: str)
percentage-of-letter-in-string.py:3
Method
perm
android-unlock-patterns.cc:4
Method
permute
permutations.cc:19
Method
permuteUnique
permutations-ii.cc:18
Method
pick
random-pick-index.cc:10
Method
placeWordInCrossword
check-if-word-can-be-placed-in-crossword.cc:7
Method
plusOne
plus-one-linked-list.cc:14
Method
plusOne
plus-one.cc:4
Method
pointer
serialize-and-deserialize-binary-tree.cc:40
Method
pointerReversal
plus-one-linked-list.cc:3
Method
possiblyEquals
check-if-an-original-string-exists-given-two-encoded-strings.cc:44
Method
postTweet
Compose a new tweet. */
design-twitter.cc:13
Method
postorder
largest-bst-subtree.cc:3
Method
postorderTraversal
binary-tree-postorder-traversal.cc:6
Method
prefixesDivBy5
binary-prefix-divisible-by-5.cc:4
Method
preorderTraversal
binary-tree-preorder-traversal.cc:4
Method
prime_palindrome
(n: i32)
prime-palindrome.rs:3
Method
prisonAfterNDays
prison-cells-after-n-days.cc:7
Method
processTasks
contest/2021-spring/5.cc:14
Method
productExceptSelf
product-of-array-except-self.cc:8
Method
projectionArea
projection-area-of-3d-shapes.cc:8
Method
pruneTree
binary-tree-pruning.cc:4
Method
purchasePlans
contest/2021-spring/1.cc:8
Method
push
Push element x onto stack.
implement-stack-using-queues.cc:6
Method
put
design-log-storage-system.cc:5
Method
put
codegolf/design-log-storage-system.cc:3
Method
putMarbles
put-marbles-in-bags.cc:7
Method
q
online-election.cc:21
Method
query
stream-of-characters.cc:50
Method
query
range-frequency-queries.cc:14
Method
queryString
binary-string-with-substrings-representing-1-to-n.cc:4
Function
radix_sort
repeated-dna-sequences.cc:31
Method
rangeAddQueries
increment-submatrices-by-one.cc:4
Method
rangeBitwiseAnd
bitwise-and-of-numbers-range.cc:6
Method
rangeSumBST
range-sum-of-bst.cc:4
Method
reachableNodes
reachable-nodes-with-restrictions.cc:4
Method
reachableNodes
reachable-nodes-in-subdivided-graph.cc:4
Method
read
* @param buf Destination buffer * @param n Maximum number of characters to read * @return The number of characters read */
read-n-characters-given-read4.cc:12
Method
read
read-n-characters-given-read4-ii-call-multiple-times.cc:14
Method
readBinaryWatch
binary-watch.cc:4
Method
readContentFromFile
design-in-memory-file-system.cc:54
Method
rearrangeSticks
number-of-ways-to-rearrange-sticks-with-k-sticks-visible.cc:87
Method
rearrangeString
rearrange-string-k-distance-apart.cc:7
Method
rearrange_barcodes
(barcodes: Vec<i32>)
distant-barcodes.rs:3
Method
rearrange_sticks
(n: i32, k: i32)
number-of-ways-to-rearrange-sticks-with-k-sticks-visible.rs:3
Method
reconstructMatrix
reconstruct-a-2-row-binary-matrix.cc:7
Method
reconstructQueue
queue-reconstruction-by-height.cc:4
Method
recoverArray
recover-the-original-array.cc:7
Method
recoverFromPreorder
recover-a-tree-from-preorder-traversal.cc:4
Method
recoverTree
recover-binary-search-tree.cc:6
Method
recover_array
(_n: i32, mut sums: Vec<i32>)
find-array-given-subset-sums.rs:3
Method
rectangleArea
rectangle-area-ii.cc:40
Method
reformatNumber
reformat-phone-number.cc:4
Method
regionsBySlashes
regions-cut-by-slashes.cc:8
Method
release
Recycle or release a number. */
design-phone-directory.cc:29
Method
remove
Removes a value from the collection. Returns true if the collection contained the specified element. */
insert-delete-getrandom-o1-duplicates-allowed.cc:20
Method
removeDuplicateLetters
remove-duplicate-letters.cc:6
Method
removeDuplicates
remove-duplicates-from-sorted-array.cc:4
Method
removeDuplicates
remove-duplicates-from-sorted-array-ii.cc:4
Method
removeElement
remove-element.cc:4
Method
removeElements
remove-linked-list-elements.cc:4
Method
removeInvalidParentheses
remove-invalid-parentheses.cc:23
Method
removeKdigits
remove-k-digits.cc:4
Method
removeNthFromEnd
remove-nth-node-from-end-of-list.cc:4
Method
remove_invalid_parentheses
(s: String)
remove-invalid-parentheses.rs:2
Method
reorderList
reorder-list.cc:4
Method
reorderLogFiles
reorder-log-files.cc:4
Method
reorderedPowerOf2
reordered-power-of-2.cc:4
Method
reorganize_string
(s: String)
reorganize-string.rs:3
Method
repeatedSubstringPattern
repeated-substring-pattern.cc:4
Method
reset
Resets the array to its original configuration and return it. */
shuffle-an-array.cc:8
Method
restoreIpAddresses
restore-ip-addresses.cc:10
Method
retrieve
design-log-storage-system.cc:9
Method
retrieve
codegolf/design-log-storage-system.cc:4
Method
reverseBetween
reverse-linked-list-ii.cc:4
Method
reverseBits
reverse-bits.cc:4
Method
reverseKGroup
reverse-nodes-in-k-group.cc:4
Method
reverseList
reverse-linked-list.cc:4
Method
reverseOddLevels
reverse-odd-levels-of-binary-tree.cc:3
Method
reverseString
reverse-string.cc:4
Method
reverseVowels
reverse-vowels-of-a-string.cc:4
Method
reverseWords
reverse-words-in-a-string.cc:4
Method
reverseWords
reverse-words-in-a-string-ii.cc:4
Method
reverse_right_chain
binary-tree-postorder-traversal.cc:28
Method
reverse_right_chain
count-univalue-subtrees.cc:52
← previous
next →
1,101–1,200 of 1,379, ranked by callers