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
Function
pivotInteger
Mathematical/Find the Pivot Integer.cpp:185
Method
pivotInteger
Mathematical/Find the Pivot Integer.cpp:15
Method
plusOne
Linked List/Plus One Linked List.cpp:26
Method
plusOne
Arrays/Leetcode Easy/Plus One.cpp:15
Function
poorPigs
Mathematical/Poor Pigs.cpp:45
Method
poorPigs
Mathematical/Poor Pigs.cpp:12
Method
pop
Design/Design a Stack With Increment Operation.cpp:30
Method
popMax
Design/Max Stack.cpp:62
Method
popSmallest
HashSet/Smallest Number in Infinite Set.cpp:18
Method
populateNodes
Trie/Delete Duplicate Folders in System.cpp:38
Method
possible
Arrays/Binary Search/Minimum Time to Complete Trips.cpp:15
Method
possible
Arrays/Binary Search/Maximum Running Time of N Computers.cpp:17
Method
possible
Arrays/Binary Search/Capacity To Ship Packages Within D Days.cpp:13
Method
possible
Arrays/Binary Search/Minimum Speed to Arrive on Time.cpp:28
Method
possible
Backtracking/Matchsticks to Square.cpp:18
Method
possible
Backtracking/Partition to K Equal Sum Subsets.cpp:15
Method
possibleBipartition
Graph/Possible Bipartition.cpp:34
Function
possibleStringCount
DP/Find the Original Typed String II.cpp:280
Method
possibleStringCount
strings/Easy Tagged/Find the Original Typed String I.cpp:14
Method
possibleStringCount
DP/Find the Original Typed String II.cpp:42
Method
possibleToPlace
Arrays/Binary Search/Magnetic Force Between Two Balls.cpp:16
Method
power
Mathematical/Count the Number of Arrays with K Matching Adjacent Elements.cpp:121
Method
power
Binary Exponentiation for Fermat's Little Theorem -> power(mult, M-2);
Mathematical/Fancy Sequence.cpp:25
Method
power
Mathematical/Direction Assignments with Exactly K Visible People.cpp:19
Method
power
Mathematical/Number of Ways to Assign Edge Weights I.cpp:16
Method
power
Binary Exponentiation for Fermat's Little Theorem - > Pow(v ,M-2)
Arrays/Difference Array Technique/XOR After Range Multiplication Queries II.cpp:19
Method
powerfulIntegers
Mathematical/Powerful_Integers.cpp:8
Method
preOrder
modifed pre order traversal
Tree/Binary Tree Right Side View.cpp:14
Method
predecessor
DP/LIS & Variants/Longest String Chain.cpp:75
Method
predictPartyVictory
Greedy/Dota2 Senate.cpp:33
Function
prefixCount
Trie/Counting Words With a Given Prefix.cpp:169
Method
prefixCount
Trie/Counting Words With a Given Prefix.cpp:15
Method
prefixesDivBy5
Bit_Magic/Leetcode Easy/Binary Prefix Divisible By 5.cpp:14
Method
preorder
Tree/N-Ary Tree/N-ary_Tree_Preorder_Traversal.cpp:38
Method
preprocess
Graph/Topological Sorting/Course Schedule IV.cpp:82
Method
primeSubOperation
Arrays/Prime Subtraction Operation.cpp:31
Function
printFirstNegativeInteger
Sliding Window/First negative integer in every window of size k.cpp:8
Function
printKDistantfromLeaf
Tree/Count the nodes at distance K from leaf.cpp:132
Method
printKDistantfromLeaf
Function to return count of nodes at a given distance from leaf nodes.
Tree/Count the nodes at distance K from leaf.cpp:31
Method
printLargest
Arrays/Largest Number.cpp:42
Function
printLongestCommonSubsequence
DP/DP on Strings/Printing Longest Common Subsequence.cpp:68
Method
printLongestCommonSubsequence
DP/DP on Strings/Printing Longest Common Subsequence.cpp:14
Method
printPaths
Tree/Paths from root with a specified sum.cpp:33
Method
printVector
Bit_Magic/Partition Array Into Two Arrays to Minimize Sum Difference.cpp:11
Function
processQueries
Graph/BFS_DFS/Power Grid Maintenance.cpp:351
Method
processQueries
Graph/BFS_DFS/Power Grid Maintenance.cpp:31
Function
processStr
strings/Simulation/Process String with Special Operations I.cpp:43
Method
processStr
strings/Simulation/Process String with Special Operations I.cpp:15
Method
processStr
strings/Simulation/Process String with Special Operations II.cpp:15
Method
productExceptSelf
Arrays/Product of Array Except Self.cpp:14
Function
productExceptSelf2
Arrays/Product of Array Except Self.cpp:137
Method
productQueries
Arrays/Range Product Queries of Powers.cpp:17
Method
profitableSchemes
DP/Profitable Schemes.cpp:37
Method
propagate
Segment Tree/Longest Balanced Subarray II.cpp:68
Method
pruneTree
Tree/Binary Tree Pruning.cpp:27
Function
pseudoPalindromicPaths
Tree/Pseudo-Palindromic Paths in a Binary Tree.cpp:127
Method
pseudoPalindromicPaths
Tree/Pseudo-Palindromic Paths in a Binary Tree.cpp:40
Function
punishmentNumber
Recursion/Find the Punishment Number of an Integer.cpp:146
Method
punishmentNumber
Recursion/Find the Punishment Number of an Integer.cpp:38
Method
push
Push element x onto stack. */
Design/Implement Stack using Queues.cpp:18
Method
push
Design/Design a Stack With Increment Operation.cpp:23
Method
pushAdjacentWords
Graph/Word_Ladder.cpp:7
Method
pushAdjacentWords
Graph/Word Ladder II.cpp:14
Function
pushDominoes
Arrays/Two Pointer/Push Dominoes.cpp:216
Method
pushDominoes
Arrays/Two Pointer/Push Dominoes.cpp:15
Function
put
Design/Design HashMap.cpp:145
Method
put
Design/Design HashMap.cpp:24
Method
put
Design/LFU Cache.cpp:53
Method
putMarbles
Arrays/Put Marbles in Bags.cpp:14
Method
pyramidTransition
Backtracking/Pyramid Transition Matrix.cpp:48
Function
queryResults
HashMap/Find the Number of Distinct Colors Among the Balls.cpp:129
Method
queryResults
HashMap/Find the Number of Distinct Colors Among the Balls.cpp:15
Method
querySegTree
Segment Tree/Block Placement Queries.cpp:85
Method
querySegmentTree
Heap/Maximum Total Subarray Value II.cpp:44
Method
querySegmentTree
Segment Tree/Range Minimum Query.cpp:91
Method
querySegmentTree
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
Method
querySegmentTree
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
Method
querySegmentTree
Segment Tree/Sum of Query II.cpp:29
Method
querySegmentTree
Segment Tree/Fruits Into Baskets II and III.cpp:29
Method
querySegmentTree
Segment Tree/Range Sum Query - Mutable.cpp:79
Method
querySegmentTree
Segment Tree/Count Good Triplets in an Array.cpp:30
Method
querySum
Segment Tree/Sum of Query II.cpp:43
Method
quickSort
Function to sort an array using quick sort algorithm.
Recursion/Quick Sort.cpp:15
Method
rand10
Mathematical/Implement Rand10() Using Rand7().cpp:9
Method
rangeAddQueries
Arrays/Difference Array Technique/Increment Submatrices by One.cpp:15
Function
rangeBitwiseAnd
Bit_Magic/Bitwise AND of Numbers Range.cpp:65
Method
rangeBitwiseAnd
Bit_Magic/Bitwise AND of Numbers Range.cpp:13
Method
rangeMaximumIndexQuery
Segment Tree/Range Maximum Index Query.cpp:65
Function
rangeSum
Heap/Range Sum of Sorted Subarray Sums.cpp:123
Method
rangeSum
Heap/Range Sum of Sorted Subarray Sums.cpp:17
Method
rangeSumBST
Tree/BST/Range Sum of BST.cpp:14
Method
reachable
Graph/Swim in Rising Water.cpp:25
Method
readBinaryWatch
Bit_Magic/Leetcode Easy/Binary Watch.cpp:15
Method
rearrangeArray
Arrays/Rearrange Array Elements by Sign.cpp:13
Method
recoverFromPreorder
Tree/Recover a Tree From Preorder Traversal.cpp:48
Method
recur_memo
DP/Maximum_Length_of_Repeated_Subarray.cpp:11
Function
reductionOperations
Arrays/Reduction Operations to Make the Array Elements Equal.cpp:41
Method
reductionOperations
Arrays/Reduction Operations to Make the Array Elements Equal.cpp:13
Method
regionsBySlashes
Arrays/2-D Array/DFS/Regions Cut By Slashes.cpp:31
Function
relativeSortArray
Arrays/Leetcode Easy/Relative Sort Array.cpp:126
← previous
next →
2,801–2,900 of 3,557, ranked by callers