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
Method
findMaxConsecutiveOnes
(int[] nums)
Java/485. Max_Consecutive_ones.java:2
Method
findMaximumXOR
(int[] nums)
Java/421.MaximumXORofTwoNumbersInAnArray.java:3
Method
findMedian
(self)
Python/295. FindMedianFromDataStream.py:31
Method
findMedian
C++/295. FindMedianfromDataStream.cpp:35
Method
findMedianSortedArrays
(self, nums1: List[int], nums2: List[int])
Python/4. MedianOfTwoSortedArrays.py:52
Method
findMedianSortedArrays
C++/4. MedianOfTwoSortedArrays.cpp:9
Method
findMedianSortedArrays
(int[] nums1, int[] nums2)
Java/4.MedianOfTwoSortedArrays.java:6
Method
findMin
C++/154. FindMinimumInRotatedSortedArrayII.cpp:12
Method
findMin
C++/153.FindMinimuminRotatedSortedArray.cpp:3
Method
findNumbers
C++/1295. Find Numbers with Even Number of Digits.cpp:8
Method
findNumbers
(int[] nums)
Java/1295. Find_Number_with_even.java:12
Method
findPairs
C++/532. K-diffPairsInAnArray.cpp:6
Method
findPath
C++/236. LowestCommonAncestorOfABinaryTree.cpp:14
Method
findPeakElement
finds the peak element in the array :param arr: List[int] :return: the peak element int
Python/162.FindPeakElement.py:5
Method
findPeakElement
C++/162.FindPeakElement.cpp:3
Method
findRelativeRanks
C++/506. Relative Ranks.cpp:16
Method
findRepeatedDnaSequences
C++/187. RepeatedDNASequences.cpp:47
Method
findRepeatedDnaSequences
(String s)
Java/187. RepeatedDnaSequences.java:28
Method
findSmallestSetOfVertices
C++/1557.MinimumNumberOfVerticesToReachAllNodes.cpp:9
Method
findTheDifference
C++/389. FindtheDifference.cpp:25
Method
findTilt
C++/563. Binary Tree Tilt.cpp:36
Method
findUnsortedSubarray
C++/581.ShortestUnsortedContinuousSubarray.cpp:3
Method
findWords
(self, words)
Python/500.KeyboardRow.py:14
Method
findWords
C++/500. KeyboardRow.cpp:12
Method
firstMissingPositive
(self, nums: List[int])
Python/41. FirstMissingPositive.py:37
Method
firstMissingPositive
(self, nums: List[int])
Python/41. firstMissingPositive.py:2
Method
firstMissingPositive
C++/41. FirstMissingPositive.cpp:3
Method
firstMissingPositive
(int[] A)
Java/41. First Missing Positive.java:8
Method
firstUniqChar
(self, s: str)
Python/387.FirstUniqueCharInString.py:5
Method
firstUniqChar
(String s)
Java/387.First Unique Character in a String.java:3
Method
flipAndInvertImage
C++/832. Flipping an Image.cpp:16
Method
floodFill
C++/733. FloodFill.cpp:29
Method
follow
Follower follows a followee. If the operation is invalid, it should be a no-op. */
C++/355. DesignTwitter.cpp:93
Method
fourSum
C++/18. FourSum.cpp:45
Method
fourSumCount
The goal is to find the count of all options where A[i] + B[j] + C[k] + D[l] = 0 We can now change this to: A[i] + B[j] = - C[k] - D[l] Which equals
Java/454.4SumII.java:25
Method
freqAlphabets
C++/1309.DecryptStringFromAlphabetToIntegerMapping.cpp:3
Method
frequencySort
C++/451. Sort Characters By Frequency.cpp:19
Method
frontBackSplit
C++/148. SortList.cpp:41
Method
fun
C++/1123. Lowest Common Ancestor of Deepest Leaves.cpp:14
Method
func
C++/179.Largest Number.cpp:5
Method
func
C++/124. Binary_Tree_Maximum.cpp:14
Method
func
Decodes your encoded data to tree.
C++/297. SerializeAndDeserializeBinaryTree.cpp:30
Method
gameOfLife
C++/289. GameOfLife.cpp:33
Method
generate
creates a two dimensional array holding a pascal triangle of the desired height :param num: int the height of the triangle
Python/118. PascalsTriangle.py:7
Method
generate
C++/118. PascalTriangle.cpp:11
Method
generate
(int numRows)
Java/118. PascalsTriangle.java:15
Method
generateMatrix
C++/59.SpiralMatrixII.cpp:3
Method
generateParenthesis
C++/22. GenerateParenthesis.cpp:41
Method
generateParenthesis
(int n)
Java/22. generatePara.java:24
Method
get
C++/706.DesignHashMap.cpp:78
Method
getAllElements
C++/1305. AllElementsinTwoBinarySearchTrees.cpp:27
Method
getAverageTime
C++/1396.DesignUndergroundSystem.cpp:32
Method
getConcatenation
C++/1929. Concatenation of Array.cpp:8
Method
getDecimalValue
C++/1290. Convert Binary Number in a Linked List to Integer.cpp:18
Method
getHint
C++/299. Bulls_and_Cows.cpp:22
Method
getMaximumGenerated
C++/1646. Get Maximum in Generated Array.cpp:15
Method
getMin
C++/155. Min Stack.cpp:55
Method
getNewsFeed
C++/355. DesignTwitter.cpp:51
Method
getRandom
Get a random element from the set. */
C++/380. Insert Delete GetRandom O(1).cpp:56
Method
getSmallestString
C++/1663.SmallestStringWithAGivenNumericValue.cpp:3
Method
getTargetCopy
C++/1379. FindaCorrespondingNodeofaBinaryTreeinaCloneofThatTree.cpp:73
Method
getTargetCopyUtil
C++/1379. FindaCorrespondingNodeofaBinaryTreeinaCloneofThatTree.cpp:57
Method
getTargetPath
C++/1379. FindaCorrespondingNodeofaBinaryTreeinaCloneofThatTree.cpp:28
Method
getValue
C++/1476. Subrectangle Queries.cpp:24
Method
get_angle
C++/1610. MaximumNumberOfVisiblePoints.cpp:59
Method
grayCode
C++/89. GrayCode.cpp:22
Method
groupAnagrams
(self, strs)
Python/49. GroupAnagrams.py:14
Method
hammingDistance
(self, x, y)
Python/461.HammingDistance.py:4
Method
hammingDistance
C++/461. HammingDistance.cpp:36
Function
hammingWeight
C++/191.NumberOf1Bits.cpp:3
Method
hasAlternatingBits
C++/693. BinaryNumberwithAlternatingBits.cpp:22
Method
hasCycle
C++/141. Linked List Cycle.cpp:37
Method
hasNext
C++/173.BinarySearchTreeIterator.cpp:79
Method
hasNext
C++/341. FlattenNestedListIterator.cpp:75
Method
hasNext
C++/284.PeekingIterator.cpp:62
Method
hasPathSum
C++/112. PathSum.cpp:44
Method
height
C++/559. MaximumDepthOfN-aryTree.cpp:27
Method
heightChecker
C++/1051. HeightChecker.cpp:6
Method
heightChecker
(int[] heights)
Java/1051. HeightChecker.java:3
Method
helper
C++/410.SplitArrayLargestSum.cpp:3
Method
helper
helper will take the input array, the index or the position of the element on which we need to take the decision and the result vector of vectors
C++/78. SubsetsOfAGivenArray.cpp:4
Method
helper
C++/639. DecodeWaysII.CPP:57
Method
helper
C++/22. GenerateParenthesis.cpp:26
Method
helper
C++/897.IncreasingOrderSearchTree.cpp:44
Method
helper
helper function for traversing over the tree nodes
C++/404.SumOfLeftLeaves.cpp:17
Method
helper
C++/105.ConstructBinaryTreefromPreorderandInorderTraversal.cpp:14
Method
helper_dfs
this function will now check the nodes adjacent to the current node(i): if its white, it will change to blue and if its already filled, it will check
C++/785.IsGraphBipartite.cpp:9
Method
helper_dfs
C++/399.EvaluateDivision.cpp:9
Method
histArea
C++/85. Maximal_Rectangle.cpp:3
Method
in_history
C++/202. HappyNumber.cpp:29
Method
increasingBST
C++/897.IncreasingOrderSearchTree.cpp:59
Method
increasingTriplet
C++/334. Increasing Triplet Subsequence.cpp:15
Method
init
C++/326. PowerOfThree.cpp:28
Method
inorder
implementing a partial inorder traversal and pushing the left child node in the stack
C++/173.BinarySearchTreeIterator.cpp:52
Method
inorder
This function will follow inorder traversal: 1. I will make a left call and check if it returned a non-zero value. 2. If there is a non-zero v
C++/230.KthSmallesElementInABST.cpp:26
Method
insert
Inserts a value to the set. Returns true if the set did not already contain the specified element. */
C++/380. Insert Delete GetRandom O(1).cpp:31
Method
insertIntoBST
C++/701. InsertIntoABinarySearchTree.cpp:15
Method
intToRoman
(self, num: int)
Python/12. Integer to Roman.py:7
Method
interpret
C++/1678.GoalParserInterpretation.cpp:3
Method
intersect
C++/350.IntersectionOfTwoArraysII.cpp:3
← previous
next →
301–400 of 846, ranked by callers