CPP | Short and Simple | Prefix Sum
\nclass Solution {\npublic:\n    typedef long ll;\n    int waysToSplitArray(vector<int>& v,ll ss=0,ll ans=0) {\n        ll s=accumulate(v.begin(),v.end(),0LL);\
```\nclass Solution {\npublic:\n    typedef long ll;\n    int waysToSplitArray(vector<int>& v,ll ss=0,ll ans=0) {\n        ll s=accumulate(v.begin(),v.end(),0LL);\n        for(int i=0;i<v.size()-1;i++){\n            ss+=v[i];\n            ans+=ss>=s-ss;\n        }\n        return ans;\n    }\n};\n```
['Prefix Sum', 'C++']