@@ -0,0 +1,695 @@
+class Solution %7B%0A    public String longestCommonPrefix(String%5B%5D strs) %7B%0A%0A        if (strs == null %7C%7C strs.length == 0) %7B%0A            return %22%22;%0A        %7D%0A%0A        int minLength = Integer.MAX_VALUE;%0A        for (String str : strs) %7B%0A            if (str.length() %3C= minLength) %7B%0A                minLength = str.length();%0A            %7D%0A        %7D%0A%0A        for (int i = 0; i %3C minLength; i++) %7B%0A            char charAtIdx = strs%5B0%5D.charAt(i);%0A%0A            for (int j = 0; j %3C strs.length; j++) %7B%0A                if (charAtIdx != strs%5Bj%5D.charAt(i)) %7B%0A                    return strs%5B0%5D.substring(0, i);%0A                %7D%0A            %7D%0A        %7D%0A%0A        return strs%5B0%5D.substring(0, minLength);%0A    %7D%0A%7D

14. Longest Common Prefix