MCPcopy Create free account

hub / github.com/MaskRay/LeetCode / functions

Functions1,379 in github.com/MaskRay/LeetCode

MethodpacificAtlantic
pacific-atlantic-water-flow.cc:7
MethodpaintWalls
painting-the-walls.cc:7
MethodpalindromePairs
palindrome-pairs.cc:20
MethodparseTernary
ternary-expression-parser.cc:12
Methodpartial_cmp
(&self, o: &Self)
minimum-cost-to-hire-k-workers.rs:11
Methodpartition
partition-list.cc:4
Methodpartition
palindrome-partitioning.cc:23
Methodpartition
(s: String)
palindrome-partitioning.rs:2
MethodpartitionString
optimal-partition-of-string.cc:4
Methodparts
design-in-memory-file-system.cc:9
MethodpathSum
path-sum-ii.cc:7
MethodpathSum
path-sum-iii.cc:15
MethodpeakIndexInMountainArray
peak-index-in-a-mountain-array.cc:4
Methodpeek
Get the front element.
implement-queue-using-stacks.cc:25
Methodpeople_indexes
(favorite_companies: Vec<Vec<String>>)
people-whose-list-of-favorite-companies-is-not-a-subset-of-another-list.rs:3
MethodpercentageLetter
(self, s: str, letter: str)
percentage-of-letter-in-string.py:3
Methodperm
android-unlock-patterns.cc:4
Methodpermute
permutations.cc:19
MethodpermuteUnique
permutations-ii.cc:18
Methodpick
random-pick-index.cc:10
MethodplaceWordInCrossword
check-if-word-can-be-placed-in-crossword.cc:7
MethodplusOne
plus-one-linked-list.cc:14
MethodplusOne
plus-one.cc:4
Methodpointer
serialize-and-deserialize-binary-tree.cc:40
MethodpointerReversal
plus-one-linked-list.cc:3
MethodpossiblyEquals
check-if-an-original-string-exists-given-two-encoded-strings.cc:44
MethodpostTweet
Compose a new tweet. */
design-twitter.cc:13
Methodpostorder
largest-bst-subtree.cc:3
MethodpostorderTraversal
binary-tree-postorder-traversal.cc:6
MethodprefixesDivBy5
binary-prefix-divisible-by-5.cc:4
MethodpreorderTraversal
binary-tree-preorder-traversal.cc:4
Methodprime_palindrome
(n: i32)
prime-palindrome.rs:3
MethodprisonAfterNDays
prison-cells-after-n-days.cc:7
MethodprocessTasks
contest/2021-spring/5.cc:14
MethodproductExceptSelf
product-of-array-except-self.cc:8
MethodprojectionArea
projection-area-of-3d-shapes.cc:8
MethodpruneTree
binary-tree-pruning.cc:4
MethodpurchasePlans
contest/2021-spring/1.cc:8
Methodpush
Push element x onto stack.
implement-stack-using-queues.cc:6
Methodput
design-log-storage-system.cc:5
Methodput
codegolf/design-log-storage-system.cc:3
MethodputMarbles
put-marbles-in-bags.cc:7
Methodq
online-election.cc:21
Methodquery
stream-of-characters.cc:50
Methodquery
range-frequency-queries.cc:14
MethodqueryString
binary-string-with-substrings-representing-1-to-n.cc:4
Functionradix_sort
repeated-dna-sequences.cc:31
MethodrangeAddQueries
increment-submatrices-by-one.cc:4
MethodrangeBitwiseAnd
bitwise-and-of-numbers-range.cc:6
MethodrangeSumBST
range-sum-of-bst.cc:4
MethodreachableNodes
reachable-nodes-with-restrictions.cc:4
MethodreachableNodes
reachable-nodes-in-subdivided-graph.cc:4
Methodread
* @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
Methodread
read-n-characters-given-read4-ii-call-multiple-times.cc:14
MethodreadBinaryWatch
binary-watch.cc:4
MethodreadContentFromFile
design-in-memory-file-system.cc:54
MethodrearrangeSticks
number-of-ways-to-rearrange-sticks-with-k-sticks-visible.cc:87
MethodrearrangeString
rearrange-string-k-distance-apart.cc:7
Methodrearrange_barcodes
(barcodes: Vec<i32>)
distant-barcodes.rs:3
Methodrearrange_sticks
(n: i32, k: i32)
number-of-ways-to-rearrange-sticks-with-k-sticks-visible.rs:3
MethodreconstructMatrix
reconstruct-a-2-row-binary-matrix.cc:7
MethodreconstructQueue
queue-reconstruction-by-height.cc:4
MethodrecoverArray
recover-the-original-array.cc:7
MethodrecoverFromPreorder
recover-a-tree-from-preorder-traversal.cc:4
MethodrecoverTree
recover-binary-search-tree.cc:6
Methodrecover_array
(_n: i32, mut sums: Vec<i32>)
find-array-given-subset-sums.rs:3
MethodrectangleArea
rectangle-area-ii.cc:40
MethodreformatNumber
reformat-phone-number.cc:4
MethodregionsBySlashes
regions-cut-by-slashes.cc:8
Methodrelease
Recycle or release a number. */
design-phone-directory.cc:29
Methodremove
Removes a value from the collection. Returns true if the collection contained the specified element. */
insert-delete-getrandom-o1-duplicates-allowed.cc:20
MethodremoveDuplicateLetters
remove-duplicate-letters.cc:6
MethodremoveDuplicates
remove-duplicates-from-sorted-array.cc:4
MethodremoveDuplicates
remove-duplicates-from-sorted-array-ii.cc:4
MethodremoveElement
remove-element.cc:4
MethodremoveElements
remove-linked-list-elements.cc:4
MethodremoveInvalidParentheses
remove-invalid-parentheses.cc:23
MethodremoveKdigits
remove-k-digits.cc:4
MethodremoveNthFromEnd
remove-nth-node-from-end-of-list.cc:4
Methodremove_invalid_parentheses
(s: String)
remove-invalid-parentheses.rs:2
MethodreorderList
reorder-list.cc:4
MethodreorderLogFiles
reorder-log-files.cc:4
MethodreorderedPowerOf2
reordered-power-of-2.cc:4
Methodreorganize_string
(s: String)
reorganize-string.rs:3
MethodrepeatedSubstringPattern
repeated-substring-pattern.cc:4
Methodreset
Resets the array to its original configuration and return it. */
shuffle-an-array.cc:8
MethodrestoreIpAddresses
restore-ip-addresses.cc:10
Methodretrieve
design-log-storage-system.cc:9
Methodretrieve
codegolf/design-log-storage-system.cc:4
MethodreverseBetween
reverse-linked-list-ii.cc:4
MethodreverseBits
reverse-bits.cc:4
MethodreverseKGroup
reverse-nodes-in-k-group.cc:4
MethodreverseList
reverse-linked-list.cc:4
MethodreverseOddLevels
reverse-odd-levels-of-binary-tree.cc:3
MethodreverseString
reverse-string.cc:4
MethodreverseVowels
reverse-vowels-of-a-string.cc:4
MethodreverseWords
reverse-words-in-a-string.cc:4
MethodreverseWords
reverse-words-in-a-string-ii.cc:4
Methodreverse_right_chain
binary-tree-postorder-traversal.cc:28
Methodreverse_right_chain
count-univalue-subtrees.cc:52
← previousnext →1,101–1,200 of 1,379, ranked by callers