Skip to content
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

Máxima suma en un subarray #53

Open
dpalmasan opened this issue Dec 1, 2021 · 0 comments
Open

Máxima suma en un subarray #53

dpalmasan opened this issue Dec 1, 2021 · 0 comments
Labels

Comments

@dpalmasan
Copy link
Owner

dpalmasan commented Dec 1, 2021

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:

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.
dpalmasan added a commit that referenced this issue Dec 2, 2021
Agregar sol O(n) para suma máx de subarray (#53)
dpalmasan pushed a commit that referenced this issue Dec 4, 2021
dpalmasan pushed a commit that referenced this issue Dec 4, 2021
dpalmasan added a commit that referenced this issue Dec 4, 2021
Agregar sol divide and conquer (#53)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant