MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

MethodLCS
DP/Longest Common Subsequence.cpp:16
MethodLCS
DP/Minimum Insertion Steps to Make a String Palindrome.cpp:74
MethodLCS
DP/Delete_Operation_for_Two_Strings.cpp:76
MethodLCS
Approach-1 (Using Concept of LCS)
DP/Longest Palindromic Subsequence.cpp:82
MethodLCS
DP/LIS & Variants/Longest Increasing Subsequence.cpp:66
MethodLFUCache
Design/LFU Cache.cpp:16
MethodLIS
DP/LIS & Variants/Find the Maximum Length of Valid Subsequence I.cpp:17
MethodLL
Bit_Magic/Maximum Number That Sum of the Prices Is Less Than or Equal to K.cpp:126
MethodLPS
copy paste of KMP LPS which I taught
strings/Minimum Time to Revert Word to Initial State II.cpp:22
MethodLPS
DP/Longest Palindromic Subsequence.cpp:19
MethodLRUCache
Design/LRU Cache.cpp:14
FunctionList<Boolean> checkArithmeticSubarrays
Arrays/Arithmetic Subarrays.cpp:117
FunctionList<Boolean> checkIfPrerequisite
Graph/Topological Sorting/Course Schedule IV.cpp:233
FunctionList<Boolean> getResults
Segment Tree/Block Placement Queries.cpp:227
FunctionList<Integer> BFS
BFS helper function to find the farthest node and its distance from the source
Graph/BFS_DFS/Find Minimum Diameter After Merging Two Trees.cpp:137
FunctionList<Integer> KMP_codestorywithMIK
strings/Find Beautiful Indices in the Given Array I.cpp:130
FunctionList<Integer> KMP_codestorywithMIK
strings/Find Beautiful Indices in the Given Array II.cpp:132
FunctionList<Integer> beautifulIndices
strings/Find Beautiful Indices in the Given Array I.cpp:182
FunctionList<Integer> beautifulIndices
strings/Find Beautiful Indices in the Given Array II.cpp:184
FunctionList<Integer> eventualSafeNodes
Graph/Find Eventual Safe States.cpp:170
FunctionList<Integer> findAllPeople
Graph/BFS_DFS/Find All People With Secret.cpp:313
FunctionList<Integer> findArray
Bit_Magic/Find The Original Array of Prefix Xor.cpp:65
FunctionList<Integer> findDuplicates
Arrays/Find All Duplicates in an Array.cpp:39
FunctionList<Integer> findKDistantIndices
Arrays/Leetcode Easy/Find All K-Distant Indices in an Array.cpp:72
FunctionList<Integer> getRow
Arrays/Pascal's Triangle II.cpp:99
FunctionList<Integer> inorderTraversal
Tree/Morris Traversal(Binary Tree Inorder Traversal).cpp:45
FunctionList<Integer> largestDivisibleSubset
DP/LIS & Variants/Largest Divisible Subset.cpp:94
FunctionList<Integer> largestValues
Tree/Find Largest Value in Each Tree Row.cpp:82
FunctionList<Integer> luckyNumbers
Arrays/2-D Array/Leetcode Easy/Lucky Numbers in a Matrix.cpp:144
FunctionList<Integer> majorityElement
Arrays/Majority Element II.cpp:61
FunctionList<Integer> partitionLabels
Arrays/Two Pointer/Partition Labels.cpp:117
FunctionList<Integer> sequentialDigits
Arrays/Sequential Digits.cpp:77
FunctionList<Integer> solve
Tree/Number of Good Leaf Nodes Pairs.cpp:199
FunctionList<Integer> topoSort
Graph/Topological Sorting/Sort Items by Groups Respecting Dependencies.cpp:185
FunctionList<Integer> topoSort
Graph/Topological Sorting/Build a Matrix With Conditions.cpp:259
FunctionList<List<Integer>> findCriticalAndPseudoCriticalEdges
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:314
FunctionList<List<Integer>> findLeaves
Tree/Find Leaves Of Binary Tree.cpp:72
FunctionList<List<Integer>> getAncestors
Graph/All Ancestors of a Node in a Directed Acyclic Graph.cpp:268
FunctionList<List<Integer>> matrixExponentiation
Matrix exponentiation
Mathematical/Total Characters in String After Transformations II.cpp:108
FunctionList<List<Integer>> matrixMultiplication
Matrix multiplication
Mathematical/Total Characters in String After Transformations II.cpp:88
FunctionList<List<Integer>> pathSum
Tree/Path Sum II.cpp:49
FunctionList<List<Integer>> subsets
Recursion/Subsets.cpp:55
FunctionList<List<String>> groupAnagrams
Arrays/Group Anagrams.cpp:128
FunctionList<List<String>> partition
Backtracking/Palindrome Partitioning.cpp:187
FunctionList<List<String>> solveNQueens
Backtracking/N-Queens.cpp:176
FunctionList<String> AllPossibleStrings
Recursion/Power Set.cpp:134
FunctionList<String> fullJustify
strings/Text Justification.cpp:81
FunctionList<String> generateParenthesis
Backtracking/Generate Parentheses.cpp:138
FunctionList<String> getTokens
strings/Compare Version Numbers.cpp:116
FunctionList<String> removeAnagrams
strings/Easy Tagged/Find Resultant Array After Removing Anagrams.cpp:84
FunctionList<String> removeSubfolders
strings/Remove Sub-Folders from the Filesystem.cpp:119
FunctionList<String> solve
Backtracking/Word Break II.cpp:155
FunctionList<String> stringMatching
strings/Easy Tagged/String Matching in an Array.cpp:209
FunctionList<String> wordBreak
Backtracking/Word Break II.cpp:136
MethodLockingTree
Design/Operations on Tree.cpp:16
MethodLongestCommonPrefixMatrix
DP/DP on Strings/Find the String with LCP.cpp:14
MethodMAH
Stack/Maximal Rectangle.cpp:54
MethodMFS
DP/Minimum Falling Path Sum.cpp:15
MethodMPS
DP/Minimum Path Sum.cpp:15
MethodMST
Graph/Min Cost to Connect All Points.cpp:89
FunctionMap<Integer, List<Integer>> buildAdjList
Function to build the adjacency list for a tree
Graph/BFS_DFS/Find Minimum Diameter After Merging Two Trees.cpp:101
MethodMapSum
Design/Map Sum Pairs.cpp:11
MethodMaxStack
direct access of max element Why ordered map ? Access of maximum element can be done in constant time (rbegin(mp)->first) */
Design/Max Stack.cpp:34
FunctionMedianFinder
Design/Find Median from Data Stream.cpp:105
MethodMedianFinder
Design/Find Median from Data Stream.cpp:19
MethodMovieRentingSystem
Design/Design Movie Rental System.cpp:33
FunctionMyCalendar
Arrays/Intervals_Based_Qn/My Calendar I.cpp:133
MethodMyCalendar
Arrays/Intervals_Based_Qn/My Calendar I.cpp:20
MethodMyCalendarThree
Line Sweep Technique/My Calendar III.cpp:17
MethodMyCalendarTwo
Arrays/Intervals_Based_Qn/My Calendar II.cpp:26
MethodMyCalendarTwo
Line Sweep Technique/My Calendar II.cpp:16
MethodMyCircularDeque
Design/Design Circular Queue.cpp:21
FunctionMyHashMap
Design/Design HashMap.cpp:128
MethodMyHashMap
Design/Design HashMap.cpp:16
MethodMyHashSet
Design/Design HashSet.cpp:12
MethodMyQueue
Stack/Implement Queue using Stacks.cpp:20
MethodMyStack
Design/Implement Stack using Queues.cpp:13
MethodNSL
Stack/Maximal Rectangle.cpp:33
MethodNSL
NSL = Next smaller to left
Stack/Largest_Rectangle_in_Histogram.cpp:34
MethodNSR
Stack/Maximal Rectangle.cpp:13
MethodNSR
NSR = Next smaller to right
Stack/Largest_Rectangle_in_Histogram.cpp:11
FunctionNestedIterator
Design/Flatten Nested List Iterator.cpp:132
MethodNestedIterator
Design/Flatten Nested List Iterator.cpp:18
MethodNode
Graph/Dijkstra'a Based Problems/Design Graph With Shortest Path Calculator.cpp:133
MethodNode
Trie/Delete Duplicate Folders in System.cpp:122
MethodNode
Tree/Diagonal Tree Traversal (Recursive: using map).cpp:13
MethodNode
Design/All O`one Data Structure.cpp:20
FunctionNumArray
Segment Tree/Range Sum Query - Mutable.cpp:148
MethodNumArray
Mathematical/Square Root Decomposition/Range Sum Query - Mutable.cpp:21
MethodNumArray
Segment Tree/Range Sum Query - Mutable.cpp:19
FunctionNumberContainers
Design/Design a Number Container System.cpp:136
MethodNumberContainers
Design/Design a Number Container System.cpp:19
MethodOnedArrayCount
Arrays/2-D Array/Count Submatrices With All Ones.cpp:16
MethodP
Heap/Lexicographically Minimum String After Removing Stars.cpp:61
FunctionPair
strings/Sort the Jumbled Numbers.cpp:195
FunctionPair
Graph/BFS_DFS/Minimize the Maximum Edge Weight of Graph.cpp:251
MethodPair
strings/Sort the Jumbled Numbers.cpp:139
MethodPair
Graph/Dijkstra'a Based Problems/Minimum Cost Path with Edge Reversals.cpp:72
MethodPair
Graph/Dijkstra'a Based Problems/Minimum Cost to Convert String I.cpp:90
MethodPair
Graph/Dijkstra'a Based Problems/Minimum Cost to Convert String II.cpp:160
← previousnext →501–600 of 3,557, ranked by callers