If you have come this far watching this videos.... Congratulations you are in top 10% keep putting your efforts ,you will get success... thanks you love barbar for your efforts
Recurrence code int minimumSquareNumber(int num , int target){ if(target == 0) return 0; if(num < 1) return INT_MAX; int take = INT_MAX; if(target >= num * num){ take = 1 + minimumSquareNumber(num , target - num * num);} int notTake = minimumSquareNumber(num - 1 , target); return min(notTake, take) ; } int MinSquares(int n) { int num = sqrt(n); int res = minimumSquareNumber(num, n); return res; }
Babbar Sir Watching all of your DSA Series until now and doing practice But still pending DSA video to practice .. so Thanks for all these series to Crack Top company jobs
cant we optimize using a shortcut? like using float after cal under root of target number and then subtracting it with the sq of the whole no it comes closest to??
AWESOME CONTENT BHAIYA WATCHED EVERY VIDEO OF YOURS AND TH EXPLANATION IS TOP NOTCH. CAN YOU PLEASE MAKE A SIMILAR PLACEMENT PREARATORY COURSE ON SYSTEM DESIGN PLEASE!!
Start with easy questions. Try atleast for an hour. Still if you can't figure out the solution . First see editorials. Still if you can't figure out , then watch a solution video on yt. But at first try to get a strong base in DSA . I hope this will help.🙏🏻
we can also put ans = INT_MAX rather than n
it is quite easy to relate with the minimum situation
Bhaiya tabulation wale approach mai line no 49 pe instead of
for(int j=1;j*j
for(int j=1;j*j
If you have come this far watching this videos....
Congratulations you are in top 10% keep putting your efforts ,you will get success...
thanks you love barbar for your efforts
achanak kuch mahine me aap dsa dunia ka badshahh ban gaye.......kudos bhaiya
This series never forget in education life ❤❤❤
@3:00
Code @9:11
Paid course lene ke bad Bhi yahi lectures dekhne ka man krega.....Bhai ❤
Thanks Bhaiya❤
Recurrence code
int minimumSquareNumber(int num , int target){
if(target == 0) return 0;
if(num < 1) return INT_MAX;
int take = INT_MAX;
if(target >= num * num){ take = 1 + minimumSquareNumber(num , target - num * num);}
int notTake = minimumSquareNumber(num - 1 , target);
return min(notTake, take) ;
}
int MinSquares(int n)
{
int num = sqrt(n);
int res = minimumSquareNumber(num, n);
return res;
}
Loving this Series Bhaiya!!
#BelieveinBabbar
Garda Uda Diye hai , Bhaiya
Really maja aa gya bhaiya maine abhi tk dp.padhi nhi haa lekin kuch kuch samaj me aya mujhe iske liye thankyou bhaiya 😇😊🙏🙏🙏
Lots of love Bhaiya from Odisha ❤
Babbar Sir Watching all of your DSA Series until now and doing practice But still pending DSA video to practice .. so Thanks for all these series to Crack Top company jobs
// COMPLETE CODE WITH COMMENTS
class Solution{
public:
int solve(int n){
// base case
if(n == 0)
return 0;
int ans = n;
for(int i=1; i*i
Still in backtracking but came here to support you bhaiya 🥰🥰🥰
😂
Enjoying thisss at next level🔥
I'm Starting your DSA course bhaiya wish me good luck, i assure you within 2 months I'll complete this...
I can say with confidence that this is the one of the best DSA course in the world.
Love from Pakistan 🇵🇰❤️ bhaiya
man dsa also matters in pakistan
@@alexrcrew1975 haha yeah bro ❤️
nice to see we can unite through Technology..... btw do FAANG companies have their offices in Pakistan ??
@@dakshsinghrathore9584 no bro 🥺
@@shoaibkhan6022 ooh
Bhaiya DP pr to Bhool Bhulaiya 3 bn jayegi
love u love
Best Placement course ♥
bhaiya apna khud ka course bechte h
pr dusro ki promotion bhi krte h 😂
well jokes apart, bhaiya ne mast dp padhaya
thank you bhaiya ♥
Thank you Bhaiya, Just keep going... More strength to you . This is helping us a lot✨✨✨✨
a lot of thanks for this amazing free content
thank u bhaia u are a one of the best teacher
Amazing explanation bhaiya🔥🔥
81✅completed 👍Liked 2:55
Love you bhaiya ❤️
Thoda feel lene ke liye yaha aaya tha ..
Just completed Bsc and about to take admission in MCA
which clg
Great explanation! Thank you bhaiya🙏
400k 🤩🎉🎉🎉
use j
thank you bhaiya
maza aa gaya bhaiya
respect = INT_MAX;
Love you brother, Love from Bangladesh 🇧🇩
kamon acho dada ?? am from WB btw 😅
Thank u ji ❤
I think we wiil
Day 4 of DP
Mza aa gya Bhaiya
Thank you Bhaiya
Just completed Trees now will revise once & then start 🔥🔥
tabulation code
int num = sqrt(n);
vectordp(num+1, vector(n+1, -1));
for(int idx = 1; idx < num + 1; idx++) dp[idx][0] = 0;
for(int col = 0; col < n + 1; col++){ dp[0][col] = INT_MAX; }
for(int row = 1; row < num + 1; row++){
for(int target = 1; target < n+1; target++){
int take = INT_MAX;
if(target >= row * row){ take = 1 + dp[row][target - row * row];}
int notTake = dp[row - 1][target];
int temp = min(notTake, take);
dp[row][target] = temp;
}
}
return dp[num][n];
}
Thankyou bhiya ❤️❤️❤️
he is not Bhaiya.......
he is LOVE....
I have learnt alot from your lectures.Thank you bhaiya for this amazing dp series.
Great explanation
Nice video 😇😇😇
you are amazing
Great explaination
#love bhaiya ❤️❤️
Accenture ASE is asking this Q's 🙃
Awesome 👍👍👍
loved it
Nice explanation
very good
Thanks sir
thanks you bhaiya
Leetcode 279
cant we optimize using a shortcut? like using float after cal under root of target number and then subtracting it with the sq of the whole no it comes closest to??
Liked👍🏻
Bhaiya apne 5 ka example liya tha usme answer 2 aana chiye n kyuki hame 1 aur 2 ka square utilise karna pad rha hai?.
bhaiya dp sheet ki link bhej do
🔥🔥🔥🔥
Sir please arrange also contest sir
🙏
can we write the code without using for loop
Sir i cant think logic on my own. Pls guide 🙂
understand++
AWESOME CONTENT BHAIYA
WATCHED EVERY VIDEO OF YOURS AND TH EXPLANATION IS TOP NOTCH.
CAN YOU PLEASE MAKE A SIMILAR PLACEMENT PREARATORY COURSE ON SYSTEM DESIGN PLEASE!!
done
Bhaiya keep doing it
Bhaiya leetcode par qus solve nhi ho rha hai.....anyone help😭
Start with easy questions. Try atleast for an hour. Still if you can't figure out the solution . First see editorials. Still if you can't figure out , then watch a solution video on yt. But at first try to get a strong base in DSA . I hope this will help.🙏🏻
@@kushalchakraborty6970 bro lekin leetcode pr to qus ka format hi blkl change hota h krne ka kuch smj hi ni aata
time lagega bhai
dhire dhirr hone lgega
a
bhaiya orkitne videos baki ha is course me ?
i mean kitne or videos me compelete ho ajega ye course ?
bhaiya notes update krwa do
swad++
t
e
1st view
2/10 consistency++
Thank you bhaiya
🔥🔥🔥
bhaiya orkitne videos baki ha is course me ?
i mean kitne or videos me compelete ho ajega ye course ?
bhaiya orkitne videos baki ha is course me ?
i mean kitne or videos me compelete ho ajega ye course ?
🔥🔥🔥🔥