Dateneed_reviewneed_reviewtype剑指 Offer(第 2 版)undoundo难度中等假设把某股票的价格按照时间先后顺序存储在数组中,请问买卖该股票一次可能获得的最大利润是多少?示例 1:示例 2:限制:0 <= 数组长度 <= 10^5注意:本题与主站 121 题相同:https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/