Dynamic-Programming
LeetCode 312: Burst Balloons
·2 mins
LeetCode
Hard
Dynamic-Programming
Interval-Dp
Array
LeetCode 312 note: choose the last balloon k burst in the range (i, j); at that moment its neighbors are i and j, and the two sides are independent subproblems
LeetCode 3660: Jump Game IX
·2 mins
LeetCode
Medium
Dynamic-Programming
Array
LeetCode 3660 note: cutting between i and i+1, if the left max exceeds the right min the two sides reach each other and share the answer; otherwise the left answer is the left max
LeetCode 3952: Maximum Total Value of Covered Indices
·2 mins
LeetCode
Medium
Dynamic-Programming
State-Machine
Greedy
String
LeetCode 3952 note: each token moves left at most once, so the state is whether this index’s token moved left; moving only helps if the index to the left was not already covered
LeetCode 790: Domino and Tromino Tiling
·3 mins
LeetCode
Medium
Dynamic-Programming
LeetCode note for Domino and Tromino Tiling, rebuilt from the original learning note
LeetCode 276: Paint Fence
·3 mins
LeetCode
Medium
Dynamic-Programming
LeetCode note for Paint Fence, rebuilt from the original learning note
LeetCode 801: Minimum Swaps To Make Sequences Increasing
·4 mins
LeetCode
Hard
Dynamic-Programming
LeetCode note for Minimum Swaps To Make Sequences Increasing, rebuilt from the original learning note
LeetCode 376: Wiggle Subsequence
·3 mins
LeetCode
Medium
Dynamic-Programming
Greedy
LeetCode note for Wiggle Subsequence, rebuilt from the original learning note
LeetCode 714: Best Time to Buy and Sell Stock with Transaction Fee
·3 mins
LeetCode
Medium
Dynamic-Programming
State-Machine
LeetCode note for Best Time to Buy and Sell Stock with Transaction Fee, rebuilt from the original learning note
LeetCode 309: Best Time to Buy and Sell Stock with Cooldown
·3 mins
LeetCode
Medium
Dynamic-Programming
State-Machine
LeetCode note for Best Time to Buy and Sell Stock with Cooldown, rebuilt from the original learning note
LeetCode 198: House Robber
·2 mins
LeetCode
Medium
Dynamic-Programming
LeetCode note for House Robber, rebuilt from the original learning note
LeetCode 188: Best Time to Buy and Sell Stock IV
·4 mins
LeetCode
Hard
Dynamic-Programming
State-Machine
LeetCode note for Best Time to Buy and Sell Stock IV, rebuilt from the original learning note
LeetCode 123: Best Time to Buy and Sell Stock III
·4 mins
LeetCode
Hard
Dynamic-Programming
State-Machine
LeetCode note for Best Time to Buy and Sell Stock III, rebuilt from the original learning note