Greedy Algorithms - Best Time to Buy and Sell Stock II
Given the final profit output of 7 from the peak-valley approach on an unknown price array of length 6, which of the following could be the original prices?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions