Find the maximum profit from one buy and one sell given daily prices.
Constraints
Example
```python >>> max_profit([7, 1, 5, 3, 6, 4]) 5 >>> max_profit([7, 6, 4, 3, 1]) 0 >>> max_profit([3, 3, 3]) 0 ```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints