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