@@ -0,0 +1,736 @@
+package com.sunny.grokkingalgorithms.basic_2020.warmup;%0A%0Aimport org.junit.Test;%0A%0Apublic class RemoveDuplicatesInPlace %7B%0A%09%0A%09/*%0A%09 * Unsorted array%0A%09 */%0A%09public static void removeDuplicatesInPlace(int%5B%5D input) %7B%0A%09%09for(int i = 0; i %3C input.length ; i++) %7B%0A%09%09%09for(int j = i+1; j %3C input.length ; j++) %7B%0A%09%09%09%09if((input%5Bi%5D != Integer.MIN_VALUE) %0A%09%09%09%09%09%09&& (input%5Bj%5D != Integer.MIN_VALUE) && %0A%09%09%09%09%09%09(input%5Bi%5D == input%5Bj%5D)) %7B%0A%09%09%09%09%09input%5Bj%5D = Integer.MIN_VALUE;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%09%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// TODO Auto-generated method stub%0A        int%5B%5D myArr = new int%5B%5D%7B1, 1, 2, 2, 3, 4, 5%7D;%0A        removeDuplicatesInPlace(myArr);%0A        for(int item : myArr) %7B%0A        %09System.out.println(item);        %09%0A        %7D%0A%09%7D%0A%0A%7D%0A

Remove duplicates in place.