Longest Arithmetic Subsequence of Given Difference (LeetCode 1218)
MediumLeetCode 1218 · Subsequences/Strings (LCS, Edit Distance) · Google, Meta · 32:28Longest Arithmetic Subsequence of Given Difference · Recur + Memo · Optimal · META · Leetcode-1218My notes
Sign in to keep private notes on every station, with video timestamps.
Pause here and write your approach in two lines. Compare it with MIK's when the video ends.
Sign in to write your approach →About this video
Video solution for LeetCode 1218 Longest Arithmetic Subsequence of Given Difference by codestorywithMIK: Dynamic Programming, Medium. Topics: Array, Hash Table, Dynamic Programming. Watch the explanation, then check the code and solve it on LeetCode.
- Difficulty
- medium
- Topics
- Array, Hash Table, Dynamic Programming
- Patterns
- Subsequences/Strings (LCS, Edit Distance)
- Chapter
- Dynamic Programming
- Duration
- 32:28
Related problems
- Maximum Alternating Subsequence Sum (LeetCode 1911)
- Longest Increasing Subsequence (LeetCode 300)
- Maximum Balanced Subsequence Sum (LeetCode 2926)
- Print Longest Common Subsequence
- Shortest Common Supersequence
- Print Shortest Common Supersequence (LeetCode 1092)
- Edit Distance (LeetCode 72)
- Palindromic Substrings (LeetCode 647)