Medium
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 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 3932: Count K-th Roots in a Range
·3 mins
LeetCode
Medium
Binary-Search
Math
LeetCode 3932 note: the answer is floor(r^(1/k)) - floor((l-1)^(1/k)); take roots with integer binary search and count 0 too
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 122: Best Time To Buy And Sell Stock II
·2 mins
LeetCode
Medium
Dynamic-Programming
Greedy
State-Machine
LeetCode note for Best Time To Buy And Sell Stock II, rebuilt from the original learning note
LeetCode 53: Maximum Subarray
·3 mins
LeetCode
Medium
Dynamic-Programming
Kadane
LeetCode note for Maximum Subarray, rebuilt from the original learning note
LeetCode 413: Arithmetic Slices
·3 mins
LeetCode
Medium
Dynamic-Programming
LeetCode note for Arithmetic Slices, rebuilt from the original learning note
LeetCode 983: Minimum Cost For Tickets
·3 mins
LeetCode
Medium
Dynamic-Programming
LeetCode note for Minimum Cost For Tickets, rebuilt from the original learning note
LeetCode 343: Integer Break
·3 mins
LeetCode
Medium
Dynamic-Programming
LeetCode note for Integer Break, rebuilt from the original learning note