Given an array of strings, return another array containing all of its longest strings.
가장 긴 문자열을 포함하는 배열들을 반환하라
Example
For inputArray = ["aba", "aa", "ad", "vcd", "aba"], the output should beallLongestStrings(inputArray) = ["aba", "vcd", "aba"].
Code
function allLongestStrings(inputArray) {
}
'알고리즘(CF)' 카테고리의 다른 글
| 11. isLucky (1) | 2017.06.08 |
|---|---|
| 10. commonCharacterCount (1) | 2017.06.08 |
| 8. matrixElementsSum (1) | 2017.06.08 |
| 7. almostIncreasingSequence (1) | 2017.06.07 |
| 6. make Array Consecutive2 (1) | 2017.06.07 |