shecoderfinally / Sorting-and-Searching-Techniques

Make your Contributions for Hacktoberfest keeping the guidelines in mind.
21 stars 111 forks source link

maximum subarray leetcode problem #265

Closed Shreyalytical closed 2 years ago

Shreyalytical commented 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.