JAVA_LeetCode 1732_Find the Highest Altitude 풀이 class Solution { public int largestAltitude(int[] gain) { int sum = 0, max = 0; for(int i = 0; i < gain.length; i++){ sum += gain[i]; max = Math.max(sum, max); } return max; } } * 출처 https://leetcode.com/problems/find-the-highest-altitude...
JAVA_LeetCode 1732_Find the Highest Altitude에 대한 요약내용입니다.
자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.