Number of Ways to Stay in the Same Place After Some Steps | Recursion | Memoization | Leetcode- 1269
Whatsapp Community Link : https://whatsapp.com/channel/0029Va6kVSjICVfiVdsHgi1A
This is the 70th Video on our Dynamic Programming (DP) Playlist.
In this video we will try to solve a very good DP Problem - Number of Ways to Stay in the Same Place After Some Steps (Leetcode-2742).
I will be explaining the recursion+memo approach in this video.
A separate video will come for Bottom Up of this video.
I will explain the intuition so easily that you will never forget and start seeing this as cakewalk EASYYY.
We will do live coding after explanation and see if we are able to pass all the test cases.
Problem Name : Number of Ways to Stay in the Same Place After Some Steps
Company Tags : GOOGLE, META
My solutions on Github : https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/DP/Number%20of%20Ways%20to%20Stay%20in%20the%20Same%20Place%20After%20Some%20Steps.cpp
Leetcode Link : https://leetcode.com/problems/number-of-ways-to-stay-in-the-same-place-after-some-steps/
My DP Concepts Playlist : https://youtu.be/7eLMOE1jnls
My Graph Concepts Playlist : https://youtu.be/5JGiZnr6B5w
My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Interview_DS_Algo
Subscribe to my channel : https://www.youtube.com/@codestorywithMIK
Instagram : https://www.instagram.com/codestorywithmik/
Facebook : https://www.facebook.com/people/codestorywithmik/100090524295846/
Twitter : https://twitter.com/CSwithMIK
Problem Description - 00:00
Intuition Building - 3:58
Tree Diagram - 4:35
Facts about Tree Diagram - 10:29
Story to code - 11:00
Memoization - 13:03
Code live - 17:02
Time Complexity - 20:07
Space optimisation - 21:07
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge#leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview#interviewtips #interviewpreparation #interview_ds_algo #hinglish #github #design #data #google #video #instagram #facebook