feature/algorithms #1

Merged
Vitor_soares merged 10 commits from feature/algorithms into master 2022-10-28 23:12:43 +00:00
Showing only changes of commit 01ac558b06 - Show all commits

View File

@ -1,4 +1,9 @@
export function maxValue(values) {
// implementar logica aqui
if(values.length == 0) return 0;
return values.reduce((ac, value) => {
if(ac > value) return ac;
return value
}, );
}