Best Time to Buy and Sell Stock with Transaction Fee | Live Coding with Explanation | Leetcode - 714

preview_player
Показать описание
Detail explanation for Best Time to Buy and Sell Stock with Transaction Fee - Leetcode Problem 714.

Join this channel to get access to perks:

To support us you can donate

Check out our other popular playlists:
Questions you might like:

If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful.

#coding #leetcode #programminglife #programmingisfun #programmer #tech #software #codinglife #leetcode
Рекомендации по теме
Комментарии
Автор

I work in IT for three years and seeing how you solved it in few lines of code I see that I am simply dumb😭

NiceAsIce
Автор

Superb solution ❤️ but what is the intuition behind the formulas. I request you to ans this😇

k.k
Автор

Why effective price is current price minus profit?

MrFrimko
Автор

May I ask when u say `effectiveBuy = min(effectiveBuy, price[i] - profit)`, why it has to be `price[i] - profit` ?

eddiej