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
compress
strings/String Compression.cpp:14
Method
compressedString
strings/String Compression III.cpp:15
Method
computeLPS
strings/Find Beautiful Indices in the Given Array I.cpp:12
Method
computeLPS
strings/Find Beautiful Indices in the Given Array II.cpp:14
Method
computeLPS
Function to compute the LPS (Longest Proper Prefix which is also Suffix) array
strings/Shortest Palindrome.cpp:38
Method
computeLPS
Function to compute the LPS (Longest Proper Prefix which is also Suffix) array
strings/String Algorithms/Knuth-Morris-Pratt KMP String Matching Algorithm.cpp:21
Method
computeLPS
Function to compute the LPS (Longest Proper Prefix which is also Suffix) array
strings/Easy Tagged/String Matching in an Array.cpp:43
Method
computeScore
DP/Maximum Score From Grid Operations.cpp:15
Function
concatenatedBinary
Bit_Magic/Concatenation of Consecutive Binary Numbers.cpp:82
Method
concatenatedBinary
Bit_Magic/Concatenation of Consecutive Binary Numbers.cpp:16
Function
constrainedSubsetSum
DP/Constrained Subsequence Sum.cpp:241
Method
constrainedSubsetSum
Heap/Constrained Subsequence Sum.cpp:25
Method
constrainedSubsetSum
DP/Constrained Subsequence Sum.cpp:40
Method
construct
Tree/Construct Binary Tree from Preorder and Inorder Traversal.cpp:46
Method
construct
Tree/N-Ary Tree/Construct Quad Tree.cpp:42
Method
construct
Tree/BST/Balance a Binary Search Tree.cpp:25
Method
construct2DArray
Arrays/2-D Array/Leetcode Easy/Convert 1D Array Into 2D Array.cpp:15
Method
constructArray
Arrays/Beautiful_Arrangement_II.cpp:8
Method
constructDistancedSequence
Backtracking/Construct the Lexicographically Largest Valid Sequence.cpp:59
Method
constructFromPrePost
Tree/Construct Binary Tree from Preorder and Postorder Traversal.cpp:40
Method
constructProductMatrix
Arrays/2-D Array/Construct Product Matrix.cpp:15
Method
constructST
Segment Tree/Range Minimum Query.cpp:78
Method
constructST
Function to construct the segment tree
Segment Tree/Find Building Where Alice and Bob Can Meet.cpp:32
Method
constructST
Function to construct the segment tree
Segment Tree/Range Maximum Index Query.cpp:30
Method
constructSegmentTree
Segment Tree/Block Placement Queries.cpp:64
Method
constructTransformedArray
Arrays/Leetcode Easy/Transformed Array.cpp:15
Method
construstResult
Trie/Delete Duplicate Folders in System.cpp:76
Method
containsCycle
Graph/BFS_DFS/Detect Cycles in 2D Grid.cpp:47
Method
containsNearbyAlmostDuplicate
HashSet/Contains Duplicate III.cpp:9
Method
containsNearbyDuplicate
Arrays/Contains Duplicate II.cpp:10
Method
containsNearbyDuplicate
Sliding Window/Contains Duplicate II.cpp:10
Function
continuousSubarrays
Sliding Window/Continuous Subarrays.cpp:127
Method
continuousSubarrays
Sliding Window/Continuous Subarrays.cpp:15
Method
convert
Tree/Amount of Time for Binary Tree to Be Infected.cpp:15
Method
convertToBaseK
Mathematical/Sum of k-Mirror Numbers.cpp:31
Function
convertToTitle
Mathematical/Excel Sheet Column Title.cpp:37
Method
copyRandomList
Linked List/Copy List with Random Pointer.cpp:10
Method
corpFlightBookings
Line Sweep Technique/Corporate Flight Bookings.cpp:15
Method
countAlternatingSubarrays
Arrays/Two Pointer/Count Alternating Subarrays.cpp:14
Method
countAndSay
strings/Count and Say.cpp:16
Function
countBadPairs
HashMap/Count Number of Bad Pairs.cpp:118
Method
countBadPairs
HashMap/Count Number of Bad Pairs.cpp:15
Function
countBalancedPermutations
DP/DP on Strings/Count Number of Balanced Permutations.cpp:243
Method
countBalancedPermutations
DP/DP on Strings/Count Number of Balanced Permutations.cpp:15
Method
countBinarySubstrings
strings/Count_Binary_Substrings.cpp:9
Method
countBinarySubstrings
strings/Easy Tagged/Count Binary Substrings.cpp:14
Method
countBits
Bit_Magic/Counting Bits.cpp:10
Function
countCharacters
strings/Easy Tagged/Find Words That Can Be Formed by Characters.cpp:52
Method
countCharacters
strings/Easy Tagged/Find Words That Can Be Formed by Characters.cpp:12
Method
countCollisions
strings/Count Collisions on a Road.cpp:15
Function
countCompleteComponents
Graph/Disjoint Set/Count the Number of Complete Components.cpp:262
Method
countCompleteComponents
Graph/Disjoint Set/Count the Number of Complete Components.cpp:26
Method
countCompleteComponents
Graph/Disjoint Set/Count the Number of Complete Components.cpp:322
Method
countCompleteSubarrays
Sliding Window/Count Complete Subarrays in an Array.cpp:15
Method
countCompleteSubstrings
Sliding Window/Count Complete Substrings.cpp:55
Function
countConsistentStrings
HashSet/Count the Number of Consistent Strings.cpp:144
Method
countConsistentStrings
HashSet/Count the Number of Consistent Strings.cpp:15
Method
countCoveredBuildings
HashMap/Count Covered Buildings.cpp:15
Method
countDays
Arrays/Intervals_Based_Qn/Count Days Without Meetings.cpp:15
Method
countFairPairs
Arrays/Binary Search/Count the Number of Fair Pairs.cpp:15
Method
countGood
Sliding Window/Count the Number of Good Subarrays.cpp:15
Function
countGoodArrays
Mathematical/Count the Number of Arrays with K Matching Adjacent Elements.cpp:192
Method
countGoodArrays
Mathematical/Count the Number of Arrays with K Matching Adjacent Elements.cpp:38
Method
countGoodIntegers
Mathematical/Find the Count of Good Integers.cpp:15
Method
countGoodNumbers
Mathematical/Count Good Numbers.cpp:32
Function
countGoodStrings
DP/Count Ways To Build Good Strings.cpp:142
Method
countGoodStrings
DP/Count Ways To Build Good Strings.cpp:42
Method
countGoodTriplets
Arrays/Leetcode Easy/Count Good Triplets.cpp:14
Method
countHillValley
Arrays/Leetcode Easy/Count Hills and Valleys in an Array.cpp:14
Method
countHomogenous
strings/Count Number of Homogenous Substrings.cpp:15
Method
countInterestingSubarrays
Arrays/Cumulative_Sum(Prefix Array)/Count of Interesting Subarrays.cpp:16
Function
countKConstraintSubstrings
Sliding Window/Count Substrings That Satisfy K-Constraint I & II.cpp:215
Method
countKConstraintSubstrings
Sliding Window/Count Substrings That Satisfy K-Constraint I & II.cpp:19
Method
countLargestGroup
Arrays/Leetcode Easy/Count Largest Group.cpp:24
Method
countLessEqual
Arrays/Binary Search/Kth Smallest Product of Two Sorted Arrays.cpp:118
Function
countMajoritySubarrays
Arrays/Cumulative_Sum(Prefix Array)/Count Subarrays With Majority Element I & II.cpp:140
Method
countMajoritySubarrays
Arrays/Cumulative_Sum(Prefix Array)/Count Subarrays With Majority Element I & II.cpp:16
Function
countMatchingSubarrays
Arrays/Number of Subarrays That Match a Pattern I and II.cpp:127
Method
countMatchingSubarrays
Arrays/Number of Subarrays That Match a Pattern I and II.cpp:16
Function
countMaxOrSubsets
Arrays/Count Number of Maximum Bitwise-OR Subsets.cpp:148
Method
countMaxOrSubsets
Arrays/Count Number of Maximum Bitwise-OR Subsets.cpp:34
Method
countMentions
Arrays/Simulation/Count Mentions Per User.cpp:47
Method
countMinSwapsToSort
Tree/Minimum Number of Operations to Sort a Binary Tree by Level.cpp:15
Method
countNegatives
Arrays/2-D Array/Count Negative Numbers in a Sorted Matrix.cpp:12
Method
countNicePairs
HashMap/Count Nice Pairs in an Array.cpp:36
Method
countNodes
Tree/Count Complete Tree Nodes.cpp:34
Method
countNodes
Tree/Check Completeness of a Binary Tree.cpp:44
Method
countNumbers
Recursion/K-th Smallest in Lexicographical Order.cpp:200
Function
countOdds
Mathematical/Leetcode Easy/Count Odd Numbers in an Interval Range.cpp:78
Method
countOdds
Mathematical/Leetcode Easy/Count Odd Numbers in an Interval Range.cpp:15
Method
countOfAtoms
Stack/Number of Atoms.cpp:17
Function
countOfPairs
Graph/Floyd Warshall/Count the Number of Houses at a Certain Distance I.cpp:55
Method
countOfPairs
Graph/Floyd Warshall/Count the Number of Houses at a Certain Distance I.cpp:13
Method
countOfSubstrings
Sliding Window/Count of Substrings Containing Every Vowel and K Consonants II.cpp:18
Method
countOneBits
Bit_Magic/Sort Integers by The Number of 1 Bits.cpp:15
Method
countOperations
Mathematical/Leetcode Easy/Count Operations to Obtain Zero.cpp:15
Method
countOrders
Mathematical/Count All Valid Pickup and Delivery Options.cpp:12
Method
countOverlaps
Arrays/2-D Array/Image Overlap.cpp:10
Function
countPairs
Tree/Number of Good Leaf Nodes Pairs.cpp:239
Method
countPairs
Graph/BFS_DFS/Count Unreachable Pairs of Nodes in an Undirected Graph.cpp:25
← previous
next →
1,001–1,100 of 3,557, ranked by callers