Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SHY-Corp/LeetCode-Solutions
/ functions
Functions
846 in github.com/SHY-Corp/LeetCode-Solutions
⨍
Functions
846
◇
Types & classes
583
Function
main
C++/15. 3Sum.cpp:50
Function
main
C++/51.NQueens.cpp:48
Function
main
C++/704. BinarySearch.cpp:48
Method
main
(String[] args)
Java/1053.topKFrequentElements.java:9
Method
main
(String[] args)
Java/151.ReverseWordsInAString.java:21
Method
main
(String[] args)
Java/Top_K_Frequent_Elements.java:9
Method
main
(String[] args)
Java/1103.Panagram_Check.java:6
Function
majorityElement
C++/169. MajorityElement.cpp:3
Method
majorityElement
(self, nums)
Python/169.MajorityNumber.py:3
Method
majorityElement
Function to print Majority Element */
C++/169. Majority_Element.cpp:50
Method
majorityElement
(int[] nums)
Java/229. MajorityElementII.java:7
Method
makeGood
C++/1544. MakeTheStringGreat.cpp:17
Method
markTree
C++/99.RecoverBinarySearchTree.cpp:16
Method
matchesPattern
C++/1023. CammelCaseMatching.cpp:21
Method
matrixReshape
C++/566.ReshapeTheMatrix.cpp:3
Method
matrix_spiral
:type matrix: list[list[]]
Python/1289.MatrixSpiral.py:10
Method
maxAncestorDiff
C++/1026. Maximum Difference Between Node and Ancestor.cpp:53
Method
maxArea
C++/11. ContainerWithMostWater.cpp:16
Method
maxCoins
C++/1561. MaximumNumberOfCoinsYouCanGet.cpp:39
Method
maxCoins
C++/312. BurstBalloons.cpp:38
Method
maxCrossArr
C++/53. Maximum Subarray.cpp:33
Method
maxDepth
(self, root: 'Node')
Python/559. MaximumDepthOfN-aryTree.py:11
Method
maxDepth
C++/559. MaximumDepthOfN-aryTree.cpp:42
Method
maxDepth
C++/104. MaximumDepthOfBinaryTree.cpp:18
Method
maxDepth
C++/1614. MaximumNestingDepthOfTheParentheses.cpp:19
Method
maxLoot
C++/337. House Robber III.cpp:30
Method
maxNumOfSubstrings
C++/1520.MaximumNumberOfNonOverlappingSubstrings.cpp:7
Method
maxNumberOfBalloons
(self, text)
Python/1189. MaximumNumberOfBalloons.py:5
Method
maxOperations
C++/1679.MaxNumberOfK-SumPairs.cpp:34
Method
maxPathSum
C++/124. Binary_Tree_Maximum.cpp:23
Method
maxPathSum
(TreeNode root)
Java/124.BinaryTreeMaxSumPath.java:44
Method
maxProduct
C++/1464. MaximumProductOfTwoElementsInAnArray.cpp:35
Method
maxProduct
C++/152. MaximumProductSubarray.cpp:17
Method
maxProfit
(self, prices)
Python/122.BestTimeToBuyAndSellStock-II.py:8
Method
maxProfit
C++/714. BestTimetoBuyandSellStockwithTransactionFee.cpp:12
Method
maxProfit
C++/121. BestTimetoBuyandSellStock.cpp:14
Method
maxProfit
(int[] prices)
Java/121. BestTimeToBuyAndSell.java:13
Method
maxProfit
(int[] prices)
Java/122. BestTimeToBuyAndSell2.java:14
Method
maxRotateFunction
C++/396. RotateFunction.cpp:20
Method
maxSlidingWindow
(self, nums: List[int], k: int)
Python/239. Sliding Window Maximum.py:63
Method
maxSlidingWindow
C++/239. SlidingWindowMaximum.cpp:16
Method
maxSubArr
C++/53. Maximum Subarray.cpp:55
Method
maxSubArray
C++/53. Maximum Subarray.cpp:75
Method
maxSumRangeQuery
C++/1589. MaximumSumObtainedOfAnyPermutation.cpp:30
Method
maximalRectangle
C++/85. Maximal_Rectangle.cpp:29
Method
maximalSquare
(self, matrix)
Python/221. MaximalSquare.py:2
Method
maximalSquare
C++/221. Maximal Square.cpp:18
Method
maximumAreaHistogram
Find the largest area of rectangle in the histogram :param heights: List[int] a list of integer numbers :return:
Python/84. maximumAreaHistogram.py:5
Method
maximumGap
C++/164. Maximum Gap.cpp:10
Method
maximumPopulation
1854. Maximum Population Year.cpp:9
Method
maximumWealth
C++/1672.RichestCustomerWealth.cpp:3
Method
merge
(self, nums1: List[int], m: int, nums2: List[int], n: int)
Python/88.MergeSortedArray.py:25
Method
merge
C++/56. MergeIntervals.cpp:30
Method
merge
C++/88. MergeSortedArray.cpp:15
Method
merge
(int[] nums1, int m, int[] nums2, int n)
Java/88. MergeSortedArrays.java:2
Method
mergeAlternately
C++/1768.MergeStringsAlternately.cpp:3
Method
mergeKLists
:type lists: List[ListNode] :rtype: ListNode
Python/23. MergeKSortedList.py:7
Method
mergeKLists
C++/23. Merge_k_Sorted_Lists.cpp:18
Method
mergeKLists
(ListNode[] lists)
Java/23. MergeKSortedLists.java:37
Method
mergeSort
C++/148. SortList.cpp:19
Method
mergeTrees
C++/617. MergeTwoBinaryTrees.cpp:14
Method
mergeTwoLists
(self, l1: ListNode, l2: ListNode)
Python/21. Merge Two Sorted Lists.py:20
Method
mergeTwoLists
(self, l1: ListNode, l2: ListNode)
Python/21. MergeTwoSortedLists.py:11
Method
mergeTwoLists
(l1, l2)
Python/23. MergeKSortedList.py:12
Method
mergeTwoLists
C++/23. Merge_k_Sorted_Lists.cpp:29
Method
mergeTwoLists
C++/21. MergeTwoSortedLists.cpp:23
Method
middleNode
C++/876. Middle of the Linked List.cpp:14
Method
minAddToMakeValid
C++/921. MinimumAddToMakeParenthesesValid.cpp:11
Method
minCostClimbingStairs
C++/746. MinCostClimbingStairs.cpp:14
Method
minCostToMoveChips
C++/1217. Minimum Cost to Move Chips to The Same Position.cpp:16
Method
minDeletionSize
C++/944. DeleteColumnsToMakeSorted.cpp:15
Method
minDeletions
C++/1647. Minimum Deletions to Make Character Frequencies Unique.cpp:16
Method
minDepth
C++/111.MinimumDepthOfBinaryTree.cpp:8
Method
minDistance
C++/72. Edit_Distance.cpp:25
Method
minDominoRotations
(self, a: List[int], b: List[int])
Python/1007. MinimumDominoRotationsForEqualRow.py:23
Method
minDominoRotations
C++/1007.MinimumDominoRotationsForEqualRow.cpp:3
Method
minEatingSpeed
C++/875. KokoEatingBananas.cpp:23
Method
minMoves
C++/2139.MinimumMovesToReachTargetScore.cpp:3
Method
minOperations
C++/1551. MinimumOperationsToMakeArrayEqual.cpp:43
Method
minPathSum
(self, grid: List[List[int]])
Python/64. MinPathSum.py:2
Method
minRefuelStops
C++/871. MinimumNumberOfRefuelingStops.cpp:20
Method
minRemoveToMakeValid
C++/1249.MinimumRemoveToMakeValidParentheses.cpp:3
Method
minSubsequence
C++/1403. Minimum Subsequence in Non-Increasing Order.cpp:8
Method
minSwapsCouples
C++/765. Couples Holding Hands.cpp:33
Method
minTimeToVisitAllPoints
C++/1266. Minimum Time Visiting All Points.cpp:21
Method
mincostTickets
(int[] days, int[] costs)
Java/983. MinimumCostForTickets.java:2
Method
mirrorReflection
C++/858. Mirror Reflection.cpp:17
Method
missingNumber
C++/268. MissingNumber.cpp:18
Method
moveZeroes
C++/283. MoveZeroes.cpp:34
Method
moveZeroes
(int[] nums)
Java/283. MoveZeroes.java:20
Method
multiply
(self, num1: str, num2: str)
Python/43. MultiplyStrings.py:36
Method
myAtoi
C++/8. StringToInteger(atoi).cpp:15
Method
myPow
C++/50. Pow-function.cpp:12
Method
myPow
(double x, int n)
Java/50. Pow(x, n).java:3
Method
nearestValidPoint
C++/1779.FindNearestPointThat HasTheSame XorYCoordinate.cpp:3
Method
neighbour
this function returns 1 if the indices (i,j) have an alive neighbour or else it returns 0
C++/289. GameOfLife.cpp:88
Method
next
C++/173.BinarySearchTreeIterator.cpp:67
Method
next
C++/341. FlattenNestedListIterator.cpp:71
Method
next
hasNext() and next() should behave the same as in the Iterator interface. Override them if needed.
C++/284.PeekingIterator.cpp:47
Method
nextGreaterElement
C++/496.NextGreaterElementI.cpp:3
← previous
next →
501–600 of 846, ranked by callers