MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

FunctionpivotInteger
Mathematical/Find the Pivot Integer.cpp:185
MethodpivotInteger
Mathematical/Find the Pivot Integer.cpp:15
MethodplusOne
Linked List/Plus One Linked List.cpp:26
MethodplusOne
Arrays/Leetcode Easy/Plus One.cpp:15
FunctionpoorPigs
Mathematical/Poor Pigs.cpp:45
MethodpoorPigs
Mathematical/Poor Pigs.cpp:12
Methodpop
Design/Design a Stack With Increment Operation.cpp:30
MethodpopMax
Design/Max Stack.cpp:62
MethodpopSmallest
HashSet/Smallest Number in Infinite Set.cpp:18
MethodpopulateNodes
Trie/Delete Duplicate Folders in System.cpp:38
Methodpossible
Arrays/Binary Search/Minimum Time to Complete Trips.cpp:15
Methodpossible
Arrays/Binary Search/Maximum Running Time of N Computers.cpp:17
Methodpossible
Arrays/Binary Search/Capacity To Ship Packages Within D Days.cpp:13
Methodpossible
Arrays/Binary Search/Minimum Speed to Arrive on Time.cpp:28
Methodpossible
Backtracking/Matchsticks to Square.cpp:18
Methodpossible
Backtracking/Partition to K Equal Sum Subsets.cpp:15
MethodpossibleBipartition
Graph/Possible Bipartition.cpp:34
FunctionpossibleStringCount
DP/Find the Original Typed String II.cpp:280
MethodpossibleStringCount
strings/Easy Tagged/Find the Original Typed String I.cpp:14
MethodpossibleStringCount
DP/Find the Original Typed String II.cpp:42
MethodpossibleToPlace
Arrays/Binary Search/Magnetic Force Between Two Balls.cpp:16
Methodpower
Mathematical/Count the Number of Arrays with K Matching Adjacent Elements.cpp:121
Methodpower
Binary Exponentiation for Fermat's Little Theorem -> power(mult, M-2);
Mathematical/Fancy Sequence.cpp:25
Methodpower
Mathematical/Direction Assignments with Exactly K Visible People.cpp:19
Methodpower
Mathematical/Number of Ways to Assign Edge Weights I.cpp:16
Methodpower
Binary Exponentiation for Fermat's Little Theorem - > Pow(v ,M-2)
Arrays/Difference Array Technique/XOR After Range Multiplication Queries II.cpp:19
MethodpowerfulIntegers
Mathematical/Powerful_Integers.cpp:8
MethodpreOrder
modifed pre order traversal
Tree/Binary Tree Right Side View.cpp:14
Methodpredecessor
DP/LIS & Variants/Longest String Chain.cpp:75
MethodpredictPartyVictory
Greedy/Dota2 Senate.cpp:33
FunctionprefixCount
Trie/Counting Words With a Given Prefix.cpp:169
MethodprefixCount
Trie/Counting Words With a Given Prefix.cpp:15
MethodprefixesDivBy5
Bit_Magic/Leetcode Easy/Binary Prefix Divisible By 5.cpp:14
Methodpreorder
Tree/N-Ary Tree/N-ary_Tree_Preorder_Traversal.cpp:38
Methodpreprocess
Graph/Topological Sorting/Course Schedule IV.cpp:82
MethodprimeSubOperation
Arrays/Prime Subtraction Operation.cpp:31
FunctionprintFirstNegativeInteger
Sliding Window/First negative integer in every window of size k.cpp:8
FunctionprintKDistantfromLeaf
Tree/Count the nodes at distance K from leaf.cpp:132
MethodprintKDistantfromLeaf
Function to return count of nodes at a given distance from leaf nodes.
Tree/Count the nodes at distance K from leaf.cpp:31
MethodprintLargest
Arrays/Largest Number.cpp:42
FunctionprintLongestCommonSubsequence
DP/DP on Strings/Printing Longest Common Subsequence.cpp:68
MethodprintLongestCommonSubsequence
DP/DP on Strings/Printing Longest Common Subsequence.cpp:14
MethodprintPaths
Tree/Paths from root with a specified sum.cpp:33
MethodprintVector
Bit_Magic/Partition Array Into Two Arrays to Minimize Sum Difference.cpp:11
FunctionprocessQueries
Graph/BFS_DFS/Power Grid Maintenance.cpp:351
MethodprocessQueries
Graph/BFS_DFS/Power Grid Maintenance.cpp:31
FunctionprocessStr
strings/Simulation/Process String with Special Operations I.cpp:43
MethodprocessStr
strings/Simulation/Process String with Special Operations I.cpp:15
MethodprocessStr
strings/Simulation/Process String with Special Operations II.cpp:15
MethodproductExceptSelf
Arrays/Product of Array Except Self.cpp:14
FunctionproductExceptSelf2
Arrays/Product of Array Except Self.cpp:137
MethodproductQueries
Arrays/Range Product Queries of Powers.cpp:17
MethodprofitableSchemes
DP/Profitable Schemes.cpp:37
Methodpropagate
Segment Tree/Longest Balanced Subarray II.cpp:68
MethodpruneTree
Tree/Binary Tree Pruning.cpp:27
FunctionpseudoPalindromicPaths
Tree/Pseudo-Palindromic Paths in a Binary Tree.cpp:127
MethodpseudoPalindromicPaths
Tree/Pseudo-Palindromic Paths in a Binary Tree.cpp:40
FunctionpunishmentNumber
Recursion/Find the Punishment Number of an Integer.cpp:146
MethodpunishmentNumber
Recursion/Find the Punishment Number of an Integer.cpp:38
Methodpush
Push element x onto stack. */
Design/Implement Stack using Queues.cpp:18
Methodpush
Design/Design a Stack With Increment Operation.cpp:23
MethodpushAdjacentWords
Graph/Word_Ladder.cpp:7
MethodpushAdjacentWords
Graph/Word Ladder II.cpp:14
FunctionpushDominoes
Arrays/Two Pointer/Push Dominoes.cpp:216
MethodpushDominoes
Arrays/Two Pointer/Push Dominoes.cpp:15
Functionput
Design/Design HashMap.cpp:145
Methodput
Design/Design HashMap.cpp:24
Methodput
Design/LFU Cache.cpp:53
MethodputMarbles
Arrays/Put Marbles in Bags.cpp:14
MethodpyramidTransition
Backtracking/Pyramid Transition Matrix.cpp:48
FunctionqueryResults
HashMap/Find the Number of Distinct Colors Among the Balls.cpp:129
MethodqueryResults
HashMap/Find the Number of Distinct Colors Among the Balls.cpp:15
MethodquerySegTree
Segment Tree/Block Placement Queries.cpp:85
MethodquerySegmentTree
Heap/Maximum Total Subarray Value II.cpp:44
MethodquerySegmentTree
Segment Tree/Range Minimum Query.cpp:91
MethodquerySegmentTree
Function to query the segment tree for the index of the maximum value in range [start, end]
Segment Tree/Find Building Where Alice and Bob Can Meet.cpp:39
MethodquerySegmentTree
Function to query the segment tree for the index of the maximum value in range [start, end]
Segment Tree/Range Maximum Index Query.cpp:37
MethodquerySegmentTree
Segment Tree/Sum of Query II.cpp:29
MethodquerySegmentTree
Segment Tree/Fruits Into Baskets II and III.cpp:29
MethodquerySegmentTree
Segment Tree/Range Sum Query - Mutable.cpp:79
MethodquerySegmentTree
Segment Tree/Count Good Triplets in an Array.cpp:30
MethodquerySum
Segment Tree/Sum of Query II.cpp:43
MethodquickSort
Function to sort an array using quick sort algorithm.
Recursion/Quick Sort.cpp:15
Methodrand10
Mathematical/Implement Rand10() Using Rand7().cpp:9
MethodrangeAddQueries
Arrays/Difference Array Technique/Increment Submatrices by One.cpp:15
FunctionrangeBitwiseAnd
Bit_Magic/Bitwise AND of Numbers Range.cpp:65
MethodrangeBitwiseAnd
Bit_Magic/Bitwise AND of Numbers Range.cpp:13
MethodrangeMaximumIndexQuery
Segment Tree/Range Maximum Index Query.cpp:65
FunctionrangeSum
Heap/Range Sum of Sorted Subarray Sums.cpp:123
MethodrangeSum
Heap/Range Sum of Sorted Subarray Sums.cpp:17
MethodrangeSumBST
Tree/BST/Range Sum of BST.cpp:14
Methodreachable
Graph/Swim in Rising Water.cpp:25
MethodreadBinaryWatch
Bit_Magic/Leetcode Easy/Binary Watch.cpp:15
MethodrearrangeArray
Arrays/Rearrange Array Elements by Sign.cpp:13
MethodrecoverFromPreorder
Tree/Recover a Tree From Preorder Traversal.cpp:48
Methodrecur_memo
DP/Maximum_Length_of_Repeated_Subarray.cpp:11
FunctionreductionOperations
Arrays/Reduction Operations to Make the Array Elements Equal.cpp:41
MethodreductionOperations
Arrays/Reduction Operations to Make the Array Elements Equal.cpp:13
MethodregionsBySlashes
Arrays/2-D Array/DFS/Regions Cut By Slashes.cpp:31
FunctionrelativeSortArray
Arrays/Leetcode Easy/Relative Sort Array.cpp:126
← previousnext →2,801–2,900 of 3,557, ranked by callers