Simple 1 liner in Python
\n\n# Code\n\nclass Solution:\n    def largestAltitude(self, gain: List[int]) -> int:\n        return max(accumulate([0]+gain))\n
\n\n# Code\n```\nclass Solution:\n    def largestAltitude(self, gain: List[int]) -> int:\n        return max(accumulate([0]+gain))\n```
['Python3']