Array
3652. Best Time to Buy and Sell Stock using Strategy
Given prices prices and a "strategy" array of window size k. Base profit = Σ strategy[i]·prices[i]. You may choose one window of length k and replace its strategy: zero out the first half (don't…
Loading…