Python3 Solution
\n\nclass Solution:\n    def largestAltitude(self, gain: List[int]) -> int:\n        curr=0\n        highest=0\n        for x in gain:\n            curr+=x\n   
\n```\nclass Solution:\n    def largestAltitude(self, gain: List[int]) -> int:\n        curr=0\n        highest=0\n        for x in gain:\n            curr+=x\n            highest=max(curr,highest)\n\n        return highest    \n```
['Python', 'Python3']