-
1732. Find the Highest AltitudeAlgorithm/python tip 2021. 3. 1. 19:58
leetcode.com/problems/find-the-highest-altitude/
class Solution(object): def largestAltitude(self, gain): result = [0] for i in range(0, len(gain)): result.append(result[i] + gain[i]) return max(result) """ :type gain: List[int] :rtype: int """
'Algorithm > python tip' 카테고리의 다른 글
[programmers] 스택/큐 - 기능개발 (0) 2021.03.02 1588. Sum of All Odd Length Subarrays (0) 2021.03.01 1679. Max Number of K-Sum Pairs (0) 2021.03.01 137. Single Number II (0) 2021.03.01 set을 만들지 않고 list 차집합 구하기(for in if not in) (0) 2021.03.01