MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

MethodsumOfLeftLeaves
Tree/Easy/Sum of Left Leaves.cpp:30
MethodsumOfPowers
Mathematical/Techfest and the Queue.cpp:30
MethodsumPrefixScores
Trie/Sum of Prefix Scores of Strings.cpp:59
FunctionsumRange
Segment Tree/Range Sum Query - Mutable.cpp:186
MethodsumRange
Mathematical/Square Root Decomposition/Range Sum Query - Mutable.cpp:43
MethodsumRange
Segment Tree/Range Sum Query - Mutable.cpp:28
MethodsumRootToLeaf
Tree/Easy/Sum of Root To Leaf Binary Numbers.cpp:28
FunctionsumSubarrayMins
Stack/Sum of Subarray Minimums.cpp:199
MethodsumSubarrayMins
Stack/Sum of Subarray Minimums.cpp:15
FunctionsumZero
Arrays/Leetcode Easy/Find N Unique Integers Sum up to Zero.cpp:84
MethodsumZero
Arrays/Leetcode Easy/Find N Unique Integers Sum up to Zero.cpp:14
MethodsummaryRanges
Arrays/Summary Ranges.cpp:9
MethodsuperEggDrop
DP/Super Egg Drop.cpp:153
MethodsuperpalindromesInRange
Mathematical/Super_Palindromes.cpp:27
MethodsurvivedRobotsHealths
Stack/Robot Collisions.cpp:15
Methodswap
strings/Construct Smallest Number From DI String.cpp:124
Methodswap
Sliding Window/Permutation in String.cpp:171
MethodswapNodes
Linked List/Swapping Nodes in a Linked List.cpp:21
MethodswapPairs
Linked List/Swap Nodes in Pairs.cpp:9
FunctionswimInWater
Graph/Swim in Rising Water.cpp:182
MethodswimInWater
Graph/Swim in Rising Water.cpp:45
FunctiontakeCharacters
Sliding Window/Take K of Each Character From Left and Right.cpp:156
MethodtakeCharacters
Sliding Window/Take K of Each Character From Left and Right.cpp:39
MethodtallestBillboard
DP/Tallest Billboard.cpp:31
FunctionthreeConsecutiveOdds
Arrays/Leetcode Easy/Three Consecutive Odds.cpp:72
MethodthreeConsecutiveOdds
Arrays/Leetcode Easy/Three Consecutive Odds.cpp:14
MethodthreeEqualParts
Arrays/Three Equal Parts.cpp:8
MethodthreeSum
Arrays/4Sum(kSum).cpp:31
MethodthreeSum
Arrays/Two Pointer/3Sum.cpp:33
MethodthreeSumClosest
Arrays/Two Pointer/3Sum Closest.cpp:9
FunctiontimeRequiredToBuy
Arrays/Leetcode Easy/Time Needed to Buy Tickets.cpp:135
MethodtimeRequiredToBuy
Arrays/Leetcode Easy/Time Needed to Buy Tickets.cpp:14
MethodtimeRequiredToBuy
Arrays/Leetcode Easy/Time Needed to Buy Tickets.cpp:104
MethodtimeRequiredToBuy
Arrays/Leetcode Easy/Time Needed to Buy Tickets.cpp:163
MethodtoLower
HashMap/Vowel Spellchecker.cpp:19
Methodtoh
avoid space at the starting of the string in "move disk....."
Recursion/Tower of Hanoi.cpp:16
Methodtoh
Recursion/Tower of Hanoi.cpp:40
Methodtop
Get the top element. */
Design/Implement Stack using Queues.cpp:34
MethodtopKFrequent
Heap/Top K Frequent Words.cpp:11
MethodtopKFrequent
Heap/Top K Frequent Elements.cpp:12
MethodtopoSort
Function to return list containing vertices in Topological order.
Graph/Topological Sorting/Topological Sort (DFS).cpp:29
MethodtopoSort
Graph/Topological Sorting/Build a Matrix With Conditions.cpp:16
MethodtopoSort
Function to return list containing vertices in Topological order.
Graph/Topological Sorting/Topological Sort (BFS-Kahn's Algorithm).cpp:19
MethodtopologicalSortBFS
Graph/Topological Sorting/Parallel Courses.cpp:39
MethodtopologicalSortCheck
Using Kahn's algorithm
Graph/Topological Sorting/Course Schedule II.cpp:12
MethodtopologicalSortCheck
Graph/Topological Sorting/Course Schedule.cpp:13
MethodtotalCost
Heap/Total Cost to Hire K Workers.cpp:10
MethodtotalFruit
Sliding Window/Fruit Into Baskets.cpp:15
FunctiontotalMoney
Mathematical/Calculate Money in Leetcode Bank.cpp:67
FunctiontotalMoney
Mathematical/Leetcode Easy/Calculate Money in Leetcode Bank.cpp:122
MethodtotalMoney
Mathematical/Calculate Money in Leetcode Bank.cpp:13
MethodtotalMoney
Mathematical/Leetcode Easy/Calculate Money in Leetcode Bank.cpp:15
MethodtotalNQueens
Backtracking/N-Queens_II.cpp:44
MethodtotalOnes
Sliding Window/Minimum Swaps to Group All 1s Together.cpp:34
MethodtotalWaviness
Mathematical/Total Waviness of Numbers in Range I.cpp:33
MethodtotalWaviness
DP/Digit DP/Total Waviness of Numbers in Range II.cpp:86
Methodtransfer
Design/Simple Bank System.cpp:23
Methodtranspose
Arrays/Transpose Matrix.cpp:14
Functiontrap
Arrays/Trapping Rain Water (without stack).cpp:68
Functiontrap
Stack/Trapping Rain Water (using stack).cpp:52
Methodtrap
Arrays/Trapping Rain Water (without stack).cpp:30
Methodtrap
Stack/Trapping Rain Water (using stack).cpp:14
MethodtrapRainWater
Heap/Trapping Rain Water II.cpp:17
MethodtraverseNaryTree
Tree/N-Ary Tree/N-ary_Tree_Preorder_Traversal.cpp:28
Methodtree2str
Recursion/Construct String from Binary Tree.cpp:12
MethodtreeDiameter
Graph/BFS_DFS/Tree Diameter.cpp:22
MethodtreeQueries
Tree/Height of Binary Tree After Subtree Removal Queries.cpp:38
FunctiontriangleNumber
Arrays/Two Pointer/Valid Triangle Number.cpp:160
MethodtriangleNumber
Arrays/Two Pointer/Valid Triangle Number.cpp:15
MethodtriangleType
Arrays/Leetcode Easy/Type of Triangle.cpp:14
FunctiontriangularSum
Arrays/Find Triangular Sum of an Array.cpp:73
MethodtriangularSum
Arrays/Find Triangular Sum of an Array.cpp:15
Functiontribonacci
DP/N-th Tribonacci Number.cpp:111
Methodtribonacci
DP/N-th Tribonacci Number.cpp:27
MethodtrimBST
Tree/BST/Trim a Binary Search Tree.cpp:9
FunctiontugOfWar
Backtracking/Tug_Of_War.cpp:54
FunctiontupleSameProduct
Arrays/Tuple with Same Product.cpp:192
MethodtupleSameProduct
Arrays/Tuple with Same Product.cpp:15
MethodtwoCitySchedCost
Greedy/Two_City_Scheduling.cpp:9
MethodtwoEditWords
strings/Words Within Two Edits of Dictionary.cpp:15
MethodtwoSum
Arrays/Two Sum.cpp:13
MethodtwoSum
Arrays/4Sum(kSum).cpp:12
MethodtwoSum
Arrays/Two Pointer/Two Sum II - Input array is sorted.cpp:9
MethodtwoSum
Arrays/Two Pointer/3Sum.cpp:15
Methodunion
Graph/Disjoint Set/Most Stones Removed with Same Row or Column.cpp:86
Methodunion
Graph/Disjoint Set/Minimum Cost Walk in Weighted Graph.cpp:132
Methodunion
Graph/Disjoint Set/Validate Binary Tree Nodes.cpp:79
Methodunion
Graph/Disjoint Set/Minimize Hamming Distance After Swap Operations.cpp:103
FunctionunionSet
Graph/Disjoint Set/Disjoint set (Union-Find).cpp:15
FunctionuniqueOccurrences
HashMap/Unique Number of Occurrences.cpp:121
MethoduniqueOccurrences
HashMap/Unique Number of Occurrences.cpp:13
FunctionuniquePaths
DP/DP on Grids/Unique Paths.cpp:34
MethoduniquePaths
source = [0][0] Dest = [0][0]
DP/DP on Grids/Unique Paths.cpp:47
MethoduniquePathsIII
Backtracking/Unique Paths III.cpp:36
FunctionuniquePathsWithObstacles
DP/DP on Grids/Unique Paths II.cpp:121
MethoduniquePathsWithObstacles
DP/DP on Grids/Unique Paths II.cpp:45
FunctionuniquePerms
Backtracking/All Unique Permutations of an array.cpp:163
MethoduniquePerms
Backtracking/All Unique Permutations of an array.cpp:46
Methodunlock
Design/Operations on Tree.cpp:34
MethodunlockDescendents
Design/Operations on Tree.cpp:63
← previousnext →3,401–3,500 of 3,557, ranked by callers