https://leetcode.com/problems/longest-ideal-subsequence/description/
Max length of less than
Max length of less than
k
adjucent subsequence #medium #dynamic_programming👍1
https://leetcode.com/problems/minimum-falling-path-sum-ii/description/
Min non-direct path top down in a 2D matrix #hard #dynamic_programming
Min non-direct path top down in a 2D matrix #hard #dynamic_programming
👍1
https://leetcode.com/problems/freedom-trail/description/
Min steps to produce
Min steps to produce
key
by rotating ring
#hard #dynamic_programming #recursion #hash_map👍1
https://leetcode.com/problems/palindrome-partitioning/description/
All palindrome partitions #medium #dfs #dynamic_programming
All palindrome partitions #medium #dfs #dynamic_programming
👍2🥰1
https://leetcode.com/problems/word-break-ii/description/
All string splits with dictionary #hard #dfs #dynamic_programming
All string splits with dictionary #hard #dfs #dynamic_programming
🔥3👍2
https://leetcode.com/problems/student-attendance-record-ii/description/
N times: A -> LP, L -> AP, P -> AL, at most one A, no LLL #hard #dynamic_programming
N times: A -> LP, L -> AP, P -> AL, at most one A, no LLL #hard #dynamic_programming
👍3🔥1
https://leetcode.com/problems/minimum-difference-between-largest-and-smallest-value-in-three-moves/description/
Min difference after 3 changes in array #medium #sliding_window #dynamic_programming
Min difference after 3 changes in array #medium #sliding_window #dynamic_programming
👍2
https://leetcode.com/problems/filling-bookcase-shelves/description/
Min total height to split
Min total height to split
[[w,h]]
array by shelfWidth
#medium #dynamic_programming👍2
https://leetcode.com/problems/maximum-number-of-points-with-cost/description/
Max top-down path sum with column diff in 2D matrix #medium #dynamic_programming
Max top-down path sum with column diff in 2D matrix #medium #dynamic_programming
👍2
https://leetcode.com/problems/2-keys-keyboard/description/
Min copy-pastes to make
Min copy-pastes to make
n
A
's from one #medium #dynamic_programming #math👍2