Python3 ✅☑✅ || Faster than 86% || Memory beats 96.48%
Code\n\nclass Solution:\n    def loadAltitude(self, gain):\n        altitude = [0]\n        for i in range(len(gain)+1):\n            altitude.append(sum(gain[:
# Code\n```\nclass Solution:\n    def loadAltitude(self, gain):\n        altitude = [0]\n        for i in range(len(gain)+1):\n            altitude.append(sum(gain[:i]))\n        return altitude\n    def largestAltitude(self, gain: List[int]) -> int:\n        altitude = self.loadAltitude(gain)\n        return max(altitude)\n```\n\n![image.png](https://assets.leetcode.com/users/images/345ef083-5b93-449d-bda3-ced8778e8e94_1670113928.0611699.png)\n![image.png](https://assets.leetcode.com/users/images/9690b716-5137-4f3a-89c7-b09ffc870e5d_1670114012.3162882.png)\n
['Python3']