Skip to content

Maximum Subarray | Dynamic Programming #6519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ganesh-utla opened this issue Oct 2, 2022 · 2 comments
Closed

Maximum Subarray | Dynamic Programming #6519

ganesh-utla opened this issue Oct 2, 2022 · 2 comments

Comments

@ganesh-utla
Copy link

ganesh-utla commented Oct 2, 2022

Problem Statement: 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.

Input: Any Integer Array
Output: Sum of the subarray with maximum sum

Eg:
Input: nums = [-2,1,-3,4,-1,2,1,-5,4]
Output: 6
Explanation: [4,-1,2,1] has the largest sum = 6.

@ganesh-utla
Copy link
Author

Please assign me to this task..

@cclauss
Copy link
Member

cclauss commented Oct 2, 2022

@cclauss cclauss closed this as completed in 072312b Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants