소스 검색

Got all Test passing still have to get that refactoring done

Nicholas Maidanos 6 년 전
부모
커밋
9c5235a6fa
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2
    2
      IntegerDuplicateDeleter.java
  2. 2
    2
      StringDuplicateDeleter.java

+ 2
- 2
IntegerDuplicateDeleter.java 파일 보기

@@ -10,7 +10,7 @@ public class IntegerDuplicateDeleter extends DuplicateDeleter<Integer>{
10 10
     
11 11
     @Override
12 12
     public Integer[] removeDuplicates(int maxNumberOfDuplications){
13
-        Arrays.sort(this.array);
13
+        //Arrays.sort(this.array);
14 14
         
15 15
         int sizeOfArray = this.numOfDupUnder(maxNumberOfDuplications);
16 16
         Integer[] newArray = new Integer[sizeOfArray];
@@ -39,7 +39,7 @@ public class IntegerDuplicateDeleter extends DuplicateDeleter<Integer>{
39 39
     @Override
40 40
     public Integer[] removeDuplicatesExactly(int exactNumberOfDuplications){
41 41
         
42
-        Arrays.sort(this.array);
42
+        //Arrays.sort(this.array);
43 43
         
44 44
         int sizeOfArray = this.numOfExactDup(exactNumberOfDuplications);
45 45
         Integer[] newArray = new Integer[sizeOfArray];

+ 2
- 2
StringDuplicateDeleter.java 파일 보기

@@ -9,7 +9,7 @@ public final class StringDuplicateDeleter extends DuplicateDeleter<String> {
9 9
     
10 10
     @Override
11 11
     public String[] removeDuplicates(int maxNumberOfDuplications){
12
-        Arrays.sort(this.array);
12
+        //Arrays.sort(this.array);
13 13
         
14 14
         int sizeOfArray = this.numOfDupUnder(maxNumberOfDuplications);
15 15
         String[] newArray = new String[sizeOfArray];
@@ -36,7 +36,7 @@ public final class StringDuplicateDeleter extends DuplicateDeleter<String> {
36 36
     
37 37
     @Override
38 38
     public String[] removeDuplicatesExactly(int exactNumberOfDuplications){
39
-        Arrays.sort(this.array);
39
+        //Arrays.sort(this.array);
40 40
         
41 41
         int sizeOfArray = this.numOfExactDup(exactNumberOfDuplications);
42 42
         String[] newArray = new String[sizeOfArray];