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
runningSum
(int[] nums)
Java/1480.RunningSumof1DArray.java:3
Method
scoreOfParentheses
C++/856. Score of Parentheses.cpp:11
Method
scramble
C++/87. ScrambleString.cpp:6
Method
search
(self, nums, target)
Python/704. BinarySearch.py:6
Method
search
(self, nums, target)
Python/33. Search in Rotated Sorted Array.py:68
Method
search
Returns if the word is in the trie.
Python/208. ImplementTrie.py:27
Method
search
C++/81. Search in Rotated Sorted Array II.cpp:13
Method
search
C++/33.SearchInRotatedSortedArray.cpp:3
Method
search
search for the dad of a given node
C++/1627. Graph Connectivity With Threshold.cpp:19
Method
search
Iterative function to search a string in a trie. It returns true if the string is found in the Trie, else it returns false
C++/720.LongestWordInDictionary.cpp:75
Method
searchBST
C++/700.SearchInABinarySearchTree.cpp:15
Method
searchInsert
(self, nums: List[int], target: int)
Python/35. SearchInsertPosition.py:5
Method
searchInsert
C++/35. SearchInsertPosition.cpp:9
Method
searchInsert
(int[] nums, int target)
Java/35.SearchInsertPosition.java:45
Method
searchMatrix
C++/240.SearchA2DMatrixII.cpp:3
Method
searchMatrix
C++/74. SearchA2DMatrix.cpp:21
Method
searchRange
C++/34. FindFirstAndLastPositionOfElementinSortedArray.cpp:12
Method
seat
C++/855. ExamRoom.cpp:59
Method
selfDividingNumbers
(self, left: int, right: int)
Python/728. SelfDividingNumbers.py:3
Method
separate
C++/202. HappyNumber.cpp:18
Method
serialize
Encodes a tree to a single string
C++/297. SerializeAndDeserializeBinaryTree.cpp:19
Method
setZeroes
(self, matrix: List[List[int]])
Python/73. SetMatrixZeroes.py:7
Method
setZeroes
C++/73. SetMatrixZeroes.cpp:7
Method
shiftGrid
C++/1260.Shift2DGrid.cpp:3
Method
shipWithinDays
C++/1011. Capacity To Ship Packages Within D Days.cpp:18
Method
shuffle
(self, nums: List[int], n: int)
Python/1470. ShuffleTheArray.py:6
Method
shuffle
C++/1470. ShuffleTheArray.cpp:38
Method
simplifyPath
C++/71.SimplifyPath.cpp:3
Method
singleNonDuplicate
C++/540. SingleElementInASortedArray.cpp:8
Method
singleNonDuplicate
(int[] nums)
Java/540. SingleElementInASortedArray.java:20
Method
singleNumber
(self, nums)
Python/137. SingleNumberII.py:3
Method
singleNumber
(self, nums)
Python/136.SingleNumber.py:7
Method
singleNumber
C++/136. Single Number.cpp:3
Method
slope
returns the slope of 2 points
C++/593. Valid Square.cpp:22
Method
slowestKey
C++/1629. SlowestKey.cpp:24
Method
smallestDivisor
C++/1283. Find the Smallest Divisor Given a Threshold.cpp:16
Method
smallestRepunitDivByK
C++/1015. Smallest Integer Divisible by K.cpp:14
Method
smallestStringWithSwaps
C++/1202.SmallestStringWithSwaps.cpp:28
Method
solve
C++/1406. StoneGameIII.cpp:32
Method
solve
C++/312. BurstBalloons.cpp:28
Method
solve
C++/1520.MaximumNumberOfNonOverlappingSubstrings.cpp:24
Method
solve
C++/1563. StoneGameV.cpp:23
Method
solveNQueens
(self, n)
Python/51. N-Queens.py:37
Method
solveSudoku
(self, board: List[List[str]])
Python/37. SudokuSolver.py:44
Method
sortArrayByParity
(self, A: List[int])
Python/905.SortArrayByParity.py:2
Method
sortArrayByParity
C++/905. SortArrayByParity.cpp:6
Method
sortArrayByParityII
C++/922. SortArrayByParityII.cpp:15
Method
sortByBits
C++/1356.SortIntegersByTheNumberOf1Bits.cpp:29
Method
sortColors
C++/75.SortColors.cpp:9
Method
sortColors
(int[] nums)
Java/75.SortColors.java:6
Method
sortList
(self, head)
Python/148. SortList.py:38
Method
sortList
C++/148. SortList.cpp:86
Method
sortcol
C++/506. Relative Ranks.cpp:13
Method
sortedArrayToBST
C++/108. ConvertSortedArraytoBinarySearchTree.cpp:43
Method
sortedMerge
C++/148. SortList.cpp:64
Method
sortedSquares
(self, array: List[int])
Python/977.SquaresOfASortedArray.py:9
Method
sortedSquares
C++/977. SquaresOfASortedArray.cpp:13
Method
specialArray
C++/1608. Special Array With X Elements Greater Than or Equal X.cpp:9
Method
spiralOrder
C++/54. SpiralMatrix.cpp:17
Method
splitArray
C++/410.SplitArrayLargestSum.cpp:24
Method
splitArraySameAverage
C++/805. SplitArrayWithSameAverage.cpp:35
Method
startwith
C++/139. WordBreak.cpp:20
Method
stoneGameIII
C++/1406. StoneGameIII.cpp:43
Method
stoneGameV
C++/1563. StoneGameV.cpp:39
Method
strStr
(self, haystack: str, needle: str)
Python/28. Implement strStr().py:9
Method
strStr
C++/28. Implement strStr().cpp:13
Method
stringMatching
C++/1408. StringMatchingInAnArray.cpp:20
Method
subarraySum
(int[] nums, int k)
Java/560. Subarray Sum Equals K.java:14
Method
subarraysWithKDistinct
C++/992. Subarrays with K Different Integers.cpp:42
Method
subsets
C++/78. SubsetsOfAGivenArray.cpp:26
Method
subsets
(int[] nums)
Java/78. Subsets.java:23
Method
subtractProductAndSum
C++/1281.SubtractTheProductAndSumOfDigitsOfAnInteger.cpp:3
Method
sumEvenAfterQueries
(self, nums, queries)
Python/985. Sum of Even Numbers After Queries.py:12
Method
sumEvenGrandparent
(TreeNode root)
Java/1315. Sum of Nodes with Even-Valued Grandparent.java:33
Method
sumFourDivisors
(self, nums)
Python/1390. FourDivisors.py:9
Method
sumNumbers
C++/129. Sum Root to Leaf Numbers.cpp:65
Method
sumOddLengthSubarrays
(self, arr: List[int])
Python/1588. SumofAllOddLengthSubarrays.py:7
Method
sumOddLengthSubarrays
C++/1588. SumofAllOddLengthSubarrays.cpp:20
Method
sumOfDistancesInTree
C++/834. Sum of Distances in Tree.cpp:34
Method
sumOfLeftLeaves
C++/404.SumOfLeftLeaves.cpp:34
Method
sumRange
So now, the range (i,j) for which we are computing the sum, we will pick the sum till last element, i.e. sum(j+1) and subtract the sum till ith
C++/303.RangeSumQueryImmutable.cpp:35
Method
sumRange
(int i, int j)
Java/307. Range Sum Query - Mutable.java:79
Method
sumRootToLeaf
C++/1022. SumofRootToLeafBinaryNumbers.cpp:45
Method
sumToN
C++/216.CombinationSumIII.cpp:27
Method
sumZero
C++/1304. FindNUniqueIntegersSumUpToZero.cpp:17
Method
superEggDrop
C++/887. SuperEggDrop.cpp:66
Method
swapNodes
C++/1721.SwappingNodesInALinkedList.cpp:13
Method
swapPairs
(self, head: ListNode)
Python/24. Swap Nodes in Pairs.py:19
Method
swapPairs
C++/24. Swap_Nodes_In_Pairs.cpp:23
Method
targetArray
C++/40.CombinationSumII.cpp:20
Method
targetsum
C++/39. Combination Sum.cpp:37
Method
thirdMax
(int[] nums)
Java/414.ThirdMaximumNumber.java:3
Method
threeEqualParts
C++/927. ThreeEqualParts.cpp:5
Method
threeSum
(int[] nums)
Java/15.3 Sum.java:27
Method
threeSumClosest
(self, nums, target)
Python/16. 3SumClosest.py:11
Method
threeSumMulti
C++/923.3SumWithMultiplicity.cpp:3
Function
three_sum
(nums: List[int])
Python/15. 3sum.py:11
Method
tinyURL
helper function to convert a url to its tiny form
C++/535.EncodeAndDecodeTinyURL.cpp:10
Method
toHex
C++/405. ConvertNumberToHexadecimal.cpp:67
Method
top
Get the top element.
Python/225.ImplementStackUsingQueues.py:29
← previous
next →
701–800 of 846, ranked by callers