@@ -0,0 +1,678 @@
+class Solution %7B%0A    /**%0A     * @param dictionary: an array of strings%0A     * @return: an arraylist of strings%0A     */%0A    ArrayList%3CString%3E longestWords(String%5B%5D dictionary) %7B%0A        // write your code here%0A        ArrayList%3CString%3E longestWords = new ArrayList%3CString%3E();%0A        int maxlen = 0;%0A        for (String word : dictionary) %7B%0A            if (word.length() %3E maxlen) %7B%0A                maxlen = word.length();%0A                longestWords = new ArrayList%3CString%3E();%0A                longestWords.add(word);%0A            %7D else if (word.length() == maxlen) %7B%0A                longestWords.add(word);%0A            %7D%0A        %7D%0A        %0A        return longestWords;%0A    %7D%0A%7D;

Create LongestWord for Lintcode