Greedy Algorithms - Best Time to Buy and Sell Stock II
If the Best Time to Buy and Sell Stock II problem is modified to include a cooldown day after selling (you cannot buy the next day), which approach is best suited to solve this variant?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions