@@ -0,0 +1,373 @@
+class Solution %7B%0A    public int%5B%5D diStringMatch(String S) %7B%0A        %0A        int res%5B%5D = new int%5BS.length() + 1%5D;%0A        int i = 0, j = S.length();%0A        int now = 0;%0A        int temp = 0;%0A        %0A        while(now %3C S.length())%7B%0A            res%5Bnow++%5D = S.charAt(temp++) == 'I' ? i++ : j--;%0A        %7D%0A        %0A        res%5Bnow%5D = i;%0A        %0A        return res;%0A    %7D%0A%7D

add no.942