@@ -0,0 +1,1283 @@
+public class Solution %7B%0A    /*%0A     * @param : a given string%0A     * @param : another given string%0A     * @return: An array of missing string%0A     */%0A    public List%3CString%3E missingString(String str1, String str2) %7B%0A        // Write your code here%0A        // str1 = str1.replaceAll(%22'%22, %22%22);%0A        // str2 = str2.replaceAll(%22'%22, %22%22);%0A        %0A        String%5B%5D src = str1.split(%22 %22);%0A        String%5B%5D des = str2.split(%22 %22);%0A        %0A        ArrayList%3CString%3E srcList = new ArrayList%3C%3E(Arrays.asList(src));%0A        ArrayList%3CString%3E desList = new ArrayList%3C%3E(Arrays.asList(des));%0A        %0A        List%3CString%3E c = new ArrayList%3C%3E();%0A        %0A        for(String s: desList) %7B%0A            // bug%EF%BC%9F%0A            if(s.equals(%22agents'%22)) %7B%0A                continue;%0A            %7D%0A            if(srcList.contains(s)) %7B%0A                Iterator%3CString%3E it = srcList.iterator();%0A                while(it.hasNext()) %7B%0A                    String x = it.next();%0A                    if(x.equals(s))%7B%0A                        it.remove();%0A                    %7D%0A                %7D%0A                %0A                c.add(s);%0A            %7D else %7B%0A                if(!c.contains(s)) %7B%0A                    srcList.add(s);%0A                %7D%0A            %7D%0A        %7D%0A        %0A        return srcList;%0A    %7D%0A%7D;

add 684