Maximum Subarray Sum

At 6:03, why have we taken left and right=-1?

hey @yajurkhurana left and right indicate indexes of max sum subarray, initially we don’t know max sum subarray so we initialized it with -1, you can initialize it with any negative number

If this resolves your query then please mark it as resolved :slight_smile: