MCPcopy Create free account

hub / github.com/SHY-Corp/LeetCode-Solutions / functions

Functions846 in github.com/SHY-Corp/LeetCode-Solutions

Functionmain
C++/15. 3Sum.cpp:50
Functionmain
C++/51.NQueens.cpp:48
Functionmain
C++/704. BinarySearch.cpp:48
Methodmain
(String[] args)
Java/1053.topKFrequentElements.java:9
Methodmain
(String[] args)
Java/151.ReverseWordsInAString.java:21
Methodmain
(String[] args)
Java/Top_K_Frequent_Elements.java:9
Methodmain
(String[] args)
Java/1103.Panagram_Check.java:6
FunctionmajorityElement
C++/169. MajorityElement.cpp:3
MethodmajorityElement
(self, nums)
Python/169.MajorityNumber.py:3
MethodmajorityElement
Function to print Majority Element */
C++/169. Majority_Element.cpp:50
MethodmajorityElement
(int[] nums)
Java/229. MajorityElementII.java:7
MethodmakeGood
C++/1544. MakeTheStringGreat.cpp:17
MethodmarkTree
C++/99.RecoverBinarySearchTree.cpp:16
MethodmatchesPattern
C++/1023. CammelCaseMatching.cpp:21
MethodmatrixReshape
C++/566.ReshapeTheMatrix.cpp:3
Methodmatrix_spiral
:type matrix: list[list[]]
Python/1289.MatrixSpiral.py:10
MethodmaxAncestorDiff
C++/1026. Maximum Difference Between Node and Ancestor.cpp:53
MethodmaxArea
C++/11. ContainerWithMostWater.cpp:16
MethodmaxCoins
C++/1561. MaximumNumberOfCoinsYouCanGet.cpp:39
MethodmaxCoins
C++/312. BurstBalloons.cpp:38
MethodmaxCrossArr
C++/53. Maximum Subarray.cpp:33
MethodmaxDepth
(self, root: 'Node')
Python/559. MaximumDepthOfN-aryTree.py:11
MethodmaxDepth
C++/559. MaximumDepthOfN-aryTree.cpp:42
MethodmaxDepth
C++/104. MaximumDepthOfBinaryTree.cpp:18
MethodmaxDepth
C++/1614. MaximumNestingDepthOfTheParentheses.cpp:19
MethodmaxLoot
C++/337. House Robber III.cpp:30
MethodmaxNumOfSubstrings
C++/1520.MaximumNumberOfNonOverlappingSubstrings.cpp:7
MethodmaxNumberOfBalloons
(self, text)
Python/1189. MaximumNumberOfBalloons.py:5
MethodmaxOperations
C++/1679.MaxNumberOfK-SumPairs.cpp:34
MethodmaxPathSum
C++/124. Binary_Tree_Maximum.cpp:23
MethodmaxPathSum
(TreeNode root)
Java/124.BinaryTreeMaxSumPath.java:44
MethodmaxProduct
C++/1464. MaximumProductOfTwoElementsInAnArray.cpp:35
MethodmaxProduct
C++/152. MaximumProductSubarray.cpp:17
MethodmaxProfit
(self, prices)
Python/122.BestTimeToBuyAndSellStock-II.py:8
MethodmaxProfit
C++/714. BestTimetoBuyandSellStockwithTransactionFee.cpp:12
MethodmaxProfit
C++/121. BestTimetoBuyandSellStock.cpp:14
MethodmaxProfit
(int[] prices)
Java/121. BestTimeToBuyAndSell.java:13
MethodmaxProfit
(int[] prices)
Java/122. BestTimeToBuyAndSell2.java:14
MethodmaxRotateFunction
C++/396. RotateFunction.cpp:20
MethodmaxSlidingWindow
(self, nums: List[int], k: int)
Python/239. Sliding Window Maximum.py:63
MethodmaxSlidingWindow
C++/239. SlidingWindowMaximum.cpp:16
MethodmaxSubArr
C++/53. Maximum Subarray.cpp:55
MethodmaxSubArray
C++/53. Maximum Subarray.cpp:75
MethodmaxSumRangeQuery
C++/1589. MaximumSumObtainedOfAnyPermutation.cpp:30
MethodmaximalRectangle
C++/85. Maximal_Rectangle.cpp:29
MethodmaximalSquare
(self, matrix)
Python/221. MaximalSquare.py:2
MethodmaximalSquare
C++/221. Maximal Square.cpp:18
MethodmaximumAreaHistogram
Find the largest area of rectangle in the histogram :param heights: List[int] a list of integer numbers :return:
Python/84. maximumAreaHistogram.py:5
MethodmaximumGap
C++/164. Maximum Gap.cpp:10
MethodmaximumPopulation
1854. Maximum Population Year.cpp:9
MethodmaximumWealth
C++/1672.RichestCustomerWealth.cpp:3
Methodmerge
(self, nums1: List[int], m: int, nums2: List[int], n: int)
Python/88.MergeSortedArray.py:25
Methodmerge
C++/56. MergeIntervals.cpp:30
Methodmerge
C++/88. MergeSortedArray.cpp:15
Methodmerge
(int[] nums1, int m, int[] nums2, int n)
Java/88. MergeSortedArrays.java:2
MethodmergeAlternately
C++/1768.MergeStringsAlternately.cpp:3
MethodmergeKLists
:type lists: List[ListNode] :rtype: ListNode
Python/23. MergeKSortedList.py:7
MethodmergeKLists
C++/23. Merge_k_Sorted_Lists.cpp:18
MethodmergeKLists
(ListNode[] lists)
Java/23. MergeKSortedLists.java:37
MethodmergeSort
C++/148. SortList.cpp:19
MethodmergeTrees
C++/617. MergeTwoBinaryTrees.cpp:14
MethodmergeTwoLists
(self, l1: ListNode, l2: ListNode)
Python/21. Merge Two Sorted Lists.py:20
MethodmergeTwoLists
(self, l1: ListNode, l2: ListNode)
Python/21. MergeTwoSortedLists.py:11
MethodmergeTwoLists
(l1, l2)
Python/23. MergeKSortedList.py:12
MethodmergeTwoLists
C++/23. Merge_k_Sorted_Lists.cpp:29
MethodmergeTwoLists
C++/21. MergeTwoSortedLists.cpp:23
MethodmiddleNode
C++/876. Middle of the Linked List.cpp:14
MethodminAddToMakeValid
C++/921. MinimumAddToMakeParenthesesValid.cpp:11
MethodminCostClimbingStairs
C++/746. MinCostClimbingStairs.cpp:14
MethodminCostToMoveChips
C++/1217. Minimum Cost to Move Chips to The Same Position.cpp:16
MethodminDeletionSize
C++/944. DeleteColumnsToMakeSorted.cpp:15
MethodminDeletions
C++/1647. Minimum Deletions to Make Character Frequencies Unique.cpp:16
MethodminDepth
C++/111.MinimumDepthOfBinaryTree.cpp:8
MethodminDistance
C++/72. Edit_Distance.cpp:25
MethodminDominoRotations
(self, a: List[int], b: List[int])
Python/1007. MinimumDominoRotationsForEqualRow.py:23
MethodminDominoRotations
C++/1007.MinimumDominoRotationsForEqualRow.cpp:3
MethodminEatingSpeed
C++/875. KokoEatingBananas.cpp:23
MethodminMoves
C++/2139.MinimumMovesToReachTargetScore.cpp:3
MethodminOperations
C++/1551. MinimumOperationsToMakeArrayEqual.cpp:43
MethodminPathSum
(self, grid: List[List[int]])
Python/64. MinPathSum.py:2
MethodminRefuelStops
C++/871. MinimumNumberOfRefuelingStops.cpp:20
MethodminRemoveToMakeValid
C++/1249.MinimumRemoveToMakeValidParentheses.cpp:3
MethodminSubsequence
C++/1403. Minimum Subsequence in Non-Increasing Order.cpp:8
MethodminSwapsCouples
C++/765. Couples Holding Hands.cpp:33
MethodminTimeToVisitAllPoints
C++/1266. Minimum Time Visiting All Points.cpp:21
MethodmincostTickets
(int[] days, int[] costs)
Java/983. MinimumCostForTickets.java:2
MethodmirrorReflection
C++/858. Mirror Reflection.cpp:17
MethodmissingNumber
C++/268. MissingNumber.cpp:18
MethodmoveZeroes
C++/283. MoveZeroes.cpp:34
MethodmoveZeroes
(int[] nums)
Java/283. MoveZeroes.java:20
Methodmultiply
(self, num1: str, num2: str)
Python/43. MultiplyStrings.py:36
MethodmyAtoi
C++/8. StringToInteger(atoi).cpp:15
MethodmyPow
C++/50. Pow-function.cpp:12
MethodmyPow
(double x, int n)
Java/50. Pow(x, n).java:3
MethodnearestValidPoint
C++/1779.FindNearestPointThat HasTheSame XorYCoordinate.cpp:3
Methodneighbour
this function returns 1 if the indices (i,j) have an alive neighbour or else it returns 0
C++/289. GameOfLife.cpp:88
Methodnext
C++/173.BinarySearchTreeIterator.cpp:67
Methodnext
C++/341. FlattenNestedListIterator.cpp:71
Methodnext
hasNext() and next() should behave the same as in the Iterator interface. Override them if needed.
C++/284.PeekingIterator.cpp:47
MethodnextGreaterElement
C++/496.NextGreaterElementI.cpp:3
← previousnext →501–600 of 846, ranked by callers