Simple Solution in both Python and C++ languages😊
Solution \nPython3 []\nclass Solution:\n    def largestAltitude(self, gain: List[int]) -> int:\n        highest_point = 0\n        prev_altitude = 0\n        fo
# Solution \n```Python3 []\nclass Solution:\n    def largestAltitude(self, gain: List[int]) -> int:\n        highest_point = 0\n        prev_altitude = 0\n        for i in gain:\n            prev_altitude += i\n            highest_point = max(highest_point, prev_altitude)\n\n        return highest_point\n```\n```C++ []\nclass Solution {\npublic:\n    int largestAltitude(vector<int>& gain) {\n        int highest_point = 0;\n        int prev_point = 0;\n        for (int i = 0; i < gain.size(); i++){\n            prev_point += gain.at(i);\n            highest_point = max(highest_point, prev_point);\n\n        }\n\n        return highest_point;\n        \n    }\n};\n```\n\n\n
['Python', 'C++', 'Python3']