forked from M3-Academy/challenge-algorithms-v2.0
fix(10-longestWords)otimiza e comenta o codigo para eventos futuros
This commit is contained in:
parent
fd55e12640
commit
e4ef319faa
@ -27,12 +27,3 @@ export function longestWords(words) {
|
||||
})
|
||||
} return finalResult
|
||||
}
|
||||
// let palavra = [];
|
||||
// for (let word = 0; word < words.length; word++) {
|
||||
// if (palavra < word.length) palavra = word;
|
||||
// }
|
||||
// let palavraLonga = []
|
||||
// for (let i = 0; i < palavra.length; i++) {
|
||||
// if (i.length == palavra.length) palavraLonga = words[i];
|
||||
// }
|
||||
// return palavraLonga;
|
Loading…
Reference in New Issue
Block a user