L10 - Subsequences DP | Length of Longest Subsequence Sums To Target | 2D DP | LeetCode 2915
Автор: vHiren
Загружено: 2026-03-16
Просмотров: 19
Описание:
Today in Lecture 10 of Subsequences DP, we solve LeetCode 2915 (MEDIUM). Length of Longest Subsequence That Sums to Target problem using 2D Dynamic Programming. We model pick–skip subsequence decisions, track remaining target, and maximize the subsequence length while forming valid sums. Learn Recursion ⮕ Memoization ⮕ Tabulation ⮕ Space Optimization and build your DP foundation in Hindi.
🌐 Don’t forget to select your language in YouTube settings for better understanding and subtitles!
⮕ Problem Link: https://leetcode.com/problems/length-...
⮕ Code Link: https://github.com/hiren-j/dsaAffecti...
Welcome back to the ULTIMATE DP SERIES in HINDI | vHiren DP Series
This series is designed to help you master Dynamic Programming for coding interviews. From beginner to advanced level, this series covers 12 DP Patterns In which we'll be focusing on recursion, memoization, tabulation, space optimization—everything you need to know about DP. Here are the patterns which you'll be learning :-
⮕ 1D DP
⮕ Multi Dimensional DP
⮕ Subarrays DP
⮕ Subsequences DP
⮕ LIS DP
⮕ String DP
⮕ Stocks DP
⮕ Game Theory DP
⮕ Partition DP
⮕ Square Submatrix DP
⮕ Tree DP
⮕ Graph DP
Video Chapters :-
0:00 - Understanding The Problem
3:09 - How Problem Give Hints To Think Recursive
3:24 - Approaching Recursion
12:48 - Recursive Code
14:14 - Recursion Time + Approaching DP
14:28 - Code Memoization + Time Space Discussion
18:18 - Code Tabulation + Time Space Discussion
📲 Follow Me On
🔹 LinkedIn: / hirenjoshi1630
🔹 GitHub: https://github.com/hiren-j
🔹 Instagram: / cuzvhiren
Intro Music Credits :-
Song: Blue Boi
Music provided by LAKEY INSPIRED
Music Video: • LAKEY INSPIRED - Blue Boi
🔔 Subscribe, Like & Share For More Series / Videos Like This.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: