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
addWord
Design/Design Add and Search Words Data Structure.cpp:33
Method
alienOrder
Graph/Topological Sorting/Alien Dictionary.cpp:107
Method
allCapitals
strings/Detect Capital.cpp:11
Method
allPathsSourceTarget
Graph/All Paths From Source to Target.cpp:24
Method
allPossibleFBT
DP/All Possible Full Binary Trees.cpp:54
Method
allSmall
strings/Detect Capital.cpp:18
Method
allZero
Sliding Window/Count Occurences of Anagrams.cpp:14
Method
all_longest_common_subsequences
DP/Printing All Longest Common Subsequences.cpp:47
Function
amountOfTime
Tree/Amount of Time for Binary Tree to Be Infected.cpp:129
Method
amountOfTime
Tree/Amount of Time for Binary Tree to Be Infected.cpp:34
Method
answerQueries
Arrays/Cumulative_Sum(Prefix Array)/Longest Subsequence With Limited Sum.cpp:13
Function
answerString
strings/Find the Lexicographically Largest String From the Box I.cpp:136
Method
answerString
strings/Find the Lexicographically Largest String From the Box I.cpp:16
Method
antiDiagWin
Design/Design Tic-Tac-Toe.cpp:105
Method
antiDiagonalPattern
Arrays/2-D Array/Anti Diagonal Traversal of Matrix.cpp:14
Method
appendCharacters
strings/Append Characters to String to Make Subsequence.cpp:14
Method
applyMessageEvent
Arrays/Simulation/Count Mentions Per User.cpp:15
Function
applyOperations
Arrays/Leetcode Easy/Apply Operations to an Array.cpp:113
Method
applyOperations
Arrays/Leetcode Easy/Apply Operations to an Array.cpp:14
Function
areAlmostEqual
strings/Easy Tagged/Check if One String Swap Can Make Strings Equal.cpp:135
Method
areAlmostEqual
strings/Easy Tagged/Check if One String Swap Can Make Strings Equal.cpp:14
Method
areSentencesSimilar
strings/Sentence Similarity III.cpp:15
Function
areSimilar
Arrays/2-D Array/Leetcode Easy/Matrix Similarity After Cyclic Shifts.cpp:144
Method
areSimilar
Arrays/2-D Array/Leetcode Easy/Matrix Similarity After Cyclic Shifts.cpp:15
Method
areaOfMaxDiagonal
Mathematical/Leetcode Easy/Maximum Area of Longest Diagonal Rectangle.cpp:15
Method
arrayNesting
Arrays/Array Nesting.cpp:10
Method
arrayStringsAreEqual
strings/Check If Two String Arrays are Equivalent.cpp:13
Method
assignEdgeWeights
Mathematical/Number of Ways to Assign Edge Weights I.cpp:45
Method
assignEdgeWeights
Binary Lifting/Number of Ways to Assign Edge Weights II.cpp:74
Method
asteroidCollision
Stack/Asteroid Collision.cpp:10
Function
asteroidsDestroyed
Greedy/Destroying Asteroids.cpp:79
Method
asteroidsDestroyed
Greedy/Destroying Asteroids.cpp:15
Function
averageOfSubtree
Tree/Count Nodes Equal to Average of Subtree.cpp:129
Method
averageOfSubtree
Tree/Count Nodes Equal to Average of Subtree.cpp:43
Method
averageWaitingTime
Arrays/Simulation/Average Waiting Time.cpp:15
Method
avoidFlood
Arrays/Binary Search/Avoid Flood in The City.cpp:16
Method
bSearch
Arrays/Intervals_Based_Qn/Special Array II.cpp:99
Method
bSearch
Arrays/Leetcode Easy/Check If N and Its Double Exist.cpp:59
Function
backspaceCompare
strings/Backspace String Compare.cpp:123
Method
backspaceCompare
strings/Backspace String Compare.cpp:29
Method
backtrack
HashMap/Next Greater Numerically Balanced Number.cpp:80
Method
backtrack
Backtracking/Palindrome Partitioning.cpp:32
Method
backtrack
Backtracking/Non-decreasing Subsequences.cpp:15
Method
backtrack
Backtracking/Sequential Digits.cpp:9
Method
backtrack
Backtracking/Permutations II.cpp:16
Method
backtracking
Backtracking/Longest Subsequence Repeated k Times.cpp:33
Function
bagOfTokensScore
Greedy/Bag of Tokens.cpp:52
Method
bagOfTokensScore
Greedy/Bag of Tokens.cpp:14
Method
balanceBST
Tree/BST/Balance a Binary Search Tree.cpp:38
Method
balanced
HashMap/Next Greater Numerically Balanced Number.cpp:16
Method
beautifulArray
Mathematical/Beautiful Array.cpp:8
Method
beautifulIndices
strings/Find Beautiful Indices in the Given Array I.cpp:69
Method
beautifulIndices
strings/Find Beautiful Indices in the Given Array II.cpp:71
Function
beautifulSubsets
Backtracking/The Number of Beautiful Subsets.cpp:79
Method
beautifulSubsets
Backtracking/The Number of Beautiful Subsets.cpp:35
Function
beautifulSubstrings
strings/Count Beautiful Substrings II.cpp:97
Function
beautifulSubstrings
strings/Count Beautiful Substrings I.cpp:52
Method
beautifulSubstrings
strings/Count Beautiful Substrings II.cpp:16
Method
beautifulSubstrings
strings/Count Beautiful Substrings I.cpp:16
Method
bellmanFord
Graph/Bellman-Ford Based Problems/Find the City With the Smallest Number of Neighbors at a Threshold Distance.cpp:22
Method
bellman_ford
Graph/Bellman-Ford Based Problems/Distance from the Source(Bellman-Ford Algorithm).cpp:9
Method
bestClosingTime
Arrays/Cumulative_Sum(Prefix Array)/Minimum Penalty for a Shop.cpp:10
Method
bestStartingPoint
strings/Find the Lexicographically Largest String From the Box I.cpp:41
Method
bfs
Graph/Redundant Connection.cpp:66
Method
bfs
Graph/Island Perimeter.cpp:69
Method
bfs
Graph/Number of Islands.cpp:63
Method
bfs
Graph/Divide Nodes Into the Maximum Number of Groups.cpp:35
Method
bfs
Graph/Dijkstra'a Based Problems/Shortest Distance After Road Addition Queries I.cpp:74
Method
bfs
Graph/BFS_DFS/Find Closest Node to Given Two Nodes.cpp:17
Method
bfs
Graph/BFS_DFS/Count Unreachable Pairs of Nodes in an Undirected Graph.cpp:114
Method
bfs
Graph/BFS_DFS/Number of Provinces.cpp:93
Method
bfs
Graph/BFS_DFS/Max_Area_of_Island.cpp:55
Method
bfs
O(c + n)
Graph/BFS_DFS/Power Grid Maintenance.cpp:87
Method
bfs
Graph/BFS_DFS/Maximize the Number of Target Nodes After Connecting Trees I.cpp:17
Method
bfs
Graph/Disjoint Set/Maximum Number of Fish in a Grid.cpp:115
Method
bfs
Graph/Disjoint Set/Count the Number of Complete Components.cpp:64
Method
bfs
Arrays/Find All Groups of Farmland.cpp:72
Method
bfs
Arrays/Jump Game III.cpp:40
Method
bfs
Arrays/2-D Array/Maximum Number of Points From Grid Queries.cpp:16
Method
bfs
Arrays/2-D Array/Maximum Number of Points From Grid Queries.cpp:167
Method
bfs
Arrays/2-D Array/Shortest Bridge.cpp:47
Method
bfs
Arrays/Binary Search/Last Day Where You Can Still Cross.cpp:93
Method
bfs
Tree/Find Elements in a Contaminated Binary Tree.cpp:42
Method
binaryGap
Bit_Magic/Leetcode Easy/Binary Gap.cpp:15
Method
binarySearch
DP/Maximum Profit in Job Scheduling.cpp:82
Method
binarySearch
Arrays/Cumulative_Sum(Prefix Array)/Longest Subsequence With Limited Sum.cpp:45
Method
binarySearch
Arrays/Intervals_Based_Qn/Find Right Interval.cpp:42
Method
binarySearch
upper_bound of endTime
Arrays/Intervals_Based_Qn/Two Best Non-Overlapping Events.cpp:48
Method
binarySearch
Arrays/Two Pointer/Valid Triangle Number.cpp:43
Method
binarySearch
Arrays/Leetcode Easy/Minimum Common Value.cpp:34
Method
binarySearch
Arrays/Leetcode Easy/Intersection of Two Arrays.cpp:65
Method
binarySearch
Arrays/Binary Search/Find Smallest Letter Greater Than Target.cpp:13
Method
binarySearch
Arrays/Binary Search/The K Weakest Rows in a Matrix.cpp:16
Method
binarySearch
Arrays/Binary Search/Find in Mountain Array.cpp:39
Method
binarySearch
Arrays/Binary Search/Search in Rotated Sorted Array II.cpp:40
Method
binarySearchIterative
Approach-4 //Iterative Binary Search (Accepted)
DP/Super Egg Drop.cpp:108
Method
binary_search
Arrays/Binary Search/Search in Rotated Sorted Array.cpp:24
Function
bitwiseComplement
Bit_Magic/Leetcode Easy/Complement of Base 10 Integer.cpp:95
Method
bitwiseComplement
Bit_Magic/Leetcode Easy/Complement of Base 10 Integer.cpp:15
Function
book
Arrays/Intervals_Based_Qn/My Calendar I.cpp:138
← previous
next →
701–800 of 3,557, ranked by callers