Python || Easy || Faster Than 99 %
\nclass Solution:\n    def waysToSplitArray(self, nums: List[int]) -> int:\n        sumtot= sum(nums)-nums[0]\n        leftsum = nums[0]\n        res = 0\n     
```\nclass Solution:\n    def waysToSplitArray(self, nums: List[int]) -> int:\n        sumtot= sum(nums)-nums[0]\n        leftsum = nums[0]\n        res = 0\n        \n        \n        for i in range(1,len(nums)):\n            if leftsum>=sumto:\n                res+=1\n            sumtot-=nums[i]\n            leftsum+=nums[i]\n                \n        return res\n   \n```
['Python']