easy
+10 XP
ALGORITHM

Max Profit

Given prices array, find the max profit from one buy and one sell.
You're exploring as a guest. Create a free account to save progress and submit solutions.
main.js
Loading...
Console Output
Run your code to see the output here...