The state diagram really helped ,can't say why it works but your explanation is awesome
@KnowledgeCenter3 жыл бұрын
Thanks for the compliment.
@jonathanlee30204 жыл бұрын
Thank You. Could you kindly do one for "188. Best Time to Buy and Sell Stock IV" using that state transition algo?
@chetanpatteparapu76003 жыл бұрын
Thank you for this problem. Can you please make a video on "Best Time to Buy and Sell Stock IV"?
@0anant04 жыл бұрын
Is my understanding correct? (plz explain, if wrong) for ith day, A = max money (accumulated) so far B = max money after buy C = max money after sell = max profit Thanks!
@KnowledgeCenter4 жыл бұрын
Yes. Can think like that.
@sakthim71604 жыл бұрын
Clean and clear explanation. Thank you so much to knowledge center.
@KnowledgeCenter4 жыл бұрын
You are welcome!
@SwetankRaj3 ай бұрын
Nice explanation with fabulous approach.
@harigovind113 жыл бұрын
Great explanation as always. Minor point is variables could be more readable.
@KnowledgeCenter3 жыл бұрын
Thanks. Yes. variable names can be made better.
@vaishalirathore37233 жыл бұрын
how is the state approach taking cooldown into account?
@toaster3074 жыл бұрын
Thanks so much! I watch your videos everyday :)
@KnowledgeCenter4 жыл бұрын
Keep writing code on daily basis. It helps.
@abhishekkumar-bv9tv4 жыл бұрын
your videos are great. It really helps a lot. but It's really difficult to understand your last few videos since the explanation is not clear.and also video length is getting longer, if possible please try to make it short (max ~= 15 min)
@KnowledgeCenter4 жыл бұрын
Sorry about that
@abhishekkumar-bv9tv4 жыл бұрын
@@KnowledgeCenter There is nothing to be sorry about, you are doing great.keep going!
@akshay69434 жыл бұрын
Subscribed! Can you share the logic to get the path also ?
@zhaoningzhang71164 жыл бұрын
Pretty clear explanation. Thanks much sir.
@KnowledgeCenter4 жыл бұрын
Glad it helped
@AlokKumar-jh8wp4 жыл бұрын
Amazing sir it is well crafted explanation.
@devashishd50814 жыл бұрын
Keep up the good work!
@vivanverma50604 жыл бұрын
Amazing explanation, thank you 🙌🏽
@KnowledgeCenter4 жыл бұрын
Glad it was helpful!
@RishiRaj-dl1mg4 жыл бұрын
At 8:55 why you have started B from -1, since b can come from prev_b which is 0 and better than -1?
Can you please make video for transaction fee problem also
@MYUCOZ13 жыл бұрын
what if we have "k" number of days as cool down period
@pratyushranjansahu94954 жыл бұрын
I was going through the explanation ..It was difficult for the first time but slowly..i was able to getting it... Thanks. Learning around more than 100 problems from u , during this lock down..
@nikhilnischal40194 жыл бұрын
Loved it
@janmichaelaustria6204 жыл бұрын
Thank you again sir!
@shivanktripathi46614 жыл бұрын
how can we backtrack from the result.......
@srikantsharma64304 жыл бұрын
Nice explanation!
@KnowledgeCenter4 жыл бұрын
Thanks!
@manthankhorwal14774 жыл бұрын
Not a good explanation
@gouravgoel29744 жыл бұрын
DO YOU KNOW HOW MUCH EFFORT IT TAKES, FOOL!🤬
@manthankhorwal14774 жыл бұрын
@@gouravgoel2974 am i asking you ? just giving my feedback about the video ... Idiot
@KnowledgeCenter4 жыл бұрын
No need to fight guys. I'll try to make it more clearer in future videos. Thanks for the feedback.