MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

Methodcompress
strings/String Compression.cpp:14
MethodcompressedString
strings/String Compression III.cpp:15
MethodcomputeLPS
strings/Find Beautiful Indices in the Given Array I.cpp:12
MethodcomputeLPS
strings/Find Beautiful Indices in the Given Array II.cpp:14
MethodcomputeLPS
Function to compute the LPS (Longest Proper Prefix which is also Suffix) array
strings/Shortest Palindrome.cpp:38
MethodcomputeLPS
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
MethodcomputeLPS
Function to compute the LPS (Longest Proper Prefix which is also Suffix) array
strings/Easy Tagged/String Matching in an Array.cpp:43
MethodcomputeScore
DP/Maximum Score From Grid Operations.cpp:15
FunctionconcatenatedBinary
Bit_Magic/Concatenation of Consecutive Binary Numbers.cpp:82
MethodconcatenatedBinary
Bit_Magic/Concatenation of Consecutive Binary Numbers.cpp:16
FunctionconstrainedSubsetSum
DP/Constrained Subsequence Sum.cpp:241
MethodconstrainedSubsetSum
Heap/Constrained Subsequence Sum.cpp:25
MethodconstrainedSubsetSum
DP/Constrained Subsequence Sum.cpp:40
Methodconstruct
Tree/Construct Binary Tree from Preorder and Inorder Traversal.cpp:46
Methodconstruct
Tree/N-Ary Tree/Construct Quad Tree.cpp:42
Methodconstruct
Tree/BST/Balance a Binary Search Tree.cpp:25
Methodconstruct2DArray
Arrays/2-D Array/Leetcode Easy/Convert 1D Array Into 2D Array.cpp:15
MethodconstructArray
Arrays/Beautiful_Arrangement_II.cpp:8
MethodconstructDistancedSequence
Backtracking/Construct the Lexicographically Largest Valid Sequence.cpp:59
MethodconstructFromPrePost
Tree/Construct Binary Tree from Preorder and Postorder Traversal.cpp:40
MethodconstructProductMatrix
Arrays/2-D Array/Construct Product Matrix.cpp:15
MethodconstructST
Segment Tree/Range Minimum Query.cpp:78
MethodconstructST
Function to construct the segment tree
Segment Tree/Find Building Where Alice and Bob Can Meet.cpp:32
MethodconstructST
Function to construct the segment tree
Segment Tree/Range Maximum Index Query.cpp:30
MethodconstructSegmentTree
Segment Tree/Block Placement Queries.cpp:64
MethodconstructTransformedArray
Arrays/Leetcode Easy/Transformed Array.cpp:15
MethodconstrustResult
Trie/Delete Duplicate Folders in System.cpp:76
MethodcontainsCycle
Graph/BFS_DFS/Detect Cycles in 2D Grid.cpp:47
MethodcontainsNearbyAlmostDuplicate
HashSet/Contains Duplicate III.cpp:9
MethodcontainsNearbyDuplicate
Arrays/Contains Duplicate II.cpp:10
MethodcontainsNearbyDuplicate
Sliding Window/Contains Duplicate II.cpp:10
FunctioncontinuousSubarrays
Sliding Window/Continuous Subarrays.cpp:127
MethodcontinuousSubarrays
Sliding Window/Continuous Subarrays.cpp:15
Methodconvert
Tree/Amount of Time for Binary Tree to Be Infected.cpp:15
MethodconvertToBaseK
Mathematical/Sum of k-Mirror Numbers.cpp:31
FunctionconvertToTitle
Mathematical/Excel Sheet Column Title.cpp:37
MethodcopyRandomList
Linked List/Copy List with Random Pointer.cpp:10
MethodcorpFlightBookings
Line Sweep Technique/Corporate Flight Bookings.cpp:15
MethodcountAlternatingSubarrays
Arrays/Two Pointer/Count Alternating Subarrays.cpp:14
MethodcountAndSay
strings/Count and Say.cpp:16
FunctioncountBadPairs
HashMap/Count Number of Bad Pairs.cpp:118
MethodcountBadPairs
HashMap/Count Number of Bad Pairs.cpp:15
FunctioncountBalancedPermutations
DP/DP on Strings/Count Number of Balanced Permutations.cpp:243
MethodcountBalancedPermutations
DP/DP on Strings/Count Number of Balanced Permutations.cpp:15
MethodcountBinarySubstrings
strings/Count_Binary_Substrings.cpp:9
MethodcountBinarySubstrings
strings/Easy Tagged/Count Binary Substrings.cpp:14
MethodcountBits
Bit_Magic/Counting Bits.cpp:10
FunctioncountCharacters
strings/Easy Tagged/Find Words That Can Be Formed by Characters.cpp:52
MethodcountCharacters
strings/Easy Tagged/Find Words That Can Be Formed by Characters.cpp:12
MethodcountCollisions
strings/Count Collisions on a Road.cpp:15
FunctioncountCompleteComponents
Graph/Disjoint Set/Count the Number of Complete Components.cpp:262
MethodcountCompleteComponents
Graph/Disjoint Set/Count the Number of Complete Components.cpp:26
MethodcountCompleteComponents
Graph/Disjoint Set/Count the Number of Complete Components.cpp:322
MethodcountCompleteSubarrays
Sliding Window/Count Complete Subarrays in an Array.cpp:15
MethodcountCompleteSubstrings
Sliding Window/Count Complete Substrings.cpp:55
FunctioncountConsistentStrings
HashSet/Count the Number of Consistent Strings.cpp:144
MethodcountConsistentStrings
HashSet/Count the Number of Consistent Strings.cpp:15
MethodcountCoveredBuildings
HashMap/Count Covered Buildings.cpp:15
MethodcountDays
Arrays/Intervals_Based_Qn/Count Days Without Meetings.cpp:15
MethodcountFairPairs
Arrays/Binary Search/Count the Number of Fair Pairs.cpp:15
MethodcountGood
Sliding Window/Count the Number of Good Subarrays.cpp:15
FunctioncountGoodArrays
Mathematical/Count the Number of Arrays with K Matching Adjacent Elements.cpp:192
MethodcountGoodArrays
Mathematical/Count the Number of Arrays with K Matching Adjacent Elements.cpp:38
MethodcountGoodIntegers
Mathematical/Find the Count of Good Integers.cpp:15
MethodcountGoodNumbers
Mathematical/Count Good Numbers.cpp:32
FunctioncountGoodStrings
DP/Count Ways To Build Good Strings.cpp:142
MethodcountGoodStrings
DP/Count Ways To Build Good Strings.cpp:42
MethodcountGoodTriplets
Arrays/Leetcode Easy/Count Good Triplets.cpp:14
MethodcountHillValley
Arrays/Leetcode Easy/Count Hills and Valleys in an Array.cpp:14
MethodcountHomogenous
strings/Count Number of Homogenous Substrings.cpp:15
MethodcountInterestingSubarrays
Arrays/Cumulative_Sum(Prefix Array)/Count of Interesting Subarrays.cpp:16
FunctioncountKConstraintSubstrings
Sliding Window/Count Substrings That Satisfy K-Constraint I & II.cpp:215
MethodcountKConstraintSubstrings
Sliding Window/Count Substrings That Satisfy K-Constraint I & II.cpp:19
MethodcountLargestGroup
Arrays/Leetcode Easy/Count Largest Group.cpp:24
MethodcountLessEqual
Arrays/Binary Search/Kth Smallest Product of Two Sorted Arrays.cpp:118
FunctioncountMajoritySubarrays
Arrays/Cumulative_Sum(Prefix Array)/Count Subarrays With Majority Element I & II.cpp:140
MethodcountMajoritySubarrays
Arrays/Cumulative_Sum(Prefix Array)/Count Subarrays With Majority Element I & II.cpp:16
FunctioncountMatchingSubarrays
Arrays/Number of Subarrays That Match a Pattern I and II.cpp:127
MethodcountMatchingSubarrays
Arrays/Number of Subarrays That Match a Pattern I and II.cpp:16
FunctioncountMaxOrSubsets
Arrays/Count Number of Maximum Bitwise-OR Subsets.cpp:148
MethodcountMaxOrSubsets
Arrays/Count Number of Maximum Bitwise-OR Subsets.cpp:34
MethodcountMentions
Arrays/Simulation/Count Mentions Per User.cpp:47
MethodcountMinSwapsToSort
Tree/Minimum Number of Operations to Sort a Binary Tree by Level.cpp:15
MethodcountNegatives
Arrays/2-D Array/Count Negative Numbers in a Sorted Matrix.cpp:12
MethodcountNicePairs
HashMap/Count Nice Pairs in an Array.cpp:36
MethodcountNodes
Tree/Count Complete Tree Nodes.cpp:34
MethodcountNodes
Tree/Check Completeness of a Binary Tree.cpp:44
MethodcountNumbers
Recursion/K-th Smallest in Lexicographical Order.cpp:200
FunctioncountOdds
Mathematical/Leetcode Easy/Count Odd Numbers in an Interval Range.cpp:78
MethodcountOdds
Mathematical/Leetcode Easy/Count Odd Numbers in an Interval Range.cpp:15
MethodcountOfAtoms
Stack/Number of Atoms.cpp:17
FunctioncountOfPairs
Graph/Floyd Warshall/Count the Number of Houses at a Certain Distance I.cpp:55
MethodcountOfPairs
Graph/Floyd Warshall/Count the Number of Houses at a Certain Distance I.cpp:13
MethodcountOfSubstrings
Sliding Window/Count of Substrings Containing Every Vowel and K Consonants II.cpp:18
MethodcountOneBits
Bit_Magic/Sort Integers by The Number of 1 Bits.cpp:15
MethodcountOperations
Mathematical/Leetcode Easy/Count Operations to Obtain Zero.cpp:15
MethodcountOrders
Mathematical/Count All Valid Pickup and Delivery Options.cpp:12
MethodcountOverlaps
Arrays/2-D Array/Image Overlap.cpp:10
FunctioncountPairs
Tree/Number of Good Leaf Nodes Pairs.cpp:239
MethodcountPairs
Graph/BFS_DFS/Count Unreachable Pairs of Nodes in an Undirected Graph.cpp:25
← previousnext →1,001–1,100 of 3,557, ranked by callers