#include #include #define endl "\n" using namespace std; // Maximum Subarray Sum // Approach A - Brute Force O(n^3) int maxSubArrSum_A(int a[],int n){ int maxSum = INT_MIN; for(int i=0;i