Python 3 EASY SOLUTION
Intuition and Approach\nI have created a list for storing all the possible values of altitude and have kept 0 in it beacuse in the question it is giving that it
# Intuition and Approach\nI have created a list for storing all the possible values of altitude and have kept 0 in it beacuse in the question it is giving that it starts with altitude equal to 0. And i have created a variable sum to add the values from the list gain and then appending it to the new list l.\n\n\n# Complexity\n\nTime Complexity: O(N)\nSpace Complexity: O(N)\n# Code\n```\nclass Solution:\n    def largestAltitude(self, gain: List[int]) -> int:\n        l=[0]\n        sum=0\n        for i in gain:\n            sum+=i\n            l.append(sum)\n        return max(l)\n```
['Python3']