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