L4 - 1D DP | Climbing Stairs | How Problem Give Hints To Think Recursive? | LeetCode 70 Intuition

Опубликовано: 15 Май 2026
на канале: vHiren
1,024
like

Today in Lecture 4, we solve LeetCode 70 (EASY). Climbing Stairs problem using 1D Dynamic Programming and explain how the problem itself gives hints to think recursively. The structure of choosing 1 or 2 steps naturally forms the recurrence that drives the final DP formulation.

🌐 Don’t forget to select your language in YouTube settings for better understanding and subtitles!

⮕ Problem Link: https://leetcode.com/problems/climbin...
⮕ Code Link: https://github.com/hiren-j/dsaAffecti...

This series is designed to help you master Dynamic Programming for coding interviews and competitive programming. 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:07 - Approaching Recursion
8:36 - Discussing Time of Recursion
8:51 - Approaching DP
9:12 - Identifying Base Cases & Recursive Code
10:56 - Coding Memoization (Top Down DP)
12:38 - Memoization Time & Space Discussion
14:19 - Coding Bottom Up + 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
Video Link:    • LAKEY INSPIRED - Blue Boi  

Outro Music Credits :-
Song: Ikson - New Day (Vlog No Copyright Music)
Music provided by Vlog No Copyright Music.
Music Video:    • Ikson - New Day (Vlog No Copyright Music)  

🔔 Subscribe, Like & Share For More Series / Videos Like This.