MCPcopy Create free account

hub / github.com/corpsepiges/leetcode / functions

Functions1,433 in github.com/corpsepiges/leetcode

MethodgenerateTrees
(int n)
java/095. Unique Binary Search Trees II.java:11
MethodgetHint
:type secret: str :type guess: str :rtype: str
python/299. Bulls and Cows.py:4
MethodgetHint
:type secret: str :type guess: str :rtype: str
Algorithms/299. Bulls and Cows/Solution.py:4
MethodgetHint
(String secret, String guess)
Algorithms/299. Bulls and Cows/Solution.java:2
MethodgetHint
(String secret, String guess)
java/299. Bulls and Cows.java:2
MethodgetIntersectionNode
:type head1, head1: ListNode :rtype: ListNode
python/160. Intersection of Two Linked Lists.py:10
MethodgetIntersectionNode
:type head1, head1: ListNode :rtype: ListNode
Algorithms/160. Intersection of Two Linked Lists/Solution.py:10
MethodgetIntersectionNode
(ListNode headA, ListNode headB)
Algorithms/160. Intersection of Two Linked Lists/Solution.java:13
MethodgetIntersectionNode
(ListNode headA, ListNode headB)
java/160. Intersection of Two Linked Lists.java:13
MethodgetIntervals
()
Algorithms/352. Data Stream as Disjoint Intervals/Solution.java:62
MethodgetIntervals
()
java/352. Data Stream as Disjoint Intervals.java:62
MethodgetMin
()
Algorithms/155. Min Stack/Solution.java:15
MethodgetMin
()
java/155. Min Stack.java:15
MethodgetMoneyAmount
(int n)
Algorithms/375. Guess Number Higher or Lower II/Solution.java:2
MethodgetMoneyAmount
(int n)
java/375. Guess Number Higher or Lower II.java:2
MethodgetNewsFeed
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
MethodgetNewsFeed
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
MethodgetPermutation
:type n: int :type k: int :rtype: str
python/060. Permutation Sequence.py:4
MethodgetPermutation
:type n: int :type k: int :rtype: str
Algorithms/060. Permutation Sequence/Solution.py:4
MethodgetPermutation
(int n, int k)
Algorithms/060. Permutation Sequence/Solution.java:2
MethodgetPermutation
(int n, int k)
java/060. Permutation Sequence.java:2
MethodgetRandom
Returns a random node's value.
Algorithms/382. Linked List Random Node/Solution.java:18
MethodgetRandom
Get a random element from the collection.
Algorithms/381. Insert Delete GetRandom O(1) - Duplicates allowed/Solution.java:28
MethodgetRandom
Get a random element from the set.
Algorithms/380. Insert Delete GetRandom O(1)/Solution.java:32
MethodgetRandom
Returns a random node's value.
java/382. Linked List Random Node.java:18
MethodgetRandom
Get a random element from the collection.
java/381. Insert Delete GetRandom O(1) - Duplicates allowed.java:28
MethodgetRandom
Get a random element from the set.
java/380. Insert Delete GetRandom O(1).java:32
MethodgetRow
:type rowIndex: int :rtype: List[int]
python/119. Pascal's Triangle II.py:4
MethodgetRow
:type rowIndex: int :rtype: List[int]
Algorithms/119. Pascal's Triangle II/Solution.py:4
MethodgetRow
(int rowIndex)
Algorithms/119. Pascal's Triangle II/Solution.java:2
MethodgetRow
(int rowIndex)
java/119. Pascal's Triangle II.java:2
MethodgetSum
(int a, int b)
Algorithms/371. Sum of Two Integers/Solution.java:2
MethodgetSum
(int a, int b)
java/371. Sum of Two Integers.java:2
MethodgrayCode
:type n: int :rtype: List[int]
python/089. Gray Code.py:4
MethodgrayCode
:type n: int :rtype: List[int]
Algorithms/089. Gray Code/Solution.py:4
MethodgrayCode
(int n)
Algorithms/089. Gray Code/Solution.java:2
MethodgrayCode
(int n)
java/089. Gray Code.java:2
MethodgroupAnagrams
:type strs: List[str] :rtype: List[List[str]]
python/049. Group Anagrams.py:4
MethodgroupAnagrams
:type strs: List[str] :rtype: List[List[str]]
Algorithms/049. Group Anagrams/Solution.py:4
MethodgroupAnagrams
(String[] strs)
Algorithms/049. Group Anagrams/Solution.java:2
MethodgroupAnagrams
(String[] strs)
java/049. Group Anagrams.java:2
MethodguessNumber
(int n)
Algorithms/374. Guess Number Higher or Lower/Solution.java:7
MethodguessNumber
(int n)
java/374. Guess Number Higher or Lower.java:7
MethodhIndex
(int[] citations)
Algorithms/274. H-Index/Solution.java:2
MethodhIndex
(int[] citations)
Algorithms/275. H-Index II/Solution.java:2
MethodhIndex
(int[] citations)
java/274. H-Index.java:2
MethodhIndex
(int[] citations)
java/275. H-Index II.java:2
MethodhammingWeight
:type n: int :rtype: int
python/191. Number of 1 Bits.py:5
MethodhammingWeight
:type n: int :rtype: int
Algorithms/191. Number of 1 Bits/Solution.py:5
MethodhammingWeight
(int n)
Algorithms/191. Number of 1 Bits/Solution.java:3
MethodhammingWeight
(int n)
java/191. Number of 1 Bits.java:3
MethodhasCycle
:type head: ListNode :rtype: bool
python/141. Linked List Cycle.py:10
MethodhasCycle
:type head: ListNode :rtype: bool
Algorithms/141. Linked List Cycle/Solution.py:10
MethodhasCycle
(ListNode head)
Algorithms/141. Linked List Cycle/Solution.java:13
MethodhasCycle
(ListNode head)
java/141. Linked List Cycle.java:13
MethodhasNext
:rtype: bool
python/341. Flatten Nested List Iterator.py:49
MethodhasNext
@return whether we have a next smallest number
Algorithms/173. Binary Search Tree Iterator/Solution.java:29
MethodhasNext
:rtype: bool
Algorithms/341. Flatten Nested List Iterator/Solution.py:49
MethodhasNext
()
Algorithms/341. Flatten Nested List Iterator/Solution.java:34
MethodhasNext
@return whether we have a next smallest number
java/173. Binary Search Tree Iterator.java:29
MethodhasNext
()
java/341. Flatten Nested List Iterator.java:34
MethodhasPathSum
:type root: TreeNode :type sum: int :rtype: bool
python/112. Path Sum.py:11
MethodhasPathSum
:type root: TreeNode :type sum: int :rtype: bool
Algorithms/112. Path Sum/Solution.py:11
MethodhasPathSum
(TreeNode root, int sum)
Algorithms/112. Path Sum/Solution.java:11
MethodhasPathSum
(TreeNode root, int sum)
java/112. Path Sum.java:11
Functionhas_path_sum
@param {TreeNode} root @param {Integer} sum @return {Boolean}
Algorithms/112. Path Sum/Solution.rb:13
Functionhas_path_sum
@param {TreeNode} root @param {Integer} sum @return {Boolean}
ruby/112. Path Sum.rb:13
MethodincreasingTriplet
:type nums: List[int] :rtype: bool
python/334. Increasing Triplet Subsequence.py:4
MethodincreasingTriplet
:type nums: List[int] :rtype: bool
Algorithms/334. Increasing Triplet Subsequence/Solution.py:4
MethodincreasingTriplet
(int[] nums)
Algorithms/334. Increasing Triplet Subsequence/Solution.java:2
MethodincreasingTriplet
(int[] nums)
java/334. Increasing Triplet Subsequence.java:2
MethodinorderTraversal
:type root: TreeNode :rtype: List[int]
python/094. Binary Tree Inorder Traversal.py:11
MethodinorderTraversal
:type root: TreeNode :rtype: List[int]
Algorithms/094. Binary Tree Inorder Traversal/Solution.py:11
MethodinorderTraversal
(TreeNode root)
Algorithms/094. Binary Tree Inorder Traversal/Solution.java:11
MethodinorderTraversal
(TreeNode root)
java/094. Binary Tree Inorder Traversal.java:11
Functioninorder_traversal
@param {TreeNode} root @return {Integer[]}
Algorithms/094. Binary Tree Inorder Traversal/Solution.rb:12
Functioninorder_traversal
@param {TreeNode} root @return {Integer[]}
ruby/094. Binary Tree Inorder Traversal.rb:12
Methodinsert
:type intervals: List[Interval] :type newInterval: Interval :rtype: List[Interval]
python/057. Insert Interval.py:10
Methodinsert
(String word)
Algorithms/208. Implement Trie (Prefix Tree)/Solution.java:19
Methodinsert
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
Methodinsert
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
Methodinsert
:type intervals: List[Interval] :type newInterval: Interval :rtype: List[Interval]
Algorithms/057. Insert Interval/Solution.py:10
Methodinsert
(List<Interval> intervals, Interval newInterval)
Algorithms/057. Insert Interval/Solution.java:11
Methodinsert
(String word)
java/208. Implement Trie (Prefix Tree).java:19
Methodinsert
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
Methodinsert
(List<Interval> intervals, Interval newInterval)
java/057. Insert Interval.java:11
Methodinsert
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
MethodinsertionSortList
(ListNode head)
Algorithms/147. Insertion Sort List/Solution.java:10
MethodinsertionSortList
(ListNode head)
java/147. Insertion Sort List.java:10
MethodintToRoman
:type num: int :rtype: str
python/012. Integer to Roman.py:10
MethodintToRoman
:type num: int :rtype: str
Algorithms/012. Integer to Roman/Solution.py:10
MethodintToRoman
(int num)
Algorithms/012. Integer to Roman/Solution.java:2
MethodintToRoman
(int num)
java/012. Integer to Roman.java:2
MethodintegerBreak
:type n: int :rtype: int
python/343. Integer Break.py:5
MethodintegerBreak
:type n: int :rtype: int
Algorithms/343. Integer Break/Solution.py:5
MethodintegerBreak
(int n)
Algorithms/343. Integer Break/Solution.java:8
MethodintegerBreak
(int n)
java/343. Integer Break.java:8
MethodintegerReplacement
(int n)
Algorithms/397. Integer Replacement/Solution.java:3
MethodintegerReplacement
(int n)
java/397. Integer Replacement.java:3
Methodintersect
(int[] nums1, int[] nums2)
Algorithms/350. Intersection of Two Arrays II/Solution.java:2
← previousnext →701–800 of 1,433, ranked by callers