Minimum number of Jumps to reach end of an array (DP approach) | Q10 | Love Babbar DSA Sheet
Vložit
- čas přidán 1. 11. 2020
- #coding #competitiveprogramming #interviewquestions #dsaseries
In this video I have explained the 10th problem.
Here I have explained DP approaches whose time complexity is O(N²).
One more approach is their whose time complexity is O(N), Link of the video-- • Minimum number of Jump...
String question Playlist = • Love Babbar DSA 450 Qu...
Array question Playlist = • Love Babbar DSA 450 Qu...
Love Babbar DSA sheet : drive.google.com/file/d/1FMdN...
Hope you like it. If have any doubt then just comment down below.
LIKE | SHARE | SUBSCRIBE
I find O(N) solution much tougher than DP one. Can't understand it
Great solution!
bro i am having TLE in gfg, should i go O(n)}? need some modifications?
Is this solution currently being accepted by GFG? In my case it is giving TLE for this O(n^2) approach, though it was accepted few months back.
Kindly confirm.
I guess they have now set the time constraints w.r.t O(N) solution.
agree.. i tried just now, it isn't accepting it now
@@AyushGupta-kp9xf yes, I'm facing the same issue
The approach discussed here is o(n^2) dp that will not pas gfg . Gfg requires o(n)
Watch rachit jain's video, he has done this problem using dynamic programming.
Bro, please try that once more in the GFG I guess constraints are changed and you might get TLE this time.
same issue
@@jolly_dollyyy try the other approach.
I guess they have uploaded a video for nlogn solution.
thanks alot u are awesome
Osm video 👍👍
can someone explain why we are adding 1 in line 29?
🔥🔥🔥
Thanks
U guys are great 🔥
Thanks
Good .
How to remove driver code on gfg
Please make a video series about dynamic programming and greedy algorithm please vaiya I can't solve the question from DP and greedy
After this series we will be uploading videos related to dp also
one Q how are u pasting your own code in IDE. most of the Q tells us to complete the function instead of writing the code from scratch :(
pls make video on minimize the heights question.
ya we will make that shortly😀
Great 👍👍
Thank you 👍
I've tried with DP approach on my own. That shows Time limit exceed.
Then found this approach and then again time limit exceed. Yuo've really explained it well ❤
abhi going to watch your last video of O(N) hope that works :/
@Codelibrary please complete the course fast ,I'm final year student
got TLE with this code
Bro i solve with complete O(n) till got TLE
you can make video in 1080p
Can you tell me how do we get to know where to apply dp
jha par overlapping subproblems dikh rahi ho
nicely explained ...bas number of steps/jumps ko number of ways bol rhe the is liye confusion ho rahi thi thodi
well explained bro
Keep it up
Thanks 🙂
@@CodeLibrary plz share the code recursive way
whenever i see these type of questions, I always think of recursion method and not dynamic programming , how to think a solution for dynamic programming, it is very tough to think a solution for DP
please give any suggestion or tutorial on DP with examples
Check Aditya Verma DP Playlist!
@@shivanshuamitabh831 link ?
czcams.com/play/PL_z_8CaSLPWekqhdCPmFohncHwz8TY2Go.html
try to draw the recursion tree, if u find same subproblems , then its dp, i,e, use memoization
plz explain o(N) make a video and also write code java
We have uploaded O(N) solution go and have a look to our channel 😀
why you skipped 9th one?
why is it dp[j]+1
Somebody plz
TLE!!!!!!!!!
TLE Op
Cant get it from your explanation . IDK why : (
n wale video banao
We have uploaded O(N) solution go and have a look to our channel 😀
bhai please make videos in hindi
plz java code
Actually if we write in all languages then video will become long... that's why try to understand the logic and implement by yourself.😀
Bro please upload videos in English alone. As it can be understood by everyone.. I understood your previous videos but not this one.
Don't just assume the entire world knows Hindi
bhaiya, hindi use kara karo, usme bestter samaajh me aata hai
Are ye jabardasti ki english bolni jaruri h kya
Seedha seedha hindi m smjha do agr nhi bola jara english m toh
Bhai mai bhi yhi soch rha tha ,pr shadad South walo ke liye bolta hoga English me shayad
@@amyanktiwari m bhi same yhi soch rha tha
@@amyanktiwari 💝
Bhai yrr tu boht confuse krta hai yrr
I really think you need to improve your explanation.
Talk in English/Hindi. Half way through, changing a language made this video useless
bakwas