1. 학습
  2. /
  3. 강의
  4. /
  5. Optimizing Code in Java

Connected

연습 문제

Finding the max value in an array

In many data processing applications, memory efficiency is crucial. Your task is to implement a method that finds the maximum value in a large dataset.

지침

100 XP
  • Initialize the max value in the findMaxValue method to the first element of the array.
  • Update max value when the current value is greater than it.