We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
Dado un array de enteros (nums), encontrar el subarray contiguo (que tenga al menos un número) que tenga la máxima suma y retornar dicha suma.
array
nums
Ejemplo:
Input: nums = [-2,1,-3,4,-1,2,1,-5,4] Output: 6 Explicación: [4,-1,2,1] tiene la máxima suma = 6.
The text was updated successfully, but these errors were encountered:
Agregar sol O(n) para suma máx de subarray (#53)
3c0758f
Merge pull request #54 from dpalmasan/issue-53
3c0baf0
Agregar sol divide and conquer (#53)
6a4df44
Add test cases for max subarray (#53)
6d59876
Merge pull request #55 from dpalmasan/issue-53
cd2920c
No branches or pull requests
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
Dado un
array
de enteros (nums
), encontrar el subarray contiguo (que tenga al menos un número) que tenga la máxima suma y retornar dicha suma.Ejemplo:
The text was updated successfully, but these errors were encountered: