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
rightSideView
binary-tree-right-side-view.cc:6
Method
rob
house-robber-iii.cc:10
Method
rob
house-robber-ii.cc:4
Method
rob
house-robber.cc:4
Method
robotSim
walking-robot-simulation.cc:4
Method
romanToInt
roman-to-integer.cc:18
Method
rotate
rotate-array.cc:4
Method
rotate
(a: &mut Vec<Vec<i32>>)
rotate-image.rs:2
Method
rotate
rotate-image.cc:6
Method
rotateRight
rotate-list.cc:4
Method
rotate_grid
(mut a: Vec<Vec<i32>>, k: i32)
cyclically-rotating-a-grid.rs:3
Method
rotate_the_box
(b: Vec<Vec<char>>)
rotating-the-box.rs:3
Method
row
smallest-rectangle-enclosing-black-pixels.cc:5
Method
rowAndMaximumOnes
row-with-maximum-ones.cc:6
Method
same
guess-the-word.cc:6
Method
scheduleCourse
course-schedule-iii.cc:4
Method
schedule_course
(mut courses: Vec<Vec<i32>>)
course-schedule-iii.rs:3
Method
scoreOfParentheses
score-of-parentheses.cc:4
Method
scoreOfStudents
the-score-of-students-solving-math-expression.cc:9
Method
search
search-in-rotated-sorted-array.cc:4
Method
search
search-in-rotated-sorted-array-ii.cc:5
Method
search
Returns if the word is in the data structure. A word could contain the dot character '.' to represent any one letter.
add-and-search-word-data-structure-design.cc:29
Method
search
Returns if the word is in the trie.
implement-trie-prefix-tree.cc:30
Method
searchInsert
search-insert-position.cc:4
Method
searchMatrix
search-a-2d-matrix-ii.cc:4
Method
searchMatrix
search-a-2d-matrix.cc:4
Method
searchRange
search-for-a-range.cc:4
Method
seat
exam-room.cc:10
Method
select
sliding-window-median.cc:26
Method
sequenceReconstruction
sequence-reconstruction.cc:7
Method
serialize
serialize-and-deserialize-binary-tree.cc:23
Method
set
design-excel-sum-formula.cc:37
Method
set
lru-cache.cc:20
Method
setZeroes
set-matrix-zeroes.cc:7
Method
shiftGrid
shift-2d-grid.cc:7
Method
shipWithinDays
capacity-to-ship-packages-within-d-days.cc:4
Method
shoppingOffers
shopping-offer.cc:6
Method
shortest
shortest-word-distance-ii.cc:10
Method
shortestDistance
shortest-word-distance.cc:4
Method
shortestDistance
shortest-distance-from-all-buildings.cc:7
Method
shortestDistanceAfterQueries
shortest-distance-after-road-addition-queries-ii.cc:4
Method
shortestDistanceAfterQueries
shortest-distance-after-road-addition-queries-i.cc:6
Method
shortestPalindrome
shortest-palindrome.cc:4
Method
shortestWordDistance
shortest-word-distance-iii.cc:4
Method
shortest_palindrome
(s: String)
shortest-palindrome.rs:2
Method
shouldPrintMessage
Returns true if the message should be printed in the given timestamp, otherwise returns false. If this method returns false, the message will not
logger-rate-limiter.cc:13
Method
shuffle
Returns a random shuffling of the array. */
shuffle-an-array.cc:11
Method
similarPairs
count-pairs-of-similar-strings.cc:6
Method
simplifyPath
simplify-path.cc:4
Method
singleNumber
single-number.cc:4
Method
singleNumber
single-number-iii.cc:4
Method
singleNumber
single-number-ii.cc:7
Method
smallestBeautifulString
lexicographically-smallest-beautiful-string.cc:7
Method
smallestEqual
smallest-index-with-equal-value.cc:6
Method
smallestEvenMultiple
smallest-even-multiple.cc:3
Method
smallestGoodBase
smallest-good-base.cc:4
Method
smallestMissingValueSubtree
smallest-missing-genetic-value-in-each-subtree.cc:16
Method
smallestNumber
construct-smallest-number-from-di-string.cc:4
Method
smallestRangeI
smallest-range-i.cc:6
Method
smallestRangeII
smallest-range-ii.cc:8
Method
smallestRepunitDivByK
smallest-integer-divisible-by-k.cc:4
Method
smallestValue
smallest-value-after-replacing-with-sum-of-prime-factors.cc:16
Method
smallest_chair
(mut times: Vec<Vec<i32>>, target_friend: i32)
the-number-of-the-smallest-unoccupied-chair.rs:3
Method
snakesAndLadders
snakes-and-ladders.cc:9
Method
solve
surrounded-regions.cc:7
Method
solveNQueens
n-queens.cc:8
Method
solveSudoku
sudoku-solver.cc:51
Method
sortColors
sort-colors.cc:6
Method
sortList
sort-list.cc:7
Method
sortPeople
sort-the-people.cc:7
Method
sortTransformedArray
sort-transformed-array.cc:4
Method
sortedArrayToBST
convert-sorted-array-to-binary-search-tree.cc:4
Method
sortedListToBST
convert-sorted-list-to-binary-search-tree.cc:14
Method
sortedSquares
squares-of-a-sorted-array.cc:4
Method
specialPerm
special-permutations.cc:6
Method
spiralOrder
spiral-matrix.cc:8
Method
splitArray
split-array-largest-sum.cc:4
Method
splitIntoFibonacci
split-array-into-fibonacci-sequence.cc:7
Method
splitLoopedString
split-assembled-strings.cc:8
Method
split_painting
(segments: Vec<Vec<i32>>)
describe-the-painting.rs:3
Method
split_string
(s: String)
splitting-a-string-into-descending-consecutive-values.rs:2
Method
squareFreeSubsets
count-the-number-of-square-free-subsets.cc:7
Method
startsWith
Returns if there is any word in the trie that starts with the given prefix.
implement-trie-prefix-tree.cc:42
Method
stone_game_viii
(mut a: Vec<i32>)
stone-game-viii.rs:3
Method
strStr
implement-strstr.cc:6
Method
strStr
find-the-index-of-the-first-occurrence-in-a-string.cc:4
Method
str_without3a3b
(mut a: i32, mut b: i32)
string-without-aaa-or-bbb.rs:3
Method
strange_printer
(s: String)
strange-printer.rs:3
Method
strobogrammaticInRange
strobogrammatic-number-iii.cc:36
Method
strongPasswordChecker
strong-password-checker.cc:7
Method
subarrayBitwiseORs
bitwise-ors-of-subarrays.cc:7
Method
subarrayLCM
number-of-subarrays-with-lcm-equal-to-k.cc:7
Method
subarraysWithKDistinct
subarrays-with-k-different-integers.cc:7
Method
subsets
subsets.cc:7
Method
subsetsWithDup
subsets-ii.cc:7
Method
sum
count-good-triplets-in-an-array.cc:10
Method
sum
design-excel-sum-formula.cc:46
Method
sum
range-sum-query-2d-mutable.cc:13
Method
sumBase
sum-of-digits-in-base-k.cc:4
Method
sumNumbers
sum-root-to-leaf-numbers.cc:4
← previous
next →
1,201–1,300 of 1,379, ranked by callers