Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/corpsepiges/leetcode
/ functions
Functions
1,433 in github.com/corpsepiges/leetcode
⨍
Functions
1,433
◇
Types & classes
940
Method
generateTrees
(int n)
java/095. Unique Binary Search Trees II.java:11
Method
getHint
:type secret: str :type guess: str :rtype: str
python/299. Bulls and Cows.py:4
Method
getHint
:type secret: str :type guess: str :rtype: str
Algorithms/299. Bulls and Cows/Solution.py:4
Method
getHint
(String secret, String guess)
Algorithms/299. Bulls and Cows/Solution.java:2
Method
getHint
(String secret, String guess)
java/299. Bulls and Cows.java:2
Method
getIntersectionNode
:type head1, head1: ListNode :rtype: ListNode
python/160. Intersection of Two Linked Lists.py:10
Method
getIntersectionNode
:type head1, head1: ListNode :rtype: ListNode
Algorithms/160. Intersection of Two Linked Lists/Solution.py:10
Method
getIntersectionNode
(ListNode headA, ListNode headB)
Algorithms/160. Intersection of Two Linked Lists/Solution.java:13
Method
getIntersectionNode
(ListNode headA, ListNode headB)
java/160. Intersection of Two Linked Lists.java:13
Method
getIntervals
()
Algorithms/352. Data Stream as Disjoint Intervals/Solution.java:62
Method
getIntervals
()
java/352. Data Stream as Disjoint Intervals.java:62
Method
getMin
()
Algorithms/155. Min Stack/Solution.java:15
Method
getMin
()
java/155. Min Stack.java:15
Method
getMoneyAmount
(int n)
Algorithms/375. Guess Number Higher or Lower II/Solution.java:2
Method
getMoneyAmount
(int n)
java/375. Guess Number Higher or Lower II.java:2
Method
getNewsFeed
Retrieve the 10 most recent tweet ids in the user's news feed. Each item in the news feed must be posted by users who the user followed or by the user
Algorithms/355. Design Twitter/Solution.java:24
Method
getNewsFeed
Retrieve the 10 most recent tweet ids in the user's news feed. Each item in the news feed must be posted by users who the user followed or by the user
java/355. Design Twitter.java:24
Method
getPermutation
:type n: int :type k: int :rtype: str
python/060. Permutation Sequence.py:4
Method
getPermutation
:type n: int :type k: int :rtype: str
Algorithms/060. Permutation Sequence/Solution.py:4
Method
getPermutation
(int n, int k)
Algorithms/060. Permutation Sequence/Solution.java:2
Method
getPermutation
(int n, int k)
java/060. Permutation Sequence.java:2
Method
getRandom
Returns a random node's value.
Algorithms/382. Linked List Random Node/Solution.java:18
Method
getRandom
Get a random element from the collection.
Algorithms/381. Insert Delete GetRandom O(1) - Duplicates allowed/Solution.java:28
Method
getRandom
Get a random element from the set.
Algorithms/380. Insert Delete GetRandom O(1)/Solution.java:32
Method
getRandom
Returns a random node's value.
java/382. Linked List Random Node.java:18
Method
getRandom
Get a random element from the collection.
java/381. Insert Delete GetRandom O(1) - Duplicates allowed.java:28
Method
getRandom
Get a random element from the set.
java/380. Insert Delete GetRandom O(1).java:32
Method
getRow
:type rowIndex: int :rtype: List[int]
python/119. Pascal's Triangle II.py:4
Method
getRow
:type rowIndex: int :rtype: List[int]
Algorithms/119. Pascal's Triangle II/Solution.py:4
Method
getRow
(int rowIndex)
Algorithms/119. Pascal's Triangle II/Solution.java:2
Method
getRow
(int rowIndex)
java/119. Pascal's Triangle II.java:2
Method
getSum
(int a, int b)
Algorithms/371. Sum of Two Integers/Solution.java:2
Method
getSum
(int a, int b)
java/371. Sum of Two Integers.java:2
Method
grayCode
:type n: int :rtype: List[int]
python/089. Gray Code.py:4
Method
grayCode
:type n: int :rtype: List[int]
Algorithms/089. Gray Code/Solution.py:4
Method
grayCode
(int n)
Algorithms/089. Gray Code/Solution.java:2
Method
grayCode
(int n)
java/089. Gray Code.java:2
Method
groupAnagrams
:type strs: List[str] :rtype: List[List[str]]
python/049. Group Anagrams.py:4
Method
groupAnagrams
:type strs: List[str] :rtype: List[List[str]]
Algorithms/049. Group Anagrams/Solution.py:4
Method
groupAnagrams
(String[] strs)
Algorithms/049. Group Anagrams/Solution.java:2
Method
groupAnagrams
(String[] strs)
java/049. Group Anagrams.java:2
Method
guessNumber
(int n)
Algorithms/374. Guess Number Higher or Lower/Solution.java:7
Method
guessNumber
(int n)
java/374. Guess Number Higher or Lower.java:7
Method
hIndex
(int[] citations)
Algorithms/274. H-Index/Solution.java:2
Method
hIndex
(int[] citations)
Algorithms/275. H-Index II/Solution.java:2
Method
hIndex
(int[] citations)
java/274. H-Index.java:2
Method
hIndex
(int[] citations)
java/275. H-Index II.java:2
Method
hammingWeight
:type n: int :rtype: int
python/191. Number of 1 Bits.py:5
Method
hammingWeight
:type n: int :rtype: int
Algorithms/191. Number of 1 Bits/Solution.py:5
Method
hammingWeight
(int n)
Algorithms/191. Number of 1 Bits/Solution.java:3
Method
hammingWeight
(int n)
java/191. Number of 1 Bits.java:3
Method
hasCycle
:type head: ListNode :rtype: bool
python/141. Linked List Cycle.py:10
Method
hasCycle
:type head: ListNode :rtype: bool
Algorithms/141. Linked List Cycle/Solution.py:10
Method
hasCycle
(ListNode head)
Algorithms/141. Linked List Cycle/Solution.java:13
Method
hasCycle
(ListNode head)
java/141. Linked List Cycle.java:13
Method
hasNext
:rtype: bool
python/341. Flatten Nested List Iterator.py:49
Method
hasNext
@return whether we have a next smallest number
Algorithms/173. Binary Search Tree Iterator/Solution.java:29
Method
hasNext
:rtype: bool
Algorithms/341. Flatten Nested List Iterator/Solution.py:49
Method
hasNext
()
Algorithms/341. Flatten Nested List Iterator/Solution.java:34
Method
hasNext
@return whether we have a next smallest number
java/173. Binary Search Tree Iterator.java:29
Method
hasNext
()
java/341. Flatten Nested List Iterator.java:34
Method
hasPathSum
:type root: TreeNode :type sum: int :rtype: bool
python/112. Path Sum.py:11
Method
hasPathSum
:type root: TreeNode :type sum: int :rtype: bool
Algorithms/112. Path Sum/Solution.py:11
Method
hasPathSum
(TreeNode root, int sum)
Algorithms/112. Path Sum/Solution.java:11
Method
hasPathSum
(TreeNode root, int sum)
java/112. Path Sum.java:11
Function
has_path_sum
@param {TreeNode} root @param {Integer} sum @return {Boolean}
Algorithms/112. Path Sum/Solution.rb:13
Function
has_path_sum
@param {TreeNode} root @param {Integer} sum @return {Boolean}
ruby/112. Path Sum.rb:13
Method
increasingTriplet
:type nums: List[int] :rtype: bool
python/334. Increasing Triplet Subsequence.py:4
Method
increasingTriplet
:type nums: List[int] :rtype: bool
Algorithms/334. Increasing Triplet Subsequence/Solution.py:4
Method
increasingTriplet
(int[] nums)
Algorithms/334. Increasing Triplet Subsequence/Solution.java:2
Method
increasingTriplet
(int[] nums)
java/334. Increasing Triplet Subsequence.java:2
Method
inorderTraversal
:type root: TreeNode :rtype: List[int]
python/094. Binary Tree Inorder Traversal.py:11
Method
inorderTraversal
:type root: TreeNode :rtype: List[int]
Algorithms/094. Binary Tree Inorder Traversal/Solution.py:11
Method
inorderTraversal
(TreeNode root)
Algorithms/094. Binary Tree Inorder Traversal/Solution.java:11
Method
inorderTraversal
(TreeNode root)
java/094. Binary Tree Inorder Traversal.java:11
Function
inorder_traversal
@param {TreeNode} root @return {Integer[]}
Algorithms/094. Binary Tree Inorder Traversal/Solution.rb:12
Function
inorder_traversal
@param {TreeNode} root @return {Integer[]}
ruby/094. Binary Tree Inorder Traversal.rb:12
Method
insert
:type intervals: List[Interval] :type newInterval: Interval :rtype: List[Interval]
python/057. Insert Interval.py:10
Method
insert
(String word)
Algorithms/208. Implement Trie (Prefix Tree)/Solution.java:19
Method
insert
Inserts a value to the collection. Returns true if the collection did not already contain the specified element.
Algorithms/381. Insert Delete GetRandom O(1) - Duplicates allowed/Solution.java:12
Method
insert
Inserts a value to the set. Returns true if the set did not already contain the specified element.
Algorithms/380. Insert Delete GetRandom O(1)/Solution.java:12
Method
insert
:type intervals: List[Interval] :type newInterval: Interval :rtype: List[Interval]
Algorithms/057. Insert Interval/Solution.py:10
Method
insert
(List<Interval> intervals, Interval newInterval)
Algorithms/057. Insert Interval/Solution.java:11
Method
insert
(String word)
java/208. Implement Trie (Prefix Tree).java:19
Method
insert
Inserts a value to the collection. Returns true if the collection did not already contain the specified element.
java/381. Insert Delete GetRandom O(1) - Duplicates allowed.java:12
Method
insert
(List<Interval> intervals, Interval newInterval)
java/057. Insert Interval.java:11
Method
insert
Inserts a value to the set. Returns true if the set did not already contain the specified element.
java/380. Insert Delete GetRandom O(1).java:12
Method
insertionSortList
(ListNode head)
Algorithms/147. Insertion Sort List/Solution.java:10
Method
insertionSortList
(ListNode head)
java/147. Insertion Sort List.java:10
Method
intToRoman
:type num: int :rtype: str
python/012. Integer to Roman.py:10
Method
intToRoman
:type num: int :rtype: str
Algorithms/012. Integer to Roman/Solution.py:10
Method
intToRoman
(int num)
Algorithms/012. Integer to Roman/Solution.java:2
Method
intToRoman
(int num)
java/012. Integer to Roman.java:2
Method
integerBreak
:type n: int :rtype: int
python/343. Integer Break.py:5
Method
integerBreak
:type n: int :rtype: int
Algorithms/343. Integer Break/Solution.py:5
Method
integerBreak
(int n)
Algorithms/343. Integer Break/Solution.java:8
Method
integerBreak
(int n)
java/343. Integer Break.java:8
Method
integerReplacement
(int n)
Algorithms/397. Integer Replacement/Solution.java:3
Method
integerReplacement
(int n)
java/397. Integer Replacement.java:3
Method
intersect
(int[] nums1, int[] nums2)
Algorithms/350. Intersection of Two Arrays II/Solution.java:2
← previous
next →
701–800 of 1,433, ranked by callers