MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

Methodsolve
Sliding Window/Take K of Each Character From Left and Right.cpp:18
Methodsolve
Sliding Window/Maximum Points You Can Obtain from Cards.cpp:64
Methodsolve
Sliding Window/Maximize the Confusion of an Exam.cpp:42
Methodsolve
Sliding Window/Count Complete Substrings.cpp:13
Methodsolve
Sliding Window/Permutation in String.cpp:16
Methodsolve
Recursion/K-th Smallest in Lexicographical Order.cpp:15
Methodsolve
Recursion/Regular Expression Matching.cpp:46
Methodsolve
Recursion/Power Set.cpp:16
Methodsolve
Recursion/Integer to English Words.cpp:21
Methodsolve
Recursion/Different Ways to Add Parentheses.cpp:16
Methodsolve
Recursion/Subsets.cpp:24
Methodsolve
Recursion/Rat in a Maze Problem - I.cpp:18
Methodsolve
Recursion/Lexicographical Numbers.cpp:16
Methodsolve
Bit_Magic/Leetcode Easy/Sum of All Subset XOR Totals.cpp:16
Methodsolve
Design/Design Spreadsheet.cpp:35
Methodsolve
Greedy/Greatest Sum Divisible by Three.cpp:58
Methodsolve
Greedy/Longest Binary Subsequence Less Than or Equal to K.cpp:17
MethodsolveForAlice
t[2][n+1][n+1] - 2*(n+1)*(n+1) ~n^2 * n ~ O(n^3)
DP/Game Strategy/Stone Game II.cpp:17
MethodsolveNQueens
Backtracking/N-Queens.cpp:88
MethodsolveOp
Stack/Parsing A Boolean Expression.cpp:15
MethodsolveQueries
HashMap/Closest Equal Element Queries.cpp:15
MethodsolveSudoku
Backtracking/Sudoku Solver.cpp:69
Methodsolve_BFS
Arrays/Jump Game IV.cpp:15
Methodsolve_BottomUp
Greedy/Two_City_Scheduling.cpp:84
Methodsolve_DFS
Arrays/Jump Game IV.cpp:102
Methodsolve_bottom_up
DP/Minimum Cost For Tickets.cpp:95
Methodsolve_dp
Sliding Window/Maximum Points You Can Obtain from Cards.cpp:92
Methodsolve_iter
Approach-2 DP(of APproach-1) (TLE)
DP/Super Egg Drop.cpp:41
Methodsolve_memoized
DP/Burst Balloons.cpp:9
Methodsolve_recurMemo
Greedy/Two_City_Scheduling.cpp:51
Methodsolve_sliding_window
Sliding Window/Maximum Points You Can Obtain from Cards.cpp:17
Methodsolve_topDown
DP/Burst Balloons.cpp:23
MethodsortArray
Arrays/Sort an Array.cpp:10
FunctionsortArrayByParity
Arrays/Sort Array By Parity.cpp:84
MethodsortArrayByParity
Arrays/Sort Array By Parity.cpp:12
MethodsortByBits
Bit_Magic/Sort Integers by The Number of 1 Bits.cpp:28
FunctionsortColors
Arrays/Sort Colors.cpp:102
MethodsortColors
Arrays/Sort Colors.cpp:16
MethodsortColors
Arrays/Sort Colors.cpp:93
MethodsortColors
Arrays/Sort Colors.cpp:137
MethodsortComp
Arrays/Intervals_Based_Qn/Meeting Rooms II.cpp:33
MethodsortDiagonal
Arrays/2-D Array/Sort Matrix by Diagonals.cpp:17
MethodsortFunc
I am sorting to give priority to the char which has highest frequency Because I would want it to come first in any button(key)
HashMap/Minimum Number of Pushes to Type Word II.cpp:16
FunctionsortItems
Graph/Topological Sorting/Sort Items by Groups Respecting Dependencies.cpp:56
FunctionsortJumbled
strings/Sort the Jumbled Numbers.cpp:151
MethodsortJumbled
strings/Sort the Jumbled Numbers.cpp:24
MethodsortMatrix
Arrays/2-D Array/Sort Matrix by Diagonals.cpp:44
FunctionsortVowels
strings/Sort Vowels in a String.cpp:90
MethodsortVowels
strings/Sort Vowels in a String.cpp:17
MethodsortedInsert
Linked List/Sorted insert for circular linked list.cpp:12
MethodsortedListToBST
Linked List/Convert Sorted List to Binary Search Tree.cpp:15
FunctionsortedSquares
Arrays/Leetcode Easy/Squares of a Sorted Array.cpp:80
MethodsortedSquares
Arrays/Leetcode Easy/Squares of a Sorted Array.cpp:15
MethodsoupServings
DP/Soup Servings.cpp:39
FunctionspanningTree
Graph/Minimum Spanning Tree (Prim's).cpp:65
MethodspanningTree
Function to find sum of weights of edges of the Minimum Spanning Tree.
Graph/Minimum Spanning Tree (Prim's).cpp:15
MethodspanningTree
Function to find sum of weights of edges of the Minimum Spanning Tree.
Graph/Minimum Spanning Tree (Kruskal's Algorithm).cpp:65
FunctionspecialArray
Arrays/Leetcode Easy/Special Array With X Elements Greater Than or Equal X.cpp:138
MethodspecialArray
Arrays/Leetcode Easy/Special Array With X Elements Greater Than or Equal X.cpp:16
FunctionspecialTriplets
HashMap/Count Special Triplets.cpp:121
MethodspecialTriplets
HashMap/Count Special Triplets.cpp:17
Methodspellchecker
HashMap/Vowel Spellchecker.cpp:59
MethodspiralMatrix
Arrays/2-D Array/Spiral Matrix IV.cpp:14
MethodspiralMatrixIII
Arrays/2-D Array/Spiral Matrix III.cpp:14
MethodspiralOrder
Arrays/2-D Array/Spiral Matrix.cpp:12
MethodsplitListToParts
Linked List/Split Linked List in Parts.cpp:15
MethodsplitPainting
Line Sweep Technique/Describe the Painting.cpp:17
Methodstep
Design/Walking Robot Simulation II.cpp:46
MethodstoneGame
DP/Game Strategy/Stone Game.cpp:31
MethodstoneGameII
DP/Game Strategy/Stone Game II.cpp:45
MethodstoneGameIII
DP/Game Strategy/Stone Game III.cpp:31
MethodstoreRootToLeaf
Tree/Count the nodes at distance K from leaf.cpp:16
MethodstrStr
strings/Find the Index of the First Occurrence in a String.cpp:10
MethodstrangePrinter
DP/Strange Printer.cpp:47
MethodstringIndices
Trie/Longest Common Suffix Queries.cpp:71
MethodstringMatching
strings/Easy Tagged/String Matching in an Array.cpp:16
MethodsubarrayBitwiseORs
HashSet/Bitwise ORs of Subarrays.cpp:15
FunctionsubarraySum
Arrays/Subarray Sum Equals K (O(n)).cpp:37
MethodsubarraySum
Arrays/Subarray Sum Equals K (O(n)).cpp:13
MethodsubarraysDivByK
Arrays/Subarray Sums Divisible by K .cpp:11
FunctionsubarraysWithKDistinct
Sliding Window/Subarrays with K Different Integers.cpp:142
MethodsubarraysWithKDistinct
Sliding Window/Subarrays with K Different Integers.cpp:46
MethodsubsetSum
DP/Partition Equal Subset Sum.cpp:62
MethodsubsetSum
DP/Target Sum.cpp:79
FunctionsubsetXORSum
Bit_Magic/Leetcode Easy/Sum of All Subset XOR Totals.cpp:142
MethodsubsetXORSum
Bit_Magic/Leetcode Easy/Sum of All Subset XOR Totals.cpp:30
Methodsubsets
Recursion/Subsets.cpp:36
Methodsubsets
Bit_Magic/Subsets.cpp:15
MethodsubsetsWithDup
Backtracking/Subsets II.cpp:19
MethodsuccessfulPairs
Arrays/Two Pointer/Successful Pairs of Spells and Potions.cpp:17
MethodsuccessfulPairs
Arrays/Binary Search/Successful Pairs of Spells and Potions.cpp:15
MethodsuggestedProducts
Design/Search_Suggestions_System.cpp:73
Methodsum
Tree/Count Nodes Equal to Average of Subtree.cpp:15
Methodsum
Tree/Easy/Sum of Left Leaves.cpp:15
MethodsumEvenAfterQueries
Arrays/Sum of Even Numbers After Queries.cpp:9
MethodsumFourDivisors
Mathematical/Four Divisors.cpp:40
MethodsumIfFourDivisors
Mathematical/Four Divisors.cpp:15
MethodsumNumbers
Tree/Sum Root to Leaf Numbers.cpp:34
MethodsumOfDistancesInTree
Graph/Sum of Distances in Tree.cpp:44
FunctionsumOfLeftLeaves
Tree/Easy/Sum of Left Leaves.cpp:111
← previousnext →3,301–3,400 of 3,557, ranked by callers