MCPcopy Create free account

hub / github.com/corpsepiges/leetcode / functions

Functions1,433 in github.com/corpsepiges/leetcode

MethodnumSquares
(int n)
Algorithms/279. Perfect Squares/Solution.java:3
MethodnumSquares
(int n)
java/279. Perfect Squares.java:3
MethodnumTrees
:type n: int :rtype: int
python/096. Unique Binary Search Trees.py:6
MethodnumTrees
:type n: int :rtype: int
Algorithms/096. Unique Binary Search Trees/Solution.py:6
MethodnumTrees
(int n)
Algorithms/096. Unique Binary Search Trees/Solution.java:2
MethodnumTrees
(int n)
java/096. Unique Binary Search Trees.java:2
MethodnumberToWords
:type num: int :rtype: str
python/273. Integer to English Words.py:7
MethodnumberToWords
:type num: int :rtype: str
Algorithms/273. Integer to English Words/Solution.py:7
MethodnumberToWords
(int num)
Algorithms/273. Integer to English Words/Solution.java:2
MethodnumberToWords
(int num)
java/273. Integer to English Words.java:2
MethododdEvenList
:type head: ListNode :rtype: ListNode
python/328. Odd Even Linked List.py:10
MethododdEvenList
:type head: ListNode :rtype: ListNode
Algorithms/328. Odd Even Linked List/Solution.py:10
MethododdEvenList
(ListNode head)
Algorithms/328. Odd Even Linked List/Solution.java:10
MethododdEvenList
(ListNode head)
java/328. Odd Even Linked List.java:10
MethodoneSentenceMethod
:type nums: List[int] :type k: int :rtype: List[int]
python/347. Top K Frequent Elements.py:28
MethodoneSentenceMethod
:type nums: List[int] :type k: int :rtype: List[int]
Algorithms/347. Top K Frequent Elements/Solution.py:28
MethodpacificAtlantic
(int[][] matrix)
Algorithms/417. Pacific Atlantic Water Flow/Solution.java:10
MethodpacificAtlantic
(int[][] matrix)
java/417. Pacific Atlantic Water Flow.java:10
Methodpartition
:type head: ListNode :type x: int :rtype: ListNode
python/086. Partition List.py:15
Methodpartition
:type head: ListNode :type x: int :rtype: ListNode
Algorithms/086. Partition List/Solution.py:15
Methodpartition
(ListNode head, int x)
Algorithms/086. Partition List/Solution.java:10
Methodpartition
(String s)
Algorithms/131. Palindrome Partitioning/Solution.java:3
Methodpartition
(ListNode head, int x)
java/086. Partition List.java:10
Methodpartition
(String s)
java/131. Palindrome Partitioning.java:3
MethodpathSum
:type root: TreeNode :type sum: int :rtype: List[List[int]]
python/113. Path Sum II.py:11
MethodpathSum
:type root: TreeNode :type sum: int :rtype: List[List[int]]
Algorithms/113. Path Sum II/Solution.py:11
MethodpathSum
(TreeNode root, int sum)
Algorithms/113. Path Sum II/Solution.java:11
MethodpathSum
(TreeNode root, int sum)
java/113. Path Sum II.java:11
Methodpeek
()
Algorithms/232. Implement Queue using Stacks/Solution.java:31
Methodpeek
()
java/232. Implement Queue using Stacks.java:31
Methodpermute
:type nums: List[int] :rtype: List[List[int]]
python/046. Permutations.py:4
Methodpermute
:type nums: List[int] :rtype: List[List[int]]
Algorithms/046. Permutations/Solution.py:4
Methodpermute
(int[] nums)
Algorithms/046. Permutations/Solution.java:2
Methodpermute
(int[] nums)
java/046. Permutations.java:2
MethodpermuteUnique
:type nums: List[int] :rtype: List[List[int]]
python/047. Permutations II.py:4
MethodpermuteUnique
:type nums: List[int] :rtype: List[List[int]]
Algorithms/047. Permutations II/Solution.py:4
MethodpermuteUnique
(int[] nums)
Algorithms/047. Permutations II/Solution.java:3
MethodpermuteUnique
(int[] nums)
java/047. Permutations II.java:3
Methodpick
(int target)
Algorithms/398. Random Pick Index/Solution.java:8
Methodpick
(int target)
java/398. Random Pick Index.java:8
MethodplusOne
(int[] digits)
Algorithms/066. Plus One/Solution.java:2
MethodplusOne
(int[] digits)
java/066. Plus One.java:2
Methodpop
()
Algorithms/155. Min Stack/Solution.java:7
Methodpop
()
Algorithms/225. Implement Stack using Queues/Solution.java:9
Methodpop
()
java/155. Min Stack.java:7
Methodpop
()
java/225. Implement Stack using Queues.java:9
MethodpostTweet
Compose a new tweet.
Algorithms/355. Design Twitter/Solution.java:13
MethodpostTweet
Compose a new tweet.
java/355. Design Twitter.java:13
MethodpostorderTraversal
:type root: TreeNode :rtype: List[int]
python/145. Binary Tree Postorder Traversal.py:11
MethodpostorderTraversal
:type root: TreeNode :rtype: List[int]
Algorithms/145. Binary Tree Postorder Traversal/Solution.py:11
MethodpostorderTraversal
(TreeNode root)
Algorithms/145. Binary Tree Postorder Traversal/Solution.java:11
MethodpostorderTraversal
(TreeNode root)
java/145. Binary Tree Postorder Traversal.java:11
MethodpreorderTraversal
:type root: TreeNode :rtype: List[int]
python/144. Binary Tree Preorder Traversal.py:11
MethodpreorderTraversal
:type root: TreeNode :rtype: List[int]
Algorithms/144. Binary Tree Preorder Traversal/Solution.py:11
MethodpreorderTraversal
(TreeNode root)
Algorithms/144. Binary Tree Preorder Traversal/Solution.java:11
MethodpreorderTraversal
(TreeNode root)
java/144. Binary Tree Preorder Traversal.java:11
Functionpreorder_traversal
@param {TreeNode} root @return {Integer[]}
Algorithms/144. Binary Tree Preorder Traversal/Solution.rb:12
Functionpreorder_traversal
@param {TreeNode} root @return {Integer[]}
ruby/144. Binary Tree Preorder Traversal.rb:12
MethodproductExceptSelf
:type nums: List[int] :rtype: List[int]
python/238. Product of Array Except Self.py:4
MethodproductExceptSelf
:type nums: List[int] :rtype: List[int]
Algorithms/238. Product of Array Except Self/Solution.py:4
MethodproductExceptSelf
(int[] nums)
Algorithms/238. Product of Array Except Self/Solution.java:2
MethodproductExceptSelf
(int[] nums)
java/238. Product of Array Except Self.java:2
Methodpush
(int x)
Algorithms/225. Implement Stack using Queues/Solution.java:4
Methodpush
(int x)
java/225. Implement Stack using Queues.java:4
MethodrangeBitwiseAnd
(int m, int n)
Algorithms/201. Bitwise AND of Numbers Range/Solution.java:2
MethodrangeBitwiseAnd
(int m, int n)
java/201. Bitwise AND of Numbers Range.java:2
MethodreadBinaryWatch
(int num)
Algorithms/401. Binary Watch/Solution.java:102
MethodreadBinaryWatch
(int num)
java/401. Binary Watch.java:102
MethodreconstructQueue
(int[][] people)
Algorithms/406. Queue Reconstruction by Height/Solution.java:2
MethodreconstructQueue
(int[][] people)
java/406. Queue Reconstruction by Height.java:2
MethodrecoverTree
:type root: TreeNode :rtype: void Do not return anything, modify root in-place instead.
python/099. Recover Binary Search Tree.py:11
MethodrecoverTree
:type root: TreeNode :rtype: void Do not return anything, modify root in-place instead.
Algorithms/099. Recover Binary Search Tree/Solution.py:11
Methodremove
Removes a value from the collection. Returns true if the collection contained the specified element.
Algorithms/381. Insert Delete GetRandom O(1) - Duplicates allowed/Solution.java:20
Methodremove
Removes a value from the collection. Returns true if the collection contained the specified element.
java/381. Insert Delete GetRandom O(1) - Duplicates allowed.java:20
MethodremoveDuplicateLetters
(String s)
Algorithms/316. Remove Duplicate Letters/Solution.java:4
MethodremoveDuplicateLetters
(String s)
java/316. Remove Duplicate Letters.java:4
MethodremoveDuplicates
:type nums: List[int] :rtype: int
python/080. Remove Duplicates from Sorted Array II.py:4
MethodremoveDuplicates
:type nums: List[int] :rtype: int
python/026. Remove Duplicates from Sorted Array.py:4
MethodremoveDuplicates
:type nums: List[int] :rtype: int
Algorithms/080. Remove Duplicates from Sorted Array II/Solution.py:4
MethodremoveDuplicates
(int[] nums)
Algorithms/080. Remove Duplicates from Sorted Array II/Solution.java:2
MethodremoveDuplicates
:type nums: List[int] :rtype: int
Algorithms/026. Remove Duplicates from Sorted Array/Solution.py:4
MethodremoveDuplicates
(int[] nums)
Algorithms/026. Remove Duplicates from Sorted Array/Solution.java:2
MethodremoveDuplicates
(int[] nums)
java/026. Remove Duplicates from Sorted Array.java:2
MethodremoveDuplicates
(int[] nums)
java/080. Remove Duplicates from Sorted Array II.java:2
MethodremoveElement
:type nums: List[int] :type val: int :rtype: int
python/027. Remove Element.py:4
MethodremoveElement
:type nums: List[int] :type val: int :rtype: int
Algorithms/027. Remove Element/Solution.py:4
MethodremoveElement
(int[] nums, int val)
Algorithms/027. Remove Element/Solution.java:2
MethodremoveElement
(int[] nums, int val)
java/027. Remove Element.java:2
MethodremoveElements
:type head: ListNode :type val: int :rtype: ListNode
python/203. Remove Linked List Elements.py:10
MethodremoveElements
:type head: ListNode :type val: int :rtype: ListNode
Algorithms/203. Remove Linked List Elements/Solution.py:10
MethodremoveElements
(ListNode head,int val)
Algorithms/203. Remove Linked List Elements/Solution.java:10
MethodremoveElements
(ListNode head,int val)
java/203. Remove Linked List Elements.java:10
MethodremoveKdigits
(String num, int k)
Algorithms/402. Remove K Digits/Solution.java:2
MethodremoveKdigits
(String num, int k)
java/402. Remove K Digits.java:2
MethodremoveNthFromEnd
:type head: ListNode :type n: int :rtype: ListNode
python/019. Remove Nth Node From End of List.py:10
MethodremoveNthFromEnd
:type head: ListNode :type n: int :rtype: ListNode
Algorithms/019. Remove Nth Node From End of List/Solution.py:10
MethodremoveNthFromEnd
(ListNode head, int n)
Algorithms/019. Remove Nth Node From End of List/Solution.java:10
MethodremoveNthFromEnd
(ListNode head, int n)
java/019. Remove Nth Node From End of List.java:10
Functionremove_nth_from_end
@param {ListNode} head @param {Integer} n @return {ListNode}
Algorithms/019. Remove Nth Node From End of List/Solution.rb:13
Functionremove_nth_from_end
@param {ListNode} head @param {Integer} n @return {ListNode}
ruby/019. Remove Nth Node From End of List.rb:13
← previousnext →1,101–1,200 of 1,433, ranked by callers