MCPcopy Create free account

hub / github.com/corpsepiges/leetcode / functions

Functions1,433 in github.com/corpsepiges/leetcode

MethodmaxProfit
(int[] prices)
java/123. Best Time to Buy and Sell Stock III.java:2
MethodmaxProfit
(int[] prices)
java/122. Best Time to Buy and Sell Stock II.java:2
MethodmaxProfit
(int[] prices)
java/309. Best Time to Buy and Sell Stock with Cooldown.java:2
MethodmaxProfit
(int[] prices)
java/121. Best Time to Buy and Sell Stock.java:2
MethodmaxRotateFunction
(int[] A)
Algorithms/396. Rotate Function/Solution.java:2
MethodmaxRotateFunction
(int[] A)
java/396. Rotate Function.java:2
MethodmaxSlidingWindow
:type nums: List[int] :type k: int :rtype: List[int]
python/239. Sliding Window Maximum.py:4
MethodmaxSlidingWindow
:type nums: List[int] :type k: int :rtype: List[int]
Algorithms/239. Sliding Window Maximum/Solution.py:4
MethodmaxSlidingWindow
(int[] nums, int k)
Algorithms/239. Sliding Window Maximum/Solution.java:2
MethodmaxSlidingWindow
(int[] nums, int k)
java/239. Sliding Window Maximum.java:2
MethodmaxSubArray
:type nums: List[int] :rtype: int
python/053. Maximum Subarray.py:4
MethodmaxSubArray
:type nums: List[int] :rtype: int
Algorithms/053. Maximum Subarray/Solution.py:4
MethodmaxSubArray
(int[] nums)
Algorithms/053. Maximum Subarray/Solution.java:2
MethodmaxSubArray
(int[] nums)
java/053. Maximum Subarray.java:2
MethodmaxSumSubmatrix
(int[][] matrix, int k)
Algorithms/363. Max Sum of Rectangle No Larger Than K/Solution.java:2
MethodmaxSumSubmatrix
(int[][] matrix, int k)
java/363. Max Sum of Rectangle No Larger Than K.java:2
Functionmax_depth
@param {TreeNode} root @return {Integer}
Algorithms/104. Maximum Depth of Binary Tree/Solution.rb:12
Functionmax_depth
@param {TreeNode} root @return {Integer}
ruby/104. Maximum Depth of Binary Tree.rb:12
MethodmaximalSquare
(char[][] matrix)
Algorithms/221. Maximal Square/Solution.java:2
MethodmaximalSquare
(char[][] matrix)
java/221. Maximal Square.java:2
MethodmaximumGap
(int[] nums)
Algorithms/164. Maximum Gap/Solution.java:2
MethodmaximumGap
(int[] nums)
java/164. Maximum Gap.java:2
Methodmerge
:type nums1: List[int] :type m: int :type nums2: List[int] :type n: int :rtype: void Do not return anything,
python/088. Merge Sorted Array.py:4
Methodmerge
(List<Interval> intervals)
Algorithms/056. Merge Intervals/Solution.java:11
Methodmerge
:type nums1: List[int] :type m: int :type nums2: List[int] :type n: int :rtype: void Do not return anything,
Algorithms/088. Merge Sorted Array/Solution.py:4
Methodmerge
(int[] nums1, int m, int[] nums2, int n)
Algorithms/088. Merge Sorted Array/Solution.java:2
Methodmerge
(List<Interval> intervals)
java/056. Merge Intervals.java:11
Methodmerge
(int[] nums1, int m, int[] nums2, int n)
java/088. Merge Sorted Array.java:2
MethodmergeKLists
:type lists: List[ListNode] :rtype: ListNode
python/023. Merge k Sorted Lists.py:9
MethodmergeKLists
:type lists: List[ListNode] :rtype: ListNode
Algorithms/023. Merge k Sorted Lists/Solution.py:9
MethodmergeKLists
(ListNode[] lists)
Algorithms/023. Merge k Sorted Lists/Solution.java:10
MethodmergeKLists
(ListNode[] lists)
java/023. Merge k Sorted Lists.java:10
MethodmergeTwoLists
:type l1: ListNode :type l2: ListNode :rtype: ListNode
python/021. Merge Two Sorted Lists.py:10
MethodmergeTwoLists
:type l1: ListNode :type l2: ListNode :rtype: ListNode
Algorithms/021. Merge Two Sorted Lists/Solution.py:10
MethodmergeTwoLists
(ListNode l1, ListNode l2)
Algorithms/021. Merge Two Sorted Lists/Solution.java:10
MethodmergeTwoLists
(ListNode l1, ListNode l2)
java/021. Merge Two Sorted Lists.java:10
Functionmerge_k_lists
@param {ListNode[]} lists @return {ListNode}
Algorithms/023. Merge k Sorted Lists/Solution.rb:12
Functionmerge_k_lists
@param {ListNode[]} lists @return {ListNode}
ruby/023. Merge k Sorted Lists.rb:12
Functionmerge_two_lists
@param {ListNode} l1 @param {ListNode} l2 @return {ListNode}
Algorithms/021. Merge Two Sorted Lists/Solution.rb:13
Functionmerge_two_lists
@param {ListNode} l1 @param {ListNode} l2 @return {ListNode}
ruby/021. Merge Two Sorted Lists.rb:13
MethodminDepth
:type root: TreeNode :rtype: int
python/111. Minimum Depth of Binary Tree.py:11
MethodminDepth
:type root: TreeNode :rtype: int
Algorithms/111. Minimum Depth of Binary Tree/Solution.py:11
MethodminDepth
(TreeNode root)
Algorithms/111. Minimum Depth of Binary Tree/Solution.java:11
MethodminDepth
(TreeNode root)
java/111. Minimum Depth of Binary Tree.java:11
MethodminDistance
:type word1: str :type word2: str :rtype: int
python/072. Edit Distance.py:4
MethodminDistance
:type word1: str :type word2: str :rtype: int
Algorithms/072. Edit Distance/Solution.py:4
MethodminDistance
(String word1, String word2)
Algorithms/072. Edit Distance/Solution.java:2
MethodminDistance
(String word1, String word2)
java/072. Edit Distance.java:2
MethodminPathSum
:type grid: List[List[int]] :rtype: int
python/064. Minimum Path Sum.py:4
MethodminPathSum
:type grid: List[List[int]] :rtype: int
Algorithms/064. Minimum Path Sum/Solution.py:4
MethodminPathSum
(int[][] grid)
Algorithms/064. Minimum Path Sum/Solution.java:2
MethodminPathSum
(int[][] grid)
java/064. Minimum Path Sum.java:2
Functionmin_depth
@param {TreeNode} root @return {Integer}
Algorithms/111. Minimum Depth of Binary Tree/Solution.rb:12
Functionmin_depth
@param {TreeNode} root @return {Integer}
ruby/111. Minimum Depth of Binary Tree.rb:12
MethodminimumTotal
:type triangle: List[List[int]] :rtype: int
python/120. Triangle.py:7
MethodminimumTotal
:type triangle: List[List[int]] :rtype: int
Algorithms/120. Triangle/Solution.py:7
MethodminimumTotal
(List<List<Integer>> triangle)
Algorithms/120. Triangle/Solution.java:2
MethodminimumTotal
(List<List<Integer>> triangle)
java/120. Triangle.java:2
MethodmissingNumber
:type nums: List[int] :rtype: int
python/268. Missing Number.py:4
MethodmissingNumber
:type nums: List[int] :rtype: int
Algorithms/268. Missing Number/Solution.py:4
MethodmissingNumber
(int[] nums)
Algorithms/268. Missing Number/Solution.java:2
MethodmissingNumber
(int[] nums)
java/268. Missing Number.java:2
MethodmoveZeroes
:type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead.
python/283. Move Zeroes.py:4
MethodmoveZeroes
:type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead.
Algorithms/283. Move Zeroes/Solution.py:4
MethodmoveZeroes
(int[] nums)
Algorithms/283. Move Zeroes/Solution.java:2
MethodmoveZeroes
(int[] nums)
java/283. Move Zeroes.java:2
Methodmultiply
:type num1: str :type num2: str :rtype: str
python/043. Multiply Strings.py:4
Methodmultiply
:type num1: str :type num2: str :rtype: str
Algorithms/043. Multiply Strings/Solution.py:4
Methodmultiply
(String num1, String num2)
Algorithms/043. Multiply Strings/Solution.java:2
Methodmultiply
(String num1, String num2)
java/043. Multiply Strings.java:2
MethodmyAtoi
(String str)
Algorithms/008. String to Integer (atoi)/Solution.java:2
MethodmyAtoi
(String str)
java/008. String to Integer (atoi).java:2
MethodmyPow
:type x: float :type n: int :rtype: float
python/050. Pow(x, n).py:4
MethodmyPow
:type x: float :type n: int :rtype: float
Algorithms/050. Pow(x, n)/Solution.py:4
MethodmyPow
(double x, int n)
Algorithms/050. Pow(x, n)/Solution.java:2
MethodmyPow
(double x, int n)
java/050. Pow(x, n).java:2
MethodmySqrt
:type x: int :rtype: int
python/069. Sqrt(x).py:5
MethodmySqrt
:type x: int :rtype: int
Algorithms/069. Sqrt(x)/Solution.py:5
MethodmySqrt
(int x)
Algorithms/069. Sqrt(x)/Solution.java:2
MethodmySqrt
(int x)
java/069. Sqrt(x).java:2
Methodnext
:rtype: int
python/341. Flatten Nested List Iterator.py:41
Methodnext
@return the next smallest number
Algorithms/173. Binary Search Tree Iterator/Solution.java:34
Methodnext
:rtype: int
Algorithms/341. Flatten Nested List Iterator/Solution.py:41
Methodnext
()
Algorithms/341. Flatten Nested List Iterator/Solution.java:29
Methodnext
@return the next smallest number
java/173. Binary Search Tree Iterator.java:34
Methodnext
()
java/341. Flatten Nested List Iterator.java:29
MethodnextPermutation
:type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead.
python/031. Next Permutation.py:4
MethodnextPermutation
:type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead.
Algorithms/031. Next Permutation/Solution.py:4
MethodnextPermutation
(int[] nums)
Algorithms/031. Next Permutation/Solution.java:2
MethodnextPermutation
(int[] nums)
java/031. Next Permutation.java:2
MethodnthUglyNumber
(int n)
Algorithms/264. Ugly Number II/Solution.java:2
MethodnthUglyNumber
(int n)
java/264. Ugly Number II.java:2
MethodnumDecodings
:type s: str :rtype: int
python/091. Decode Ways.py:4
MethodnumDecodings
:type s: str :rtype: int
Algorithms/091. Decode Ways/Solution.py:4
MethodnumDecodings
(String s)
Algorithms/091. Decode Ways/Solution.java:2
MethodnumDecodings
(String s)
java/091. Decode Ways.java:2
MethodnumIslands
:type grid: List[List[str]] :rtype: int
python/200. Number of Islands.py:7
MethodnumIslands
:type grid: List[List[str]] :rtype: int
Algorithms/200. Number of Islands/Solution.py:7
MethodnumIslands
(char[][] grid)
Algorithms/200. Number of Islands/Solution.java:2
MethodnumIslands
(char[][] grid)
java/200. Number of Islands.java:2
← previousnext →1,001–1,100 of 1,433, ranked by callers