1class Solution {2public:3 int maxSubArray(std::vector<int>& nums) {4 // Your code here5 return 0;6 }7};
Solve the problem first before reviewing the solution!