Maximum Subarray Sum

  • + 1 comment

    hello thanks for sharing, it is pretty efficient. Why are you using ind=bisect.bisect_left(a1,pr+1) ? I know that the goal is to maximize pr-a1[ind]+m but is it not possible that the maximisation is pr + 2 in few special case ?