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
maxProfit
(int[] prices)
java/123. Best Time to Buy and Sell Stock III.java:2
Method
maxProfit
(int[] prices)
java/122. Best Time to Buy and Sell Stock II.java:2
Method
maxProfit
(int[] prices)
java/309. Best Time to Buy and Sell Stock with Cooldown.java:2
Method
maxProfit
(int[] prices)
java/121. Best Time to Buy and Sell Stock.java:2
Method
maxRotateFunction
(int[] A)
Algorithms/396. Rotate Function/Solution.java:2
Method
maxRotateFunction
(int[] A)
java/396. Rotate Function.java:2
Method
maxSlidingWindow
:type nums: List[int] :type k: int :rtype: List[int]
python/239. Sliding Window Maximum.py:4
Method
maxSlidingWindow
:type nums: List[int] :type k: int :rtype: List[int]
Algorithms/239. Sliding Window Maximum/Solution.py:4
Method
maxSlidingWindow
(int[] nums, int k)
Algorithms/239. Sliding Window Maximum/Solution.java:2
Method
maxSlidingWindow
(int[] nums, int k)
java/239. Sliding Window Maximum.java:2
Method
maxSubArray
:type nums: List[int] :rtype: int
python/053. Maximum Subarray.py:4
Method
maxSubArray
:type nums: List[int] :rtype: int
Algorithms/053. Maximum Subarray/Solution.py:4
Method
maxSubArray
(int[] nums)
Algorithms/053. Maximum Subarray/Solution.java:2
Method
maxSubArray
(int[] nums)
java/053. Maximum Subarray.java:2
Method
maxSumSubmatrix
(int[][] matrix, int k)
Algorithms/363. Max Sum of Rectangle No Larger Than K/Solution.java:2
Method
maxSumSubmatrix
(int[][] matrix, int k)
java/363. Max Sum of Rectangle No Larger Than K.java:2
Function
max_depth
@param {TreeNode} root @return {Integer}
Algorithms/104. Maximum Depth of Binary Tree/Solution.rb:12
Function
max_depth
@param {TreeNode} root @return {Integer}
ruby/104. Maximum Depth of Binary Tree.rb:12
Method
maximalSquare
(char[][] matrix)
Algorithms/221. Maximal Square/Solution.java:2
Method
maximalSquare
(char[][] matrix)
java/221. Maximal Square.java:2
Method
maximumGap
(int[] nums)
Algorithms/164. Maximum Gap/Solution.java:2
Method
maximumGap
(int[] nums)
java/164. Maximum Gap.java:2
Method
merge
: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
Method
merge
(List<Interval> intervals)
Algorithms/056. Merge Intervals/Solution.java:11
Method
merge
: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
Method
merge
(int[] nums1, int m, int[] nums2, int n)
Algorithms/088. Merge Sorted Array/Solution.java:2
Method
merge
(List<Interval> intervals)
java/056. Merge Intervals.java:11
Method
merge
(int[] nums1, int m, int[] nums2, int n)
java/088. Merge Sorted Array.java:2
Method
mergeKLists
:type lists: List[ListNode] :rtype: ListNode
python/023. Merge k Sorted Lists.py:9
Method
mergeKLists
:type lists: List[ListNode] :rtype: ListNode
Algorithms/023. Merge k Sorted Lists/Solution.py:9
Method
mergeKLists
(ListNode[] lists)
Algorithms/023. Merge k Sorted Lists/Solution.java:10
Method
mergeKLists
(ListNode[] lists)
java/023. Merge k Sorted Lists.java:10
Method
mergeTwoLists
:type l1: ListNode :type l2: ListNode :rtype: ListNode
python/021. Merge Two Sorted Lists.py:10
Method
mergeTwoLists
:type l1: ListNode :type l2: ListNode :rtype: ListNode
Algorithms/021. Merge Two Sorted Lists/Solution.py:10
Method
mergeTwoLists
(ListNode l1, ListNode l2)
Algorithms/021. Merge Two Sorted Lists/Solution.java:10
Method
mergeTwoLists
(ListNode l1, ListNode l2)
java/021. Merge Two Sorted Lists.java:10
Function
merge_k_lists
@param {ListNode[]} lists @return {ListNode}
Algorithms/023. Merge k Sorted Lists/Solution.rb:12
Function
merge_k_lists
@param {ListNode[]} lists @return {ListNode}
ruby/023. Merge k Sorted Lists.rb:12
Function
merge_two_lists
@param {ListNode} l1 @param {ListNode} l2 @return {ListNode}
Algorithms/021. Merge Two Sorted Lists/Solution.rb:13
Function
merge_two_lists
@param {ListNode} l1 @param {ListNode} l2 @return {ListNode}
ruby/021. Merge Two Sorted Lists.rb:13
Method
minDepth
:type root: TreeNode :rtype: int
python/111. Minimum Depth of Binary Tree.py:11
Method
minDepth
:type root: TreeNode :rtype: int
Algorithms/111. Minimum Depth of Binary Tree/Solution.py:11
Method
minDepth
(TreeNode root)
Algorithms/111. Minimum Depth of Binary Tree/Solution.java:11
Method
minDepth
(TreeNode root)
java/111. Minimum Depth of Binary Tree.java:11
Method
minDistance
:type word1: str :type word2: str :rtype: int
python/072. Edit Distance.py:4
Method
minDistance
:type word1: str :type word2: str :rtype: int
Algorithms/072. Edit Distance/Solution.py:4
Method
minDistance
(String word1, String word2)
Algorithms/072. Edit Distance/Solution.java:2
Method
minDistance
(String word1, String word2)
java/072. Edit Distance.java:2
Method
minPathSum
:type grid: List[List[int]] :rtype: int
python/064. Minimum Path Sum.py:4
Method
minPathSum
:type grid: List[List[int]] :rtype: int
Algorithms/064. Minimum Path Sum/Solution.py:4
Method
minPathSum
(int[][] grid)
Algorithms/064. Minimum Path Sum/Solution.java:2
Method
minPathSum
(int[][] grid)
java/064. Minimum Path Sum.java:2
Function
min_depth
@param {TreeNode} root @return {Integer}
Algorithms/111. Minimum Depth of Binary Tree/Solution.rb:12
Function
min_depth
@param {TreeNode} root @return {Integer}
ruby/111. Minimum Depth of Binary Tree.rb:12
Method
minimumTotal
:type triangle: List[List[int]] :rtype: int
python/120. Triangle.py:7
Method
minimumTotal
:type triangle: List[List[int]] :rtype: int
Algorithms/120. Triangle/Solution.py:7
Method
minimumTotal
(List<List<Integer>> triangle)
Algorithms/120. Triangle/Solution.java:2
Method
minimumTotal
(List<List<Integer>> triangle)
java/120. Triangle.java:2
Method
missingNumber
:type nums: List[int] :rtype: int
python/268. Missing Number.py:4
Method
missingNumber
:type nums: List[int] :rtype: int
Algorithms/268. Missing Number/Solution.py:4
Method
missingNumber
(int[] nums)
Algorithms/268. Missing Number/Solution.java:2
Method
missingNumber
(int[] nums)
java/268. Missing Number.java:2
Method
moveZeroes
:type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead.
python/283. Move Zeroes.py:4
Method
moveZeroes
:type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead.
Algorithms/283. Move Zeroes/Solution.py:4
Method
moveZeroes
(int[] nums)
Algorithms/283. Move Zeroes/Solution.java:2
Method
moveZeroes
(int[] nums)
java/283. Move Zeroes.java:2
Method
multiply
:type num1: str :type num2: str :rtype: str
python/043. Multiply Strings.py:4
Method
multiply
:type num1: str :type num2: str :rtype: str
Algorithms/043. Multiply Strings/Solution.py:4
Method
multiply
(String num1, String num2)
Algorithms/043. Multiply Strings/Solution.java:2
Method
multiply
(String num1, String num2)
java/043. Multiply Strings.java:2
Method
myAtoi
(String str)
Algorithms/008. String to Integer (atoi)/Solution.java:2
Method
myAtoi
(String str)
java/008. String to Integer (atoi).java:2
Method
myPow
:type x: float :type n: int :rtype: float
python/050. Pow(x, n).py:4
Method
myPow
:type x: float :type n: int :rtype: float
Algorithms/050. Pow(x, n)/Solution.py:4
Method
myPow
(double x, int n)
Algorithms/050. Pow(x, n)/Solution.java:2
Method
myPow
(double x, int n)
java/050. Pow(x, n).java:2
Method
mySqrt
:type x: int :rtype: int
python/069. Sqrt(x).py:5
Method
mySqrt
:type x: int :rtype: int
Algorithms/069. Sqrt(x)/Solution.py:5
Method
mySqrt
(int x)
Algorithms/069. Sqrt(x)/Solution.java:2
Method
mySqrt
(int x)
java/069. Sqrt(x).java:2
Method
next
:rtype: int
python/341. Flatten Nested List Iterator.py:41
Method
next
@return the next smallest number
Algorithms/173. Binary Search Tree Iterator/Solution.java:34
Method
next
:rtype: int
Algorithms/341. Flatten Nested List Iterator/Solution.py:41
Method
next
()
Algorithms/341. Flatten Nested List Iterator/Solution.java:29
Method
next
@return the next smallest number
java/173. Binary Search Tree Iterator.java:34
Method
next
()
java/341. Flatten Nested List Iterator.java:29
Method
nextPermutation
:type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead.
python/031. Next Permutation.py:4
Method
nextPermutation
:type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead.
Algorithms/031. Next Permutation/Solution.py:4
Method
nextPermutation
(int[] nums)
Algorithms/031. Next Permutation/Solution.java:2
Method
nextPermutation
(int[] nums)
java/031. Next Permutation.java:2
Method
nthUglyNumber
(int n)
Algorithms/264. Ugly Number II/Solution.java:2
Method
nthUglyNumber
(int n)
java/264. Ugly Number II.java:2
Method
numDecodings
:type s: str :rtype: int
python/091. Decode Ways.py:4
Method
numDecodings
:type s: str :rtype: int
Algorithms/091. Decode Ways/Solution.py:4
Method
numDecodings
(String s)
Algorithms/091. Decode Ways/Solution.java:2
Method
numDecodings
(String s)
java/091. Decode Ways.java:2
Method
numIslands
:type grid: List[List[str]] :rtype: int
python/200. Number of Islands.py:7
Method
numIslands
:type grid: List[List[str]] :rtype: int
Algorithms/200. Number of Islands/Solution.py:7
Method
numIslands
(char[][] grid)
Algorithms/200. Number of Islands/Solution.java:2
Method
numIslands
(char[][] grid)
java/200. Number of Islands.java:2
← previous
next →
1,001–1,100 of 1,433, ranked by callers