MCPcopy Create free account

hub / github.com/MaskRay/LeetCode / functions

Functions1,379 in github.com/MaskRay/LeetCode

MethodrightSideView
binary-tree-right-side-view.cc:6
Methodrob
house-robber-iii.cc:10
Methodrob
house-robber-ii.cc:4
Methodrob
house-robber.cc:4
MethodrobotSim
walking-robot-simulation.cc:4
MethodromanToInt
roman-to-integer.cc:18
Methodrotate
rotate-array.cc:4
Methodrotate
(a: &mut Vec<Vec<i32>>)
rotate-image.rs:2
Methodrotate
rotate-image.cc:6
MethodrotateRight
rotate-list.cc:4
Methodrotate_grid
(mut a: Vec<Vec<i32>>, k: i32)
cyclically-rotating-a-grid.rs:3
Methodrotate_the_box
(b: Vec<Vec<char>>)
rotating-the-box.rs:3
Methodrow
smallest-rectangle-enclosing-black-pixels.cc:5
MethodrowAndMaximumOnes
row-with-maximum-ones.cc:6
Methodsame
guess-the-word.cc:6
MethodscheduleCourse
course-schedule-iii.cc:4
Methodschedule_course
(mut courses: Vec<Vec<i32>>)
course-schedule-iii.rs:3
MethodscoreOfParentheses
score-of-parentheses.cc:4
MethodscoreOfStudents
the-score-of-students-solving-math-expression.cc:9
Methodsearch
search-in-rotated-sorted-array.cc:4
Methodsearch
search-in-rotated-sorted-array-ii.cc:5
Methodsearch
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
Methodsearch
Returns if the word is in the trie.
implement-trie-prefix-tree.cc:30
MethodsearchInsert
search-insert-position.cc:4
MethodsearchMatrix
search-a-2d-matrix-ii.cc:4
MethodsearchMatrix
search-a-2d-matrix.cc:4
MethodsearchRange
search-for-a-range.cc:4
Methodseat
exam-room.cc:10
Methodselect
sliding-window-median.cc:26
MethodsequenceReconstruction
sequence-reconstruction.cc:7
Methodserialize
serialize-and-deserialize-binary-tree.cc:23
Methodset
design-excel-sum-formula.cc:37
Methodset
lru-cache.cc:20
MethodsetZeroes
set-matrix-zeroes.cc:7
MethodshiftGrid
shift-2d-grid.cc:7
MethodshipWithinDays
capacity-to-ship-packages-within-d-days.cc:4
MethodshoppingOffers
shopping-offer.cc:6
Methodshortest
shortest-word-distance-ii.cc:10
MethodshortestDistance
shortest-word-distance.cc:4
MethodshortestDistance
shortest-distance-from-all-buildings.cc:7
MethodshortestDistanceAfterQueries
shortest-distance-after-road-addition-queries-ii.cc:4
MethodshortestDistanceAfterQueries
shortest-distance-after-road-addition-queries-i.cc:6
MethodshortestPalindrome
shortest-palindrome.cc:4
MethodshortestWordDistance
shortest-word-distance-iii.cc:4
Methodshortest_palindrome
(s: String)
shortest-palindrome.rs:2
MethodshouldPrintMessage
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
Methodshuffle
Returns a random shuffling of the array. */
shuffle-an-array.cc:11
MethodsimilarPairs
count-pairs-of-similar-strings.cc:6
MethodsimplifyPath
simplify-path.cc:4
MethodsingleNumber
single-number.cc:4
MethodsingleNumber
single-number-iii.cc:4
MethodsingleNumber
single-number-ii.cc:7
MethodsmallestBeautifulString
lexicographically-smallest-beautiful-string.cc:7
MethodsmallestEqual
smallest-index-with-equal-value.cc:6
MethodsmallestEvenMultiple
smallest-even-multiple.cc:3
MethodsmallestGoodBase
smallest-good-base.cc:4
MethodsmallestMissingValueSubtree
smallest-missing-genetic-value-in-each-subtree.cc:16
MethodsmallestNumber
construct-smallest-number-from-di-string.cc:4
MethodsmallestRangeI
smallest-range-i.cc:6
MethodsmallestRangeII
smallest-range-ii.cc:8
MethodsmallestRepunitDivByK
smallest-integer-divisible-by-k.cc:4
MethodsmallestValue
smallest-value-after-replacing-with-sum-of-prime-factors.cc:16
Methodsmallest_chair
(mut times: Vec<Vec<i32>>, target_friend: i32)
the-number-of-the-smallest-unoccupied-chair.rs:3
MethodsnakesAndLadders
snakes-and-ladders.cc:9
Methodsolve
surrounded-regions.cc:7
MethodsolveNQueens
n-queens.cc:8
MethodsolveSudoku
sudoku-solver.cc:51
MethodsortColors
sort-colors.cc:6
MethodsortList
sort-list.cc:7
MethodsortPeople
sort-the-people.cc:7
MethodsortTransformedArray
sort-transformed-array.cc:4
MethodsortedArrayToBST
convert-sorted-array-to-binary-search-tree.cc:4
MethodsortedListToBST
convert-sorted-list-to-binary-search-tree.cc:14
MethodsortedSquares
squares-of-a-sorted-array.cc:4
MethodspecialPerm
special-permutations.cc:6
MethodspiralOrder
spiral-matrix.cc:8
MethodsplitArray
split-array-largest-sum.cc:4
MethodsplitIntoFibonacci
split-array-into-fibonacci-sequence.cc:7
MethodsplitLoopedString
split-assembled-strings.cc:8
Methodsplit_painting
(segments: Vec<Vec<i32>>)
describe-the-painting.rs:3
Methodsplit_string
(s: String)
splitting-a-string-into-descending-consecutive-values.rs:2
MethodsquareFreeSubsets
count-the-number-of-square-free-subsets.cc:7
MethodstartsWith
Returns if there is any word in the trie that starts with the given prefix.
implement-trie-prefix-tree.cc:42
Methodstone_game_viii
(mut a: Vec<i32>)
stone-game-viii.rs:3
MethodstrStr
implement-strstr.cc:6
MethodstrStr
find-the-index-of-the-first-occurrence-in-a-string.cc:4
Methodstr_without3a3b
(mut a: i32, mut b: i32)
string-without-aaa-or-bbb.rs:3
Methodstrange_printer
(s: String)
strange-printer.rs:3
MethodstrobogrammaticInRange
strobogrammatic-number-iii.cc:36
MethodstrongPasswordChecker
strong-password-checker.cc:7
MethodsubarrayBitwiseORs
bitwise-ors-of-subarrays.cc:7
MethodsubarrayLCM
number-of-subarrays-with-lcm-equal-to-k.cc:7
MethodsubarraysWithKDistinct
subarrays-with-k-different-integers.cc:7
Methodsubsets
subsets.cc:7
MethodsubsetsWithDup
subsets-ii.cc:7
Methodsum
count-good-triplets-in-an-array.cc:10
Methodsum
design-excel-sum-formula.cc:46
Methodsum
range-sum-query-2d-mutable.cc:13
MethodsumBase
sum-of-digits-in-base-k.cc:4
MethodsumNumbers
sum-root-to-leaf-numbers.cc:4
← previousnext →1,201–1,300 of 1,379, ranked by callers