Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MAZHARMIK/Interview_DS_Algo
/ functions
Functions
3,557 in github.com/MAZHARMIK/Interview_DS_Algo
⨍
Functions
3,557
◇
Types & classes
1,501
Method
sumOfLeftLeaves
Tree/Easy/Sum of Left Leaves.cpp:30
Method
sumOfPowers
Mathematical/Techfest and the Queue.cpp:30
Method
sumPrefixScores
Trie/Sum of Prefix Scores of Strings.cpp:59
Function
sumRange
Segment Tree/Range Sum Query - Mutable.cpp:186
Method
sumRange
Mathematical/Square Root Decomposition/Range Sum Query - Mutable.cpp:43
Method
sumRange
Segment Tree/Range Sum Query - Mutable.cpp:28
Method
sumRootToLeaf
Tree/Easy/Sum of Root To Leaf Binary Numbers.cpp:28
Function
sumSubarrayMins
Stack/Sum of Subarray Minimums.cpp:199
Method
sumSubarrayMins
Stack/Sum of Subarray Minimums.cpp:15
Function
sumZero
Arrays/Leetcode Easy/Find N Unique Integers Sum up to Zero.cpp:84
Method
sumZero
Arrays/Leetcode Easy/Find N Unique Integers Sum up to Zero.cpp:14
Method
summaryRanges
Arrays/Summary Ranges.cpp:9
Method
superEggDrop
DP/Super Egg Drop.cpp:153
Method
superpalindromesInRange
Mathematical/Super_Palindromes.cpp:27
Method
survivedRobotsHealths
Stack/Robot Collisions.cpp:15
Method
swap
strings/Construct Smallest Number From DI String.cpp:124
Method
swap
Sliding Window/Permutation in String.cpp:171
Method
swapNodes
Linked List/Swapping Nodes in a Linked List.cpp:21
Method
swapPairs
Linked List/Swap Nodes in Pairs.cpp:9
Function
swimInWater
Graph/Swim in Rising Water.cpp:182
Method
swimInWater
Graph/Swim in Rising Water.cpp:45
Function
takeCharacters
Sliding Window/Take K of Each Character From Left and Right.cpp:156
Method
takeCharacters
Sliding Window/Take K of Each Character From Left and Right.cpp:39
Method
tallestBillboard
DP/Tallest Billboard.cpp:31
Function
threeConsecutiveOdds
Arrays/Leetcode Easy/Three Consecutive Odds.cpp:72
Method
threeConsecutiveOdds
Arrays/Leetcode Easy/Three Consecutive Odds.cpp:14
Method
threeEqualParts
Arrays/Three Equal Parts.cpp:8
Method
threeSum
Arrays/4Sum(kSum).cpp:31
Method
threeSum
Arrays/Two Pointer/3Sum.cpp:33
Method
threeSumClosest
Arrays/Two Pointer/3Sum Closest.cpp:9
Function
timeRequiredToBuy
Arrays/Leetcode Easy/Time Needed to Buy Tickets.cpp:135
Method
timeRequiredToBuy
Arrays/Leetcode Easy/Time Needed to Buy Tickets.cpp:14
Method
timeRequiredToBuy
Arrays/Leetcode Easy/Time Needed to Buy Tickets.cpp:104
Method
timeRequiredToBuy
Arrays/Leetcode Easy/Time Needed to Buy Tickets.cpp:163
Method
toLower
HashMap/Vowel Spellchecker.cpp:19
Method
toh
avoid space at the starting of the string in "move disk....."
Recursion/Tower of Hanoi.cpp:16
Method
toh
Recursion/Tower of Hanoi.cpp:40
Method
top
Get the top element. */
Design/Implement Stack using Queues.cpp:34
Method
topKFrequent
Heap/Top K Frequent Words.cpp:11
Method
topKFrequent
Heap/Top K Frequent Elements.cpp:12
Method
topoSort
Function to return list containing vertices in Topological order.
Graph/Topological Sorting/Topological Sort (DFS).cpp:29
Method
topoSort
Graph/Topological Sorting/Build a Matrix With Conditions.cpp:16
Method
topoSort
Function to return list containing vertices in Topological order.
Graph/Topological Sorting/Topological Sort (BFS-Kahn's Algorithm).cpp:19
Method
topologicalSortBFS
Graph/Topological Sorting/Parallel Courses.cpp:39
Method
topologicalSortCheck
Using Kahn's algorithm
Graph/Topological Sorting/Course Schedule II.cpp:12
Method
topologicalSortCheck
Graph/Topological Sorting/Course Schedule.cpp:13
Method
totalCost
Heap/Total Cost to Hire K Workers.cpp:10
Method
totalFruit
Sliding Window/Fruit Into Baskets.cpp:15
Function
totalMoney
Mathematical/Calculate Money in Leetcode Bank.cpp:67
Function
totalMoney
Mathematical/Leetcode Easy/Calculate Money in Leetcode Bank.cpp:122
Method
totalMoney
Mathematical/Calculate Money in Leetcode Bank.cpp:13
Method
totalMoney
Mathematical/Leetcode Easy/Calculate Money in Leetcode Bank.cpp:15
Method
totalNQueens
Backtracking/N-Queens_II.cpp:44
Method
totalOnes
Sliding Window/Minimum Swaps to Group All 1s Together.cpp:34
Method
totalWaviness
Mathematical/Total Waviness of Numbers in Range I.cpp:33
Method
totalWaviness
DP/Digit DP/Total Waviness of Numbers in Range II.cpp:86
Method
transfer
Design/Simple Bank System.cpp:23
Method
transpose
Arrays/Transpose Matrix.cpp:14
Function
trap
Arrays/Trapping Rain Water (without stack).cpp:68
Function
trap
Stack/Trapping Rain Water (using stack).cpp:52
Method
trap
Arrays/Trapping Rain Water (without stack).cpp:30
Method
trap
Stack/Trapping Rain Water (using stack).cpp:14
Method
trapRainWater
Heap/Trapping Rain Water II.cpp:17
Method
traverseNaryTree
Tree/N-Ary Tree/N-ary_Tree_Preorder_Traversal.cpp:28
Method
tree2str
Recursion/Construct String from Binary Tree.cpp:12
Method
treeDiameter
Graph/BFS_DFS/Tree Diameter.cpp:22
Method
treeQueries
Tree/Height of Binary Tree After Subtree Removal Queries.cpp:38
Function
triangleNumber
Arrays/Two Pointer/Valid Triangle Number.cpp:160
Method
triangleNumber
Arrays/Two Pointer/Valid Triangle Number.cpp:15
Method
triangleType
Arrays/Leetcode Easy/Type of Triangle.cpp:14
Function
triangularSum
Arrays/Find Triangular Sum of an Array.cpp:73
Method
triangularSum
Arrays/Find Triangular Sum of an Array.cpp:15
Function
tribonacci
DP/N-th Tribonacci Number.cpp:111
Method
tribonacci
DP/N-th Tribonacci Number.cpp:27
Method
trimBST
Tree/BST/Trim a Binary Search Tree.cpp:9
Function
tugOfWar
Backtracking/Tug_Of_War.cpp:54
Function
tupleSameProduct
Arrays/Tuple with Same Product.cpp:192
Method
tupleSameProduct
Arrays/Tuple with Same Product.cpp:15
Method
twoCitySchedCost
Greedy/Two_City_Scheduling.cpp:9
Method
twoEditWords
strings/Words Within Two Edits of Dictionary.cpp:15
Method
twoSum
Arrays/Two Sum.cpp:13
Method
twoSum
Arrays/4Sum(kSum).cpp:12
Method
twoSum
Arrays/Two Pointer/Two Sum II - Input array is sorted.cpp:9
Method
twoSum
Arrays/Two Pointer/3Sum.cpp:15
Method
union
Graph/Disjoint Set/Most Stones Removed with Same Row or Column.cpp:86
Method
union
Graph/Disjoint Set/Minimum Cost Walk in Weighted Graph.cpp:132
Method
union
Graph/Disjoint Set/Validate Binary Tree Nodes.cpp:79
Method
union
Graph/Disjoint Set/Minimize Hamming Distance After Swap Operations.cpp:103
Function
unionSet
Graph/Disjoint Set/Disjoint set (Union-Find).cpp:15
Function
uniqueOccurrences
HashMap/Unique Number of Occurrences.cpp:121
Method
uniqueOccurrences
HashMap/Unique Number of Occurrences.cpp:13
Function
uniquePaths
DP/DP on Grids/Unique Paths.cpp:34
Method
uniquePaths
source = [0][0] Dest = [0][0]
DP/DP on Grids/Unique Paths.cpp:47
Method
uniquePathsIII
Backtracking/Unique Paths III.cpp:36
Function
uniquePathsWithObstacles
DP/DP on Grids/Unique Paths II.cpp:121
Method
uniquePathsWithObstacles
DP/DP on Grids/Unique Paths II.cpp:45
Function
uniquePerms
Backtracking/All Unique Permutations of an array.cpp:163
Method
uniquePerms
Backtracking/All Unique Permutations of an array.cpp:46
Method
unlock
Design/Operations on Tree.cpp:34
Method
unlockDescendents
Design/Operations on Tree.cpp:63
← previous
next →
3,401–3,500 of 3,557, ranked by callers