Skip to content

Latest commit

 

History

History

allLongestStrings

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

All longest strings

easy strings

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 solution(inputArray) = ["aba", "vcd", "aba"].