Maximum profit by buying and selling a share at most twice🔥🔥 | Array | DP | Love Babbar DSA Sheet

  Рет қаралды 9,892

Ayushi Sharma

Ayushi Sharma

Күн бұрын

Пікірлер: 36
@shubhambhaskar8803
@shubhambhaskar8803 2 жыл бұрын
I was stuck on figuring out the sequence for the buy sell series. As soon as I saw the array split at 13:11, it became clear and I was able to code it. All cases accepted. Thanks.
@gitanjalikumari9262
@gitanjalikumari9262 2 жыл бұрын
I have seen so many video but don't able to got concept for this problem..but when i see ur video i goted everything.. thank you😊.plz uploading such video
@kaushikbhat74
@kaushikbhat74 10 ай бұрын
i have seen so many comments but able to got concept ....but when I see ur comment I dont goted anything...thank you😊.plz stop uploading such comments😂🤣
@pratyushtripathi1728
@pratyushtripathi1728 Жыл бұрын
Thank you, Ayushi 😊
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
welcome Pratyush :)
@pursottamsah6430
@pursottamsah6430 2 жыл бұрын
Your explanation is so great that I even don't look into your code and boom answer accepted Happy Rakhshabandhan ♥️
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thank you so much Pursottam 😄 Happy rakshabandhan 🥰
@rabindrapatra7151
@rabindrapatra7151 5 ай бұрын
But questions is how did you derive this approach? It looks like you are telling the approach what is happening in code.
@harrrsh05
@harrrsh05 2 жыл бұрын
When I solve a problem first times, it doesn't get solved. When you solve it the first time, do you make it the first time? and if you stuck in any problem after attempting for multiple time then form where you find solution ?
@rohitadalinge1596
@rohitadalinge1596 3 жыл бұрын
Thank you for video👍👍 Keep posting such content...
@AyushiSharmaDSA
@AyushiSharmaDSA 3 жыл бұрын
Yup. Welcome. Glad it helped :)
@shouryamishra340
@shouryamishra340 7 ай бұрын
what is the time complexity
@InderjeetSingh-eb8py
@InderjeetSingh-eb8py 2 жыл бұрын
very well explained
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thanks :)
@studycoderguy8291
@studycoderguy8291 2 жыл бұрын
ngl this is a great soln..well structured with time checkpoints so that our time is not wasted and also code is available...just one thing...maybe if u include the algo used in form of steps...it would be like a complete thing and definately would help us .But thanks a lot.
@abhijeet5346
@abhijeet5346 2 жыл бұрын
Thanks it helps a lot
@devansh462
@devansh462 3 жыл бұрын
Nice informative vidoe thanks 👌
@AyushiSharmaDSA
@AyushiSharmaDSA 3 жыл бұрын
Welcome. Glad it helped :)
@RitiKumari
@RitiKumari 3 жыл бұрын
Insightful ☺️
@AyushiSharmaDSA
@AyushiSharmaDSA 3 жыл бұрын
Thank you :)
@nikhilhero9131
@nikhilhero9131 3 жыл бұрын
Aapne coding kaun se platform se seekha hai
@AyushiSharmaDSA
@AyushiSharmaDSA 3 жыл бұрын
KZbin
@AyarnMan
@AyarnMan 2 жыл бұрын
Thanks !!
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome :)
@yogeshyts
@yogeshyts 3 жыл бұрын
Your videos are video helpful, but I have a suggestion to use a good mic to record audio
@AyushiSharmaDSA
@AyushiSharmaDSA 3 жыл бұрын
Thanks for the tip
@omprakash4558
@omprakash4558 3 жыл бұрын
I don't think max profit will alter if we start first traversal from left to right and then right to left! am i right?
@AyushiSharmaDSA
@AyushiSharmaDSA 3 жыл бұрын
Yes, it won't alter
@ecs185_shaileshbharti3
@ecs185_shaileshbharti3 3 жыл бұрын
👍👌
@AyushiSharmaDSA
@AyushiSharmaDSA 3 жыл бұрын
glad you found it useful :)
@hadiali5922
@hadiali5922 2 жыл бұрын
Amazing explanation Is there a playlist of these questions, because I couldn't find it
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thanks Hadi, yes there is array playlist :)
@hadiali5922
@hadiali5922 2 жыл бұрын
@@AyushiSharmaDSA Can you share it, I can't find it while sliding towards your playlist section
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
@@hadiali5922 sure :) kzbin.info/aero/PLPyD8bF-abzszl5o0RUBkx7JW07wbHqgg
@pranavkorhale5089
@pranavkorhale5089 2 жыл бұрын
I just want help from you, how I will contact u.
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Hi Pranav, let’s connect over linkedin:)
Maximum Product Subarray🔥 | Array | Love Babbar DSA sheet | Hindi
14:10
Triplet Sum in Array | Array | Love Babbar DSA Sheet | Hindi
8:41
Ayushi Sharma
Рет қаралды 11 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
DP 35. Best Time to Buy and Sell Stock | DP on Stocks 🔥
9:11
take U forward
Рет қаралды 435 М.
Maximum profit by buying and selling a share atmost twice | Q26 | DSA Sheet | Amazon | Leetcode
15:39
DP 36. Buy and Sell Stock - II | Recursion to Space Optimisation
35:34
take U forward
Рет қаралды 259 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.