MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

Methodsolve
DP/Game Strategy/Maximum Number of Moves to Kill All Pawns.cpp:46
Methodsolve
DP/Game Strategy/Stone Game III.cpp:13
Methodsolve
DP/Game Strategy/Predict the Winner.cpp:13
Methodsolve
DP/Game Strategy/Stone Game.cpp:11
Methodsolve
DP/DP on Strings/Freedom Trail.cpp:26
Methodsolve
DP/DP on Strings/Palindrome Partitioning II.cpp:25
Methodsolve
DP/DP on Strings/Count Number of Balanced Permutations.cpp:65
Methodsolve
DP/DP on Strings/Shortest Common Supersequence.cpp:17
Methodsolve
DP/DP on Strings/Find All Possible Stable Binary Arrays II.cpp:18
Methodsolve
DP/DP on Strings/Find All Possible Stable Binary Arrays I.cpp:18
Methodsolve
DP/Bit Magic DP/Smallest Sufficient Team.cpp:16
Methodsolve
DP/DP on Grids/Maximum Amount of Money Robot Can Earn.cpp:20
Methodsolve
DP/DP on Grids/Maximum Path Score in a Grid.cpp:68
Methodsolve
DP/DP on Grids/Length of Longest V-Shaped Diagonal Segment.cpp:20
Methodsolve
DP/DP on Grids/Unique Paths II.cpp:19
Methodsolve
DP/DP on Grids/Maximum Non Negative Product in a Matrix.cpp:21
Methodsolve
DP/DP on Grids/Minimum Cost Path with Teleportations.cpp:21
Methodsolve
DP/DP on Grids/Paths in Matrix Whose Sum Is Divisible by K.cpp:18
Methodsolve
DP/DP on Grids/Number of Ways to Paint N × 3 Grid.cpp:24
Methodsolve
DP/DP on Grids/Count Square Submatrices with All Ones.cpp:16
Methodsolve
DP/DP on Grids/Number of Paths with Max Score.cpp:28
Methodsolve
DP/DP on Grids/Dungeon Game.cpp:72
Methodsolve
DP/1-D DP/House Robber II.cpp:14
Methodsolve
This returns number of people who first learn the secret on "day"
DP/1-D DP/Number of People Aware of a Secret.cpp:20
Methodsolve
DP/1-D DP/House Robber.cpp:14
Methodsolve
DP/1-D DP/Longest Arithmetic Subsequence of Given Difference.cpp:13
Methodsolve
DP/1-D DP/Taking Maximum Energy From the Mystic Dungeon.cpp:18
Methodsolve
DP/1-D DP/Trionic Array II.cpp:19
Methodsolve
DP/1-D DP/Minimum Array Sum.cpp:18
Methodsolve
DP/1-D DP/Fibonacci Number.cpp:12
Methodsolve
DP/1-D DP/Maximum Total Damage With Spell Casting.cpp:21
Methodsolve
DP/1-D DP/Maximum Number of Jumps to Reach the Last Index.cpp:17
Methodsolve
DP/1-D DP/Rotated Digits.cpp:51
Methodsolve
DP/1-D DP/Maximum Alternating Subsequence Sum.cpp:15
Methodsolve
DP/1-D DP/Climbing Stairs.cpp:14
Methodsolve
DP/Knapsack Series/Subset Sum Problem.cpp:17
Methodsolve
DP/Knapsack Series/0 - 1 Knapsack Problem Recursive.cpp:17
Methodsolve
For memoization
DP/LIS & Variants/Maximum Balanced Subsequence Sum.cpp:13
Methodsolve
DP/LIS & Variants/Build Array Where You Can Find The Maximum Exactly K Comparisons.cpp:17
Methodsolve
DP/MCM/Minimum Score Triangulation of Polygon.cpp:17
Methodsolve
DP/Digit DP/Total Waviness of Numbers in Range II.cpp:21
Methodsolve
DP/Digit DP/Maximize the Number of Partitions After Operations.cpp:19
Methodsolve
DP/Digit DP/Find Sum of Array Product of Magical Sequences.cpp:20
Methodsolve
Linked List/Palindrome Linked List.cpp:135
Methodsolve
Linked List/Reorder List.cpp:88
Methodsolve
Arrays/Minimum Lights to Activate.cpp:8
Methodsolve
Arrays/2-D Array/DFS/Longest_Increasing_Path_in_a_Matrix.cpp:11
Methodsolve
Arrays/Cumulative_Sum(Prefix Array)/Minimum Operations to Reduce X to Zero.cpp:45
Methodsolve
Arrays/Intervals_Based_Qn/Minimum Operations to Make Array Elements Zero.cpp:16
Methodsolve
Arrays/Intervals_Based_Qn/Maximum Number of Events That Can Be Attended II.cpp:18
Methodsolve
Arrays/Intervals_Based_Qn/Two Best Non-Overlapping Events.cpp:67
Methodsolve
Arrays/Binary Search/House Robber IV.cpp:17
Methodsolve
Arrays/Binary Search/Maximize the Distance Between Points on a Square.cpp:171
Methodsolve
Arrays/Binary Search/Binary Search.cpp:38
Methodsolve
Tree/Lowest Common Ancestor of Deepest Leaves.cpp:59
Methodsolve
Tree/Paths from root with a specified sum.cpp:15
Methodsolve
Tree/Reverse Odd Levels of Binary Tree.cpp:60
Methodsolve
Tree/Pseudo-Palindromic Paths in a Binary Tree.cpp:16
Methodsolve
Tree/Find Bottom Left Tree Value.cpp:17
Methodsolve
Tree/Smallest String Starting From Leaf.cpp:20
Methodsolve
Tree/Count Nodes Equal to Average of Subtree.cpp:27
Methodsolve
Tree/Amount of Time for Binary Tree to Be Infected.cpp:73
Methodsolve
Tree/Binary Tree Maximum Path Sum.cpp:18
Methodsolve
Tree/Construct Binary Tree from Preorder and Inorder Traversal.cpp:12
Methodsolve
Tree/Longest ZigZag Path in a Binary Tree.cpp:39
Methodsolve
Tree/Even Odd Tree.cpp:71
Methodsolve
Tree/Foldable Binary Tree.cpp:47
Methodsolve
Tree/Number of Good Leaf Nodes Pairs.cpp:86
Methodsolve
Tree/Recover a Tree From Preorder Traversal.cpp:17
Methodsolve
Tree/Distribute Coins in Binary Tree.cpp:14
Methodsolve
Tree/Construct Binary Tree from Preorder and Postorder Traversal.cpp:15
Methodsolve
Tree/Count the nodes at distance K from leaf.cpp:55
Methodsolve
Tree/N-Ary Tree/Construct Quad Tree.cpp:27
Methodsolve
Tree/Easy/Sum of Root To Leaf Binary Numbers.cpp:15
Methodsolve
Tree/Easy/Sum of Left Leaves.cpp:45
Methodsolve
Tree/BST/Binary Search Tree to Greater Sum Tree.cpp:17
Methodsolve
HashMap/Restore the Array From Adjacent Pairs.cpp:15
Methodsolve
Backtracking/Combination Sum II.cpp:15
Methodsolve
Backtracking/Letter Combinations of a Phone Number.cpp:17
Methodsolve
Backtracking/Maximum Score Words Formed by Letters.cpp:18
Methodsolve
Backtracking/24 Game.cpp:18
Methodsolve
Backtracking/N-Queens.cpp:65
Methodsolve
Backtracking/Expression Add Operators.cpp:13
Methodsolve
Backtracking/Find the Minimum Cost Array Permutation.cpp:18
Methodsolve
Backtracking/Construct the Lexicographically Largest Valid Sequence.cpp:16
Methodsolve
Backtracking/Palindrome Partitioning.cpp:75
Methodsolve
Backtracking/Generate Parentheses.cpp:29
Methodsolve
2^9 O(9 ^ 81)
Backtracking/Sudoku Solver.cpp:43
Methodsolve
Backtracking/Combinations.cpp:12
Methodsolve
Backtracking/Permutations.cpp:14
Methodsolve
Backtracking/Fair Distribution of Cookies.cpp:15
Methodsolve
Backtracking/Letter Tile Possibilities.cpp:17
Methodsolve
Backtracking/Split a String Into the Max Number of Unique Substrings.cpp:16
Methodsolve
Backtracking/Maximum Number of Achievable Transfer Requests.cpp:21
Methodsolve
Backtracking/All Unique Permutations of an array.cpp:19
Methodsolve
Backtracking/Combination Sum IV.cpp:20
Methodsolve
Backtracking/Permutations II.cpp:66
Methodsolve
Backtracking/Word Break II.cpp:18
Methodsolve
Backtracking/The k-th Lexicographical String of All Happy Strings of Length n.cpp:15
Methodsolve
Backtracking/Pyramid Transition Matrix.cpp:17
← previousnext →3,201–3,300 of 3,557, ranked by callers