You are given a prices, where prices[i] represents the price of a given stock on day i.
A sequence of chosen indices
pricesprices
The score of a linear selection is the sum of prices
Return the maximum possible score of a linear selection.
Constraints:
prices.length
prices[i]
You are given a prices, where prices[i] represents the price of a given stock on day i.
A sequence of chosen indices
pricesprices
The score of a linear selection is the sum of prices
Return the maximum possible score of a linear selection.
Constraints:
prices.length
prices[i]