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
countPairs
Graph/Disjoint Set/Count Unreachable Pairs of Nodes in an Undirected Graph.cpp:41
Method
countPairs
Arrays/Leetcode Easy/Count Equal and Divisible Pairs in an Array.cpp:14
Method
countPairs
Tree/Number of Good Leaf Nodes Pairs.cpp:38
Function
countPalindromicSubsequence
strings/Unique Length-3 Palindromic Subsequences.cpp:149
Method
countPalindromicSubsequence
strings/Unique Length-3 Palindromic Subsequences.cpp:14
Function
countPartitions
DP/Count Partitions With Max-Min Difference at Most K.cpp:193
Function
countPartitions
Arrays/Leetcode Easy/Count Partitions with Even Sum Difference.cpp:92
Method
countPartitions
DP/Count Partitions With Max-Min Difference at Most K.cpp:45
Method
countPartitions
Arrays/Leetcode Easy/Count Partitions with Even Sum Difference.cpp:16
Method
countPaths
Graph/Dijkstra'a Based Problems/Number of Ways to Arrive at Destination.cpp:17
Method
countPaths
DP/Number of Increasing Paths in a Grid.cpp:49
Method
countPermutations
Mathematical/Count the Number of Computer Unlocking Permutations.cpp:17
Function
countPrefixSuffixPairs
Trie/Count Prefix and Suffix Pairs I.cpp:213
Method
countPrefixSuffixPairs
Trie/Count Prefix and Suffix Pairs I.cpp:27
Method
countPrimeSetBits
Bit_Magic/Leetcode Easy/Prime Number of Set Bits in Binary Representation.cpp:15
Method
countRoutes
DP/Count All Possible Routes.cpp:40
Function
countServers
Arrays/2-D Array/Count Servers that Communicate.cpp:193
Method
countServers
Arrays/2-D Array/Count Servers that Communicate.cpp:15
Method
countSmaller
Arrays/Count of Smaller Numbers After Self.cpp:67
Function
countSquares
DP/DP on Grids/Count Square Submatrices with All Ones.cpp:138
Method
countSquares
DP/DP on Grids/Count Square Submatrices with All Ones.cpp:38
Method
countSteps
Graph/Dijkstra'a Based Problems/Freedom Trail.cpp:16
Method
countSteps
DP/DP on Strings/Freedom Trail.cpp:19
Function
countStudents
Arrays/Simulation/Number of Students Unable to Eat Lunch.cpp:103
Method
countStudents
Arrays/Simulation/Number of Students Unable to Eat Lunch.cpp:15
Function
countSubIslands
Arrays/2-D Array/Count Sub Islands.cpp:209
Method
countSubIslands
Arrays/2-D Array/Count Sub Islands.cpp:39
Method
countSubTrees
Graph/Number of Nodes in the Sub-Tree With the Same Label.cpp:34
Function
countSubarrays
Sliding Window/Count Subarrays With Fixed Bounds.cpp:107
Function
countSubarrays
Sliding Window/Count Subarrays Where Max Element Appears at Least K Times.cpp:116
Method
countSubarrays
Arrays/Leetcode Easy/Count Subarrays of Length Three With a Condition.cpp:14
Method
countSubarrays
Sliding Window/Count Subarrays With Fixed Bounds.cpp:16
Method
countSubarrays
Sliding Window/Count Subarrays Where Max Element Appears at Least K Times.cpp:15
Method
countSubarrays
Sliding Window/Count Subarrays With Score Less Than K.cpp:15
Method
countSubarraysOfOnes
Arrays/2-D Array/Count Submatrices With All Ones.cpp:65
Function
countSubmatrices
Arrays/2-D Array/Count Submatrices with Top-Left Element and Sum Less Than k.cpp:112
Method
countSubmatrices
Arrays/2-D Array/Count Submatrices with Top-Left Element and Sum Less Than k.cpp:15
Method
countSubsets
O(2^n)
Arrays/Count Number of Maximum Bitwise-OR Subsets.cpp:16
Function
countSubstrings
strings/Count Substrings Starting and Ending with Given Character.cpp:56
Function
countSubstrings
DP/DP on Strings/Palindromic Substrings.cpp:215
Method
countSubstrings
strings/Count Substrings Starting and Ending with Given Character.cpp:36
Method
countSubstrings
DP/Palindromic Substrings.cpp:9
Method
countSubstrings
DP/DP on Strings/Palindromic Substrings.cpp:30
Method
countSubstrings
DP/DP on Strings/Palindromic Substrings.cpp:171
Method
countSubstrings
DP/DP on Strings/Palindromic Substrings.cpp:240
Method
countSum
Mathematical/Techfest and the Queue.cpp:13
Function
countSymmetricIntegers
Mathematical/Leetcode Easy/Count Symmetric Integers.cpp:118
Method
countSymmetricIntegers
Mathematical/Leetcode Easy/Count Symmetric Integers.cpp:15
Method
countTrapezoids
Mathematical/Count Number of Trapezoids II.cpp:15
Method
countTrapezoids
Mathematical/Count Number of Trapezoids I.cpp:17
Method
countTriples
Mathematical/Leetcode Easy/Count Square Sum Triples.cpp:15
Method
countTriplets
Bit_Magic/Count Triplets That Can Form Two Arrays of Equal XOR.cpp:14
Function
countUnguarded
Arrays/2-D Array/DFS/Count Unguarded Cells in the Grid.cpp:262
Method
countUnguarded
Arrays/2-D Array/DFS/Count Unguarded Cells in the Grid.cpp:50
Function
countValidSelections
Arrays/Leetcode Easy/Make Array Elements Equal to Zero.cpp:143
Method
countValidSelections
Arrays/Leetcode Easy/Make Array Elements Equal to Zero.cpp:32
Method
countVisiblePeople
Mathematical/Direction Assignments with Exactly K Visible People.cpp:48
Function
countVowelPermutation
DP/Count Vowels Permutation.cpp:138
Method
countVowelPermutation
DP/Count Vowels Permutation.cpp:51
Method
countWalls
DP/Maximum Walls Destroyed by Robots.cpp:18
Method
createBinaryTree
Tree/Create Binary Tree From Descriptions.cpp:15
Function
createTree
Tree/Construct_Binary_Tree_from_Parent_Array.cpp:29
Method
customBinarySearch
Arrays/Binary Search/Most Beautiful Item for Each Query.cpp:16
Function
customSortString
HashMap/Custom Sort String.cpp:125
Method
customSortString
HashMap/Custom Sort String.cpp:44
Method
cycleDetectBFS
Graph/BFS_DFS/Detect Cycles in 2D Grid.cpp:75
Method
cycleDetectDFS
Graph/BFS_DFS/Detect Cycles in 2D Grid.cpp:19
Function
dailyTemperatures
Stack/Daily Temperatures.cpp:46
Method
dailyTemperatures
Stack/Daily Temperatures.cpp:15
Method
dec
Design/All O`one Data Structure.cpp:87
Function
deckRevealedIncreasing
Queue/Reveal Cards In Increasing Order.cpp:124
Method
deckRevealedIncreasing
Queue/Reveal Cards In Increasing Order.cpp:15
Function
decodeAtIndex
strings/Decoded String at Index.cpp:95
Method
decodeAtIndex
strings/Decoded String at Index.cpp:62
Function
decodeCiphertext
strings/Simulation/Decode the Slanted Ciphertext.cpp:161
Method
decodeCiphertext
strings/Simulation/Decode the Slanted Ciphertext.cpp:15
Function
decrypt
Sliding Window/Leetcode Easy/Defuse the Bomb.cpp:117
Method
decrypt
Sliding Window/Leetcode Easy/Defuse the Bomb.cpp:15
Method
delNodes
Tree/Delete Nodes And Return Forest.cpp:36
Method
deleteDuplicateFolder
Trie/Delete Duplicate Folders in System.cpp:85
Method
deleteFront
Design/Design Circular Queue.cpp:51
Method
deleteHelper
Tree/Delete Nodes And Return Forest.cpp:16
Method
deleteLast
Design/Design Circular Queue.cpp:60
Method
deleteMiddle
Linked List/Delete the Middle Node of a Linked List.cpp:11
Method
deleteNode
Linked List/Delete Node in a Linked List.cpp:14
Method
deposit
Design/Simple Bank System.cpp:33
Method
depth
Tree/Lowest Common Ancestor of Deepest Leaves.cpp:34
Function
destCity
HashSet/Destination City.cpp:42
Method
destCity
HashMap/Destination City.cpp:13
Method
destCity
HashSet/Destination City.cpp:13
Method
detectCapitalUse
strings/Detect Capital.cpp:26
Function
detectCycle
Linked List/Linked List Cycle II.cpp:49
Method
detectCycle
Function to detect cycle using DSU in an undirected graph.
Graph/Disjoint Set/Detect Cycle using DSU.cpp:36
Method
detectCycle
Linked List/Linked List Cycle II.cpp:16
Method
dfs
Graph/Redundant Connection.cpp:16
Method
dfs
Graph/All Paths From Source to Target.cpp:40
Method
dfs
Graph/Minimum Score After Removals on a Tree.cpp:15
Method
dfs
Graph/All Paths from Source Lead to Destination.cpp:57
Method
dfs
Graph/Island Perimeter.cpp:18
Method
dfs
O(V+E)
Graph/Maximize the Number of Target Nodes After Connecting Trees II.cpp:30
← previous
next →
1,101–1,200 of 3,557, ranked by callers