@@ -0,0 +1,827 @@
+package array;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * Created by Yue on 2017/10/25.%0A *%0A * leetcode no.448%0A */%0Apublic class FindAllNumbersDisappearedInAnArray %7B%0A    public static void main(String%5B%5D args) %7B%0A        int%5B%5D nums = new int%5B%5D %7B4, 3, 2, 7, 8, 2, 3, 1%7D;%0A        for (Integer i : findDisappearedNumbers(nums))%0A            System.out.println(i);%0A    %7D%0A%0A    public static List%3CInteger%3E findDisappearedNumbers(int%5B%5D nums) %7B%0A        List%3CInteger%3E res = new ArrayList%3C%3E();%0A        for (int i = 0; i %3C nums.length; i++) %7B%0A            int index = Math.abs(nums%5Bi%5D) - 1;%0A            if (nums%5Bindex%5D %3E 0)%0A                nums%5Bindex%5D = - nums%5Bindex%5D;%0A        %7D%0A        for (int i = 0; i %3C nums.length; i++) %7B%0A            if (nums%5Bi%5D %3E 0)%0A                res.add(i + 1);%0A        %7D%0A        return res;%0A    %7D%0A%0A%7D%0A

add leetcode no.448