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
colorBorder
coloring-a-border.cc:4
Method
color_the_grid
(m: i32, n: i32)
painting-a-grid-with-three-different-colors.rs:3
Method
column
smallest-rectangle-enclosing-black-pixels.cc:15
Method
combinationSum
combination-sum.cc:20
Method
combinationSum2
combination-sum-ii.cc:18
Method
combinationSum3
combination-sum-iii.cc:4
Method
combinationSum4
combination-sum-iv.cc:4
Method
combine
combinations.cc:9
Method
commonChars
find-common-characters.cc:7
Method
commonFactors
number-of-common-factors.cc:4
Method
compareVersion
compare-version-numbers.cc:4
Method
computeArea
rectangle-area.cc:5
Method
connect
populating-next-right-pointers-in-each-node.cc:4
Method
connect
populating-next-right-pointers-in-each-node-ii.cc:4
Method
constructFromPrePost
construct-binary-tree-from-preorder-and-postorder-traversal.cc:15
Method
containsDuplicate
contains-duplicate.cc:4
Method
containsNearbyAlmostDuplicate
contains-duplicate-iii.cc:4
Method
containsNearbyDuplicate
contains-duplicate-ii.cc:4
Method
convert
zigzag-conversion.cc:6
Method
convertTemperature
convert-the-temperature.cc:4
Method
convertTime
minimum-number-of-operations-to-convert-time.cc:4
Method
convertToBase7
base-7.cc:4
Method
convertToTitle
excel-sheet-column-title.cc:4
Method
copyRandomList
copy-list-with-random-pointer.cc:4
Method
corp_flight_bookings
(bookings: Vec<Vec<i32>>, n: i32)
corporate-flight-bookings.rs:3
Method
countAndSay
count-and-say.cc:23
Method
countBattleships
battleships-in-a-board.cc:7
Method
countBits
counting-bits.cc:4
Method
countCollisions
count-collisions-on-a-road.cc:4
Method
countCompleteComponents
count-the-number-of-complete-components.cc:6
Method
countComponents
number-of-connected-components-in-an-undirected-graph.cc:4
Method
countDifferentSubsequenceGCDs
number-of-different-subsequences-gcds.cc:4
Method
countDigitOne
number-of-digit-one.cc:4
Method
countDigits
count-the-digits-that-divide-a-number.cc:4
Method
countDistinct
k-divisible-elements-subarrays.cc:9
Method
countGood
count-the-number-of-good-subarrays.cc:4
Method
countGoodNodes
count-the-number-of-good-nodes.cc:19
Method
countHillValley
count-hills-and-valleys-in-an-array.cc:4
Method
countKConstraintSubstrings
count-substrings-that-satisfy-k-constraint-ii.cc:4
Method
countKConstraintSubstrings
count-substrings-that-satisfy-k-constraint-i.cc:4
Method
countLatticePoints
count-lattice-points-inside-a-circle.cc:8
Method
countNodes
count-complete-tree-nodes.cc:4
Method
countNumbersWithUniqueDigits
count-numbers-with-unique-digits.cc:7
Method
countOfPairs
find-the-count-of-monotonic-pairs-ii.cc:9
Method
countOfPairs
find-the-count-of-monotonic-pairs.cc:9
Method
countPairs
count-array-pairs-divisible-by-k.cc:4
Method
countPartitions
number-of-great-partitions.cc:7
Method
countPrimes
count-primes.cc:11
Method
countQuadruplets
count-special-quadruplets.cc:7
Method
countQuadruplets
count-increasing-quadruplets.cc:7
Method
countRangeSum
count-of-range-sum.cc:16
Method
countRectangles
count-number-of-rectangles-containing-each-point.cc:18
Method
countRectangles
number-of-flowers-in-full-bloom.cc:18
Method
countSegments
number-of-segments-in-a-string.cc:4
Method
countSmaller
count-of-smaller-numbers-after-self.cc:24
Method
countSpecialNumbers
count-special-integers.cc:7
Method
countUnivalSubtrees
count-univalue-subtrees.cc:16
Method
countValidWords
number-of-valid-words-in-a-sentence.cc:6
Method
countVowelSubstrings
count-vowel-substrings-of-a-string.cc:7
Method
countVowels
vowels-of-all-substrings.cc:4
Method
count_distinct
(a: String)
number-of-distinct-substrings-in-a-string.rs:2
Method
count_paths
(n: i32, roads: Vec<Vec<i32>>)
number-of-ways-to-arrive-at-destination.rs:3
Method
count_special_subsequences
(nums: Vec<i32>)
count-number-of-special-subsequences.rs:3
Method
cover
sudoku-solver.cc:9
Method
cross
erect-the-fence.cc:3
Method
cutOffTree
number-of-longest-increasing-subsequence.cc:7
Method
cycle
(u: usize, vis: &mut Vec<usize>, adj: &Vec<HashSet<usize>>)
strange-printer-ii.rs:5
Method
cycleLengthQueries
cycle-length-queries-in-a-tree.cc:4
Method
d
valid-square.cc:3
Method
dec
Decrements an existing key by 1. If Key's value is 1, remove it from the data structure. */
all-oone-data-structure.cc:29
Method
decode
Decodes a single string to a list of strings.
encode-and-decode-strings.cc:14
Method
decode
serialize-and-deserialize-binary-tree.cc:12
Method
decodeAtIndex
decoded-string-at-index.cc:8
Method
decodeString
decode-string.cc:20
Method
deleteDuplicateFolder
delete-duplicate-folders-in-system.cc:15
Method
deleteDuplicates
remove-duplicates-from-sorted-list-ii.cc:4
Method
deleteDuplicates
remove-duplicates-from-sorted-list.cc:4
Method
deleteNode
delete-node-in-a-linked-list.cc:4
Method
deleteString
maximum-deletions-on-a-string.cc:7
Method
deposit
simple-bank-system.cc:15
Method
depthSum
nested-list-weight-sum.cc:15
Method
depthSumInverse
nested-list-weight-sum-ii.cc:18
Method
deserialize
serialize-and-deserialize-binary-tree.cc:28
Method
deserialize
mini-parser.cc:4
Method
detectCycle
linked-list-cycle-ii.cc:6
Method
dfs
difference-between-maximum-and-minimum-price-sum.cc:6
Method
dfs
(s: Vec<u8>, ans: &mut Vec<String>, par: u8, ii: usize, jj: usize)
remove-invalid-parentheses.rs:3
Method
dfs
minimum-number-of-operations-to-sort-a-binary-tree-by-level.cc:4
Method
dfs
smallest-missing-genetic-value-in-each-subtree.cc:9
Method
dfs
merge-bsts-to-create-single-bst.cc:50
Method
dfs
bricks-falling-when-hit.cc:9
Method
dfs
longest-subsequence-repeated-k-times.cc:10
Method
dfs
(s: &[u8], x: usize)
splitting-a-string-into-descending-consecutive-values.rs:29
Method
dfs
tree-of-coprimes.cc:7
Method
dfs
find-duplicate-subtrees.cc:18
Method
dfs
minimize-the-total-price-of-the-trips.cc:7
Method
dfs
longest-increasing-path-in-a-matrix.cc:7
Method
dfs
evaluate-division.cc:5
Method
dfs
longest-path-with-different-adjacent-characters.cc:8
Method
dfs
count-the-number-of-good-nodes.cc:5
← previous
next →
301–400 of 1,379, ranked by callers