Closed Shreyalytical closed 2 years ago
a subarray is a contiguous part of an array. the problem addressed as follows : Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
a subarray is a contiguous part of an array. the problem addressed as follows : Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.