알고리즘(CF)2017. 6. 8. 19:49

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 be
allLongestStrings(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
Posted by EL2A