feature-algorithms #1

Merged
JoseGregorioMataRodriguez merged 10 commits from feature-algorithms into master 2022-10-29 04:37:09 +00:00
Showing only changes of commit 1f1e05e78d - Show all commits

View File

@ -1,4 +1,13 @@
export function maxValue(values) {
// implementar logica aqui
let numeromaior = 0;
if (values[0] < numeromaior)
numeromaior = values[0];
let i = 0;
for (i = 0; i < values.length; i++){
if (numeromaior < values[i]){
numeromaior = values[i];
}
}
return numeromaior;
}