GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — leetcode/python/1480_Running_Sum_of_1d_Array.py at master · qiyuangong/leetcode Expand file tree/ Copy path1480_Running_Sum_of_1d_Array.pyMore file actions 11 lines (10 loc) · 353 Bytes / Copy path1480_Running_Sum_of_1d_Array.pyFile metadata and controls11 lines (10 loc) · 353 Bytes 1 2 3 4 5 6 7 8 9 10 11 class Solution: def runningSum(self, nums: List[int]) -> List[int]: if nums is None or len(nums) == 0: return nums for i in range(1, len(nums)): nums[i] += nums[i-1] return nums # def runningSum(self, nums: List[int]) -> List[int]: # # accumulate method # return accumulate(nums) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |