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
ExamRoom
C++/855. ExamRoom.cpp:55
Method
FreqStack
C++/895. MaximumFrequencyStack.cpp:19
Method
KthLargest
C++/703.KthLargestElementInAStream.cpp:6
Method
LRUCache
C++/146. LRUCache.cpp:48
Method
ListNode
C++/203. RemoveLinkedListElements.cpp:17
Method
ListNode
C++/143. Reorder List.cpp:22
Method
ListNode
C++/141. Linked List Cycle.cpp:28
Method
MedianFinder
initialize your data structure here. */
C++/295. FindMedianfromDataStream.cpp:15
Method
MinStack
C++/155. Min Stack.cpp:21
Method
MyHashMap
C++/706.DesignHashMap.cpp:68
Method
MyHashSet
C++/705.DesignHashSet.cpp:5
Method
NestedIterator
C++/341. FlattenNestedListIterator.cpp:67
Method
Node
Constructor
C++/1365. SmallestNumberThanCurrentNumber.cpp:28
Method
Node
C++/103. BinaryTreeZigzagLevelOrderTraversal.cpp:10
Method
NumArray
C++/303.RangeSumQueryImmutable.cpp:19
Method
NumArray
(int[] nums)
Java/307. Range Sum Query - Mutable.java:29
Method
ParkingSystem
C++/1603. Design Parking System.cpp:30
Method
PeekingIterator
C++/284.PeekingIterator.cpp:27
Method
RandomizedSet
Initialize your data structure here. */
C++/380. Insert Delete GetRandom O(1).cpp:26
Method
Solution
()
Java/20. ValidParentheses.java:47
Method
Stack
C++/225. Implement Stack Using Queues.cpp:19
Method
SubrectangleQueries
C++/1476. Subrectangle Queries.cpp:12
Method
Trienode
Trienode constructor in which end is initially false indicating node is NOT a leaf node
C++/720.LongestWordInDictionary.cpp:9
Method
Twitter
C++/355. DesignTwitter.cpp:27
Method
UndergroundSystem
C++/1396.DesignUndergroundSystem.cpp:9
Method
__init__
Initialize your data structure here.
Python/225.ImplementStackUsingQueues.py:7
Method
__init__
(self, val)
Python/208. ImplementTrie.py:3
Method
__init__
Initialize your data structure here.
Python/208. ImplementTrie.py:8
Method
__init__
Initialize your data structure here.
Python/295. FindMedianFromDataStream.py:13
Method
_isSymmetric
C++/101. SymmetricTree.cpp:51
Method
add
C++/705.DesignHashSet.cpp:10
Method
add
C++/703.KthLargestElementInAStream.cpp:22
Method
addBinary
C++/67. AddBinary.cpp:9
Method
addCar
C++/1603. Design Parking System.cpp:36
Method
addElementFromList
C++/341. FlattenNestedListIterator.cpp:57
Method
addNum
(self, num: int)
Python/295. FindMedianFromDataStream.py:19
Method
addNum
C++/295. FindMedianfromDataStream.cpp:19
Method
addTwoNumbers
(self, l1: ListNode, l2: ListNode)
Python/2. AddTwoNumbers.py:24
Method
addTwoNumbers
C++/445. Add Two Numbers II.cpp:41
Method
addTwoNumbers
C++/2. AddTwoNumbers.cpp:11
Method
addTwoNumbers
(ListNode l1, ListNode l2)
Java/2.Add Two Numbers.java:15
Method
allPathsSourceTarget
(int[][] graph)
Java/797. AllPathsFromSourceToTarget.java:45
Method
areAlmostEqual
C++/1790.CheckIfOneStringSwapCanMakeStringsEqual.cpp:3
Method
areConnected
C++/1627. Graph Connectivity With Threshold.cpp:31
Method
arrangeCoins
(self, n)
Python/441. ArrangingCoins.py:7
Method
arrayPairSum
C++/561. Array Partition I.cpp:4
Method
arraySign
C++/1822.SignOfTheProductOfAnArray.cpp:3
Method
asteroidCollision
C++/735. Asteroid Collision.cpp:35
Method
atmostK
Finds the substring with atmost K unique chars
C++/992. Subarrays with K Different Integers.cpp:12
Method
average
C++/1491.AverageSalaryExcludingTheMinimumAndMaximumSalary.cpp:3
Method
averageOfLevels
C++/637.AverageOfLevelsInBinaryTree.cpp:3
Method
backspaceCompare
C++/844. BackspaceStringCompare.cpp:23
Method
backtrack
using backtracking
C++/46. Permutations.cpp:13
Method
backtrack
using backtracking
C++/47. Permutations II.cpp:13
Method
balancedStringSplit
:type s: str :rtype: int
Python/1221. SplitAStringInBalancedStrings.py:25
Method
balancedStringSplit
C++/1221. SplitaStringInBalancedStrings.cpp:7
Function
bestTeamScore
C++/1626. Best Team With No Conflicts.cpp:11
Method
brokenCalc
C++/991.BrokenCalculator.cpp:3
Method
buddyStrings
C++/859. BuddyStrings.cpp:57
Method
buildTree
C++/105.ConstructBinaryTreefromPreorderandInorderTraversal.cpp:34
Method
bulbSwitch
C++/319. BulbSwitcher.cpp:13
Method
busyStudent
:type startTime: List[int] :type endTime: List[int] :type queryTime: int :rtype: int
Python/1450. NumberOfStudentsDoingHomeworkAtAGivenTime.py:23
Method
calPoints
C++/682.BaseballGame.cpp:3
Method
calcDiff
C++/1026. Maximum Difference Between Node and Ancestor.cpp:26
Method
calcEquation
C++/399.EvaluateDivision.cpp:43
Method
calcTilt
calculates the tilt recursively
C++/563. Binary Tree Tilt.cpp:28
Method
calc_min
C++/1170. CompareStringsByFrequencyOfTheSmallestCharacter.cpp:25
Method
calculate
Returns the computed value of the expression. >>>calculate("(1+(4+5+2)-3)+(6+8)") 23 >>>calculate("( 11 + ( 41 + 51
Python/224. BasicCalculator.py:81
Method
calculate
(self, s: str)
Python/227. BasicCalculatorII.py:58
Method
calculate
(String s)
Java/224.BasicCalculator.java:8
Method
camelMatch
C++/1023. CammelCaseMatching.cpp:13
Method
canCompleteCircuit
C++/134. GasStation.cpp:11
Method
canConstruct
C++/383. RansomNote.cpp:30
Method
canMakeArithmeticProgression
(self, arr: List[int])
Python/1502.CanMakeArithmeticProgressionFromSequence.py:3
Method
canMakeArithmeticProgression
C++/1502.CanMakeArithmeticProgressionFromSequence.cpp:3
Method
canPartition
(self, nums: List[int])
Python/416. PartitionEqualSubsetSum.py:34
Method
canPartition
C++/414.PartitionEqualSubsetSum.cpp:17
Method
canPlaceFlowers
C++/605. CanPlaceFlowers.cpp:24
Method
canReach
C++/1306. Jump Game III.cpp:34
Method
canReachHelper
C++/1306. Jump Game III.cpp:13
Method
canThreePartsEqualSum
(self, A: List[int])
Python/1013. PartitionArrayIntoThreePartsWithEqualSum.py:2
Method
candy
C++/135. Candy.cpp:28
Method
champagneTower
C++/799. Champagne Tower.cpp:16
Method
check
C++/461. HammingDistance.cpp:26
Method
check
C++/414.PartitionEqualSubsetSum.cpp:7
Method
check
C++/202. HappyNumber.cpp:28
Method
checkIfExist
(int[] arr)
Java/1346. CheckIfNandItsDoubleExist.java:3
Method
checkIn
C++/1396.DesignUndergroundSystem.cpp:13
Method
checkLetter
auxiliary method to check if a given char is a letter
C++/917. ReverseOnlyLetters.cpp:22
Method
checkOut
C++/1396.DesignUndergroundSystem.cpp:18
Method
checkPath
C++/113.PathSumII.cpp:18
Method
checkPossibility
C++/665. Non-decreasingArray.cpp:22
Method
checkRight
C++/199. BinaryTreeRightSideView.cpp:14
Method
checkStraightLine
(self, coordinates: List[List[int]])
Python/1232.CheckIfItIsAStraightLine.py:4
Method
checkStraightLine
C++/1232.CheckIfItIsAStraight Line.cpp:3
Method
checkTarget
I am traversing the whole binary tree and storing its node values into a vector 'v'. When we have all the values in our vector array, I start
C++/437.PathSumIII.cpp:18
Method
cherryPickup
Using Dynamic Programing
C++/1463. CherryPickup2.cpp:4
Method
closestToTarget
(int[] arr, int target)
Java/1521.FindAValueOfAMysteriousFunctionClosestToTarget.java:2
Method
cmp
C++/1029. TwoCityScheduling.cpp:16
Method
cmp
checking the no. of 1-bits in the successive numbers of the array for sorting them
C++/1356.SortIntegersByTheNumberOf1Bits.cpp:16
← previous
next →
101–200 of 846, ranked by callers