Return the maximum profit from one buy and one sell. Variant **#29**.
Example 1
Input: prices = [9,12,8,11,14,10,13,9,12,8,11,14,10,13,9]
Output: 6
Constraints
Acceptance: 74% · Topics: array, dynamic-programming
← All practice problems