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

I did a couple things that nobody asked me but It's accomplished #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

arepaFlipper
Copy link

No description provided.

Cristian F. Tovar added 2 commits May 7, 2020 18:31
Copy link

@hyfi06 hyfi06 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments

Comment on lines +14 to +25
const index = result.indexOf(max);
const ini = Math.round(index/array.length)
const residual = index%(array.length)




const sum = [];

for (let k = ini; k <= residual+1; k++ ){
sum.push(array[k]);
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max ya no es modificado, esta parte estaría de más.

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

Successfully merging this pull request may close these issues.

2 participants