Mwenaro
Arena
Home
Challenges
Leaderboard
Practice
Home
Challenges
Leaderboard
Practice
Home
Coding challenges
Max Profit
easy
+10 XP
ALGORITHM
Max Profit
Given prices array, find the max profit from one buy and one sell.
Instructions
You're exploring as a guest. Create a free account to save progress and submit solutions.
Sign up
Log in
main.js
Ctrl+Enter run ยท Ctrl+Shift+Enter submit
Hide Console
Run Tests
Submit
Loading...
Console Output
Run your code to see the output here...