Discussion
Do not post solutions here. This page is intended only to ask questions about problem, tips if you stuck or discuss problem in general.
Loading
Just a moment, getting data from the server
user171027 It looks like the solution you submitted is almost there, but there's a subtle issue in how you're determining the maximum value in the array.
You're initializing m to 0, and then comparing it to each element in the array to find the maximum value. However, what happens if all the numbers in the array are negative? Since m starts at 0, any negative number will never be considered the maximum.