MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

MethodaddWord
Design/Design Add and Search Words Data Structure.cpp:33
MethodalienOrder
Graph/Topological Sorting/Alien Dictionary.cpp:107
MethodallCapitals
strings/Detect Capital.cpp:11
MethodallPathsSourceTarget
Graph/All Paths From Source to Target.cpp:24
MethodallPossibleFBT
DP/All Possible Full Binary Trees.cpp:54
MethodallSmall
strings/Detect Capital.cpp:18
MethodallZero
Sliding Window/Count Occurences of Anagrams.cpp:14
Methodall_longest_common_subsequences
DP/Printing All Longest Common Subsequences.cpp:47
FunctionamountOfTime
Tree/Amount of Time for Binary Tree to Be Infected.cpp:129
MethodamountOfTime
Tree/Amount of Time for Binary Tree to Be Infected.cpp:34
MethodanswerQueries
Arrays/Cumulative_Sum(Prefix Array)/Longest Subsequence With Limited Sum.cpp:13
FunctionanswerString
strings/Find the Lexicographically Largest String From the Box I.cpp:136
MethodanswerString
strings/Find the Lexicographically Largest String From the Box I.cpp:16
MethodantiDiagWin
Design/Design Tic-Tac-Toe.cpp:105
MethodantiDiagonalPattern
Arrays/2-D Array/Anti Diagonal Traversal of Matrix.cpp:14
MethodappendCharacters
strings/Append Characters to String to Make Subsequence.cpp:14
MethodapplyMessageEvent
Arrays/Simulation/Count Mentions Per User.cpp:15
FunctionapplyOperations
Arrays/Leetcode Easy/Apply Operations to an Array.cpp:113
MethodapplyOperations
Arrays/Leetcode Easy/Apply Operations to an Array.cpp:14
FunctionareAlmostEqual
strings/Easy Tagged/Check if One String Swap Can Make Strings Equal.cpp:135
MethodareAlmostEqual
strings/Easy Tagged/Check if One String Swap Can Make Strings Equal.cpp:14
MethodareSentencesSimilar
strings/Sentence Similarity III.cpp:15
FunctionareSimilar
Arrays/2-D Array/Leetcode Easy/Matrix Similarity After Cyclic Shifts.cpp:144
MethodareSimilar
Arrays/2-D Array/Leetcode Easy/Matrix Similarity After Cyclic Shifts.cpp:15
MethodareaOfMaxDiagonal
Mathematical/Leetcode Easy/Maximum Area of Longest Diagonal Rectangle.cpp:15
MethodarrayNesting
Arrays/Array Nesting.cpp:10
MethodarrayStringsAreEqual
strings/Check If Two String Arrays are Equivalent.cpp:13
MethodassignEdgeWeights
Mathematical/Number of Ways to Assign Edge Weights I.cpp:45
MethodassignEdgeWeights
Binary Lifting/Number of Ways to Assign Edge Weights II.cpp:74
MethodasteroidCollision
Stack/Asteroid Collision.cpp:10
FunctionasteroidsDestroyed
Greedy/Destroying Asteroids.cpp:79
MethodasteroidsDestroyed
Greedy/Destroying Asteroids.cpp:15
FunctionaverageOfSubtree
Tree/Count Nodes Equal to Average of Subtree.cpp:129
MethodaverageOfSubtree
Tree/Count Nodes Equal to Average of Subtree.cpp:43
MethodaverageWaitingTime
Arrays/Simulation/Average Waiting Time.cpp:15
MethodavoidFlood
Arrays/Binary Search/Avoid Flood in The City.cpp:16
MethodbSearch
Arrays/Intervals_Based_Qn/Special Array II.cpp:99
MethodbSearch
Arrays/Leetcode Easy/Check If N and Its Double Exist.cpp:59
FunctionbackspaceCompare
strings/Backspace String Compare.cpp:123
MethodbackspaceCompare
strings/Backspace String Compare.cpp:29
Methodbacktrack
HashMap/Next Greater Numerically Balanced Number.cpp:80
Methodbacktrack
Backtracking/Palindrome Partitioning.cpp:32
Methodbacktrack
Backtracking/Non-decreasing Subsequences.cpp:15
Methodbacktrack
Backtracking/Sequential Digits.cpp:9
Methodbacktrack
Backtracking/Permutations II.cpp:16
Methodbacktracking
Backtracking/Longest Subsequence Repeated k Times.cpp:33
FunctionbagOfTokensScore
Greedy/Bag of Tokens.cpp:52
MethodbagOfTokensScore
Greedy/Bag of Tokens.cpp:14
MethodbalanceBST
Tree/BST/Balance a Binary Search Tree.cpp:38
Methodbalanced
HashMap/Next Greater Numerically Balanced Number.cpp:16
MethodbeautifulArray
Mathematical/Beautiful Array.cpp:8
MethodbeautifulIndices
strings/Find Beautiful Indices in the Given Array I.cpp:69
MethodbeautifulIndices
strings/Find Beautiful Indices in the Given Array II.cpp:71
FunctionbeautifulSubsets
Backtracking/The Number of Beautiful Subsets.cpp:79
MethodbeautifulSubsets
Backtracking/The Number of Beautiful Subsets.cpp:35
FunctionbeautifulSubstrings
strings/Count Beautiful Substrings II.cpp:97
FunctionbeautifulSubstrings
strings/Count Beautiful Substrings I.cpp:52
MethodbeautifulSubstrings
strings/Count Beautiful Substrings II.cpp:16
MethodbeautifulSubstrings
strings/Count Beautiful Substrings I.cpp:16
MethodbellmanFord
Graph/Bellman-Ford Based Problems/Find the City With the Smallest Number of Neighbors at a Threshold Distance.cpp:22
Methodbellman_ford
Graph/Bellman-Ford Based Problems/Distance from the Source(Bellman-Ford Algorithm).cpp:9
MethodbestClosingTime
Arrays/Cumulative_Sum(Prefix Array)/Minimum Penalty for a Shop.cpp:10
MethodbestStartingPoint
strings/Find the Lexicographically Largest String From the Box I.cpp:41
Methodbfs
Graph/Redundant Connection.cpp:66
Methodbfs
Graph/Island Perimeter.cpp:69
Methodbfs
Graph/Number of Islands.cpp:63
Methodbfs
Graph/Divide Nodes Into the Maximum Number of Groups.cpp:35
Methodbfs
Graph/Dijkstra'a Based Problems/Shortest Distance After Road Addition Queries I.cpp:74
Methodbfs
Graph/BFS_DFS/Find Closest Node to Given Two Nodes.cpp:17
Methodbfs
Graph/BFS_DFS/Count Unreachable Pairs of Nodes in an Undirected Graph.cpp:114
Methodbfs
Graph/BFS_DFS/Number of Provinces.cpp:93
Methodbfs
Graph/BFS_DFS/Max_Area_of_Island.cpp:55
Methodbfs
O(c + n)
Graph/BFS_DFS/Power Grid Maintenance.cpp:87
Methodbfs
Graph/BFS_DFS/Maximize the Number of Target Nodes After Connecting Trees I.cpp:17
Methodbfs
Graph/Disjoint Set/Maximum Number of Fish in a Grid.cpp:115
Methodbfs
Graph/Disjoint Set/Count the Number of Complete Components.cpp:64
Methodbfs
Arrays/Find All Groups of Farmland.cpp:72
Methodbfs
Arrays/Jump Game III.cpp:40
Methodbfs
Arrays/2-D Array/Maximum Number of Points From Grid Queries.cpp:16
Methodbfs
Arrays/2-D Array/Maximum Number of Points From Grid Queries.cpp:167
Methodbfs
Arrays/2-D Array/Shortest Bridge.cpp:47
Methodbfs
Arrays/Binary Search/Last Day Where You Can Still Cross.cpp:93
Methodbfs
Tree/Find Elements in a Contaminated Binary Tree.cpp:42
MethodbinaryGap
Bit_Magic/Leetcode Easy/Binary Gap.cpp:15
MethodbinarySearch
DP/Maximum Profit in Job Scheduling.cpp:82
MethodbinarySearch
Arrays/Cumulative_Sum(Prefix Array)/Longest Subsequence With Limited Sum.cpp:45
MethodbinarySearch
Arrays/Intervals_Based_Qn/Find Right Interval.cpp:42
MethodbinarySearch
upper_bound of endTime
Arrays/Intervals_Based_Qn/Two Best Non-Overlapping Events.cpp:48
MethodbinarySearch
Arrays/Two Pointer/Valid Triangle Number.cpp:43
MethodbinarySearch
Arrays/Leetcode Easy/Minimum Common Value.cpp:34
MethodbinarySearch
Arrays/Leetcode Easy/Intersection of Two Arrays.cpp:65
MethodbinarySearch
Arrays/Binary Search/Find Smallest Letter Greater Than Target.cpp:13
MethodbinarySearch
Arrays/Binary Search/The K Weakest Rows in a Matrix.cpp:16
MethodbinarySearch
Arrays/Binary Search/Find in Mountain Array.cpp:39
MethodbinarySearch
Arrays/Binary Search/Search in Rotated Sorted Array II.cpp:40
MethodbinarySearchIterative
Approach-4 //Iterative Binary Search (Accepted)
DP/Super Egg Drop.cpp:108
Methodbinary_search
Arrays/Binary Search/Search in Rotated Sorted Array.cpp:24
FunctionbitwiseComplement
Bit_Magic/Leetcode Easy/Complement of Base 10 Integer.cpp:95
MethodbitwiseComplement
Bit_Magic/Leetcode Easy/Complement of Base 10 Integer.cpp:15
Functionbook
Arrays/Intervals_Based_Qn/My Calendar I.cpp:138
← previousnext →701–800 of 3,557, ranked by callers