Fix the function finding the max number. The array is non-empty and contains finite numbers. Check the loop bound: reading past the array does not produce a number.
Sign in to solve this challenge — an account is free. The demo works without one.
All puzzles are free. An account unlocks the full catalog, saved progress and points.