Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HuberTRoy/leetCode
/ functions
Functions
332 in github.com/HuberTRoy/leetCode
⨍
Functions
332
◇
Types & classes
177
Method
__init__
(self, root)
Tree/BinarySearchTree.py:29
Method
__init__
(self)
Stack/GetMinStack.py:60
Method
__init__
(self)
Stack/ImplementQueueUsingStack.py:38
Method
__init__
(self, x)
Array/IntersectionOfTwoLinkedLists.py:86
Method
__init__
:type nums: List[int]
Array/ShuffleAnArray.py:41
Method
__init__
Initialize your data structure here.
Design/InsertDeleteGetRandomO(1).py:72
Method
__init__
:type A: List[int]
Design/RLEIterator.py:56
Method
__init__
:type capacity: int
Design/LRUCache.py:56
Method
__repr__
(self)
Tree/serializeAndDeserialize.py:69
Method
__repr__
(self)
Stack/GetMinStack.py:34
Method
__str__
(self)
Tree/serializeAndDeserialize.py:65
Method
_deserialize
(roots, nodes)
Tree/SerializeAndDeserializeBinaryTree.py:187
Method
_generateParenthesis
(x, y, parenthesis)
Backtracking/GenerateParentheses.py:33
Method
_serialize
(roots)
Tree/SerializeAndDeserializeBinaryTree.py:142
Method
addNum
:type num: int :rtype: void
Heap/FindMedianFromDataStream.py:125
Method
addTwoNumbers
:type l1: ListNode :type l2: ListNode :rtype: ListNode
Array/AddTowNumbersII.py:59
Method
addTwoNumbers
:type l1: ListNode :type l2: ListNode :rtype: ListNode
Array/AddTwoNumbers.py:40
Method
binarySearch2
(self, rawList, target)
Array/Search2DMatrixII.py:77
Method
buildTree
:type preorder: List[int] :type inorder: List[int] :rtype: TreeNode
Tree/ConstructBinaryTreeFromPreorderAndInorderTraversal.py:44
Method
buildTree
:type inorder: List[int] :type postorder: List[int] :rtype: TreeNode
Tree/ConstructBinaryTreeFromInorderAndPostorderTraversal.py:65
Method
canCompleteCircuit
:type gas: List[int] :type cost: List[int] :rtype: int
Array/GasStation.py:69
Method
canJump
:type nums: List[int] :rtype: bool
Array/JumpGame.py:37
Method
checkInclusion
:type s1: str :type s2: str :rtype: bool
String/PermutationInString.py:29
Function
climbStairs
(n)
DP/ClimbingStairs.js:5
Method
climbStairs
:type n: int :rtype: int
DP/ClimbingStairs.py:43
Function
combinationSum
(candidates, target)
DP/CombinationSum.js:43
Method
connect
(self, root)
Tree/PopulatingNextRightPointersInEachNodeII.py:55
Method
connect
(self, root)
Tree/PopulatingNextRightPointersInEachNode.py:61
Method
construct
(root, pre, post)
Tree/ConstructBinaryTreeFromPreorderAndPostorderTraversal.py:110
Method
constructFromPrePost
:type pre: List[int] :type post: List[int] :rtype: TreeNode
Tree/ConstructBinaryTreeFromPreorderAndPostorderTraversal.py:71
Method
countSegments
:type s: str :rtype: int
String/NumberOfSegmentsInString.py:27
Method
countSmaller
:type nums: List[int] :rtype: List[int]
Array/CountOfSmallerNumbersAfterSelf.py:29
Method
delete
(self)
Tree/BinarySearchTree.py:81
Method
deleteDuplicates
:type head: ListNode :rtype: ListNode
Array/RemoveDuplicatesFromSortedListII.py:33
Method
deleteDuplicates
:type head: ListNode :rtype: ListNode
Array/RemoveDuplicatesFromSortedList.py:34
Method
deserialize
Decodes your encoded data to tree. :type data: str :rtype: TreeNode
Tree/SerializeAndDeserializeBinaryTree.py:169
Method
detectCapitalUse
:type word: str :rtype: bool
String/DetectCapital.py:47
Method
divide
:type dividend: int :type divisor: int :rtype: int
Number/DivideTwoIntegers.py:37
Method
down
(x, y)
Array/SpiralMatrixII.py:63
Method
exist
:type board: List[List[str]] :type word: str :rtype: bool
DFS/WordSearch.py:193
Method
fairCandySwap
:type A: List[int] :type B: List[int] :rtype: List[int]
Array/FairCandySwap.py:72
Method
find
(board, x, y, word)
DFS/WordSearch.py:378
Method
find
(board, x, y, word, pre)
DFS/WordSearchII.py:90
Method
findAnagrams
:type s: str :type p: str :rtype: List[int]
DP/FindAllAnagramsInAString.py:97
Method
findAndReplacePattern
:type words: List[str] :type pattern: str :rtype: List[str]
String/FindAndReplacePattern.py:44
Method
findBottomLeftValue
:type root: TreeNode :rtype: int
BFS/FindBottomLeftTreeValue.py:72
Function
findKthLargest
(nums, k)
Array/KthLargestElementInAnArray.js:87
Method
findKthLargest
:type nums: List[int] :type k: int :rtype: int
Array/KthLargestElementInAnArray.py:125
Method
findLengthOfLCIS
:type nums: List[int] :rtype: int
DP/LongestContinuousIncreasingSubsequence.py:25
Method
findLongestChain
:type pairs: List[List[int]] :rtype: int
DP/MaximumLengthOfPairChain.py:82
Method
findMedian
:rtype: float
Heap/FindMedianFromDataStream.py:175
Method
findMedianSortedArrays
:type nums1: List[int] :type nums2: List[int] :rtype: float
Array/MedianOfTwoSorted.py:66
Method
findMin
:type nums: List[int] :rtype: int
Array/FindMinimumInRotatedSortedArrayII.py:56
Method
findMin
:type nums: List[int] :rtype: int
Array/FindMinimumInRotatedSortedArray.py:47
Method
findNumberOfLIS
:type nums: List[int] :rtype: int
DP/NumberofLongestIncreasingSubsequence.py:69
Method
findPeakElement
:type nums: List[int] :rtype: int
Array/FindPeakElement.py:36
Method
findRestaurant
:type list1: List[str] :type list2: List[str] :rtype: List[str]
Array/MinimumIndexSumOfTwoLists.py:40
Method
findWords
:type board: List[List[str]] :type words: List[str] :rtype: List[str]
DFS/WordSearchII.py:71
Method
firstUniqChar
:type s: str :rtype: int
String/FirstUniqueCharacterInAString.py:27
Method
fizzBuzz
:type n: int :rtype: List[str]
Array/FizzBuzz.py:46
Method
frequencySort
:type s: str :rtype: str
String/SortCharactersByFrequency.py:53
Method
generate
:type numRows: int :rtype: List[List[int]]
Array/Pascal's TriangleI_II.py:39
Method
generateMatrix
:type n: int :rtype: List[List[int]]
Array/SpiralMatrixII.py:25
Method
generateParenthesis
:type n: int :rtype: List[str]
Backtracking/GenerateParentheses.py:26
Method
getIntersectionNode
:type head1, head1: ListNode :rtype: ListNode
Array/IntersectionOfTwoLinkedLists.py:91
Method
getLeftAndRight
(pre, post)
Tree/ConstructBinaryTreeFromPreorderAndPostorderTraversal.py:78
Method
getLength
(node)
Array/RotateList.py:60
Method
getRandom
Get a random element from the set. :rtype: int
Design/InsertDeleteGetRandomO(1).py:117
Method
get_multiple
(time, all_times)
Array/3SumWithMultiplicity.py:89
Method
get_root
:rtype: TreeNode
Tree/CompleteBinaryTreeInserter.py:128
Method
groupAnagrams
:type strs: List[str] :rtype: List[List[str]]
Array/GroupAnagrams.py:31
Method
hammingDistance
:type x: int :type y: int :rtype: int
String/HammingDistance.py:29
Function
hasCycle
(head)
Array/LinkedListCycle.js:15
Method
hasCycle
:type head: ListNode :rtype: bool
Array/LinkedListCycle.py:32
Method
hasPathSum
:type root: TreeNode :type sum: int :rtype: bool
DFS/PathSum.py:35
Method
helper
(prev, root, sum)
DFS/PathSum.py:44
Method
helper
(prev, root, sum, path)
Tree/PathSumII.py:49
Method
helper
(root, string)
Tree/SumRootToLeafNumbers.py:63
Method
helper
(root)
Tree/BinaryTreeMaximumPathSum.py:142
Method
helper
(x, y)
Array/NumberOfIslands.py:53
Method
helper
(x, y, result=0)
Array/MaxAreaOfIsland.py:52
Method
inOrderTraversal
(root)
Tree/ValidateBinarySearchTree.py:62
Method
increasingTriplet
:type nums: List[int] :rtype: bool
Array/IncreasingTripletSubsequence.py:60
Method
insert
Inserts a word into the trie. :type word: str :rtype: void
Tree/Trie.py:57
Method
insert
Inserts a value to the set. Returns true if the set did not already contain the specified element. :type val: int :rtype: boo
Design/InsertDeleteGetRandomO(1).py:80
Method
intersect
:type nums1: List[int] :type nums2: List[int] :rtype: List[int]
Array/IntersectionOfTwoArraysII.py:49
Method
intersection
:type nums1: List[int] :type nums2: List[int] :rtype: List[int]
Array/IntersectionOfTwoArrays.py:33
Method
isAnagram
:type s: str :type t: str :rtype: bool
String/ValidAnagram.py:37
Method
isIdealPermutation
:type A: List[int] :rtype: bool
Array/GlobalAndLocalInversions.py:36
Method
isIsomorphic
:type s: str :type t: str :rtype: bool
String/IsomorphicStrings.py:40
Method
isLongPressedName
:type name: str :type typed: str :rtype: bool
String/LongPressedName.py:45
Method
isNumber
:type s: str :rtype: bool
String/ValidNumber.py:40
Method
isPalindrome
:type s: str :rtype: bool
String/ValidPalindrome.py:26
Method
isSymmetric
:type root: TreeNode :rtype: bool
Tree/SymmetricTree.py:43
Method
isValid
:type s: str :rtype: bool
String/ValidParentheses.py:41
Method
isValidBST
:type root: TreeNode :rtype: bool
Tree/ValidateBinarySearchTree.py:52
Method
judge
(dict_word, word)
String/ReplaceWords.py:64
Method
jump
:type nums: List[int] :rtype: int
Array/JumpGameII.py:29
Method
kthSmallest
(self, root: TreeNode, k: int)
Tree/KthSmallestElementInABST.py:70
Method
ladderLength
:type beginWord: str :type endWord: str :type wordList: List[str] :rtype: int
BFS/WordLadder.py:56
← previous
next →
101–200 of 332, ranked by callers