From 4546570ea67484aed424c3a6c8e857a83817b4ce Mon Sep 17 00:00:00 2001 From: jairrab Date: Sun, 2 Jun 2019 21:25:50 +0800 Subject: [PATCH] change directories --- .../jairrab/testlibrary/{sortexercise => }/SortingExercise.kt | 3 ++- .../{sortexercise => sortalgorithims}/BubbleSort.kt | 4 +++- .../{sortexercise => sortalgorithims}/BuiltInSort.kt | 2 +- .../{sortexercise => sortalgorithims}/InsertionSort.kt | 2 +- .../{sortexercise => sortalgorithims}/MergeSort.kt | 2 +- .../{sortexercise => sortalgorithims}/QuickSortEnd.kt | 4 +++- .../{sortexercise => sortalgorithims}/QuickSortMiddle.kt | 4 +++- .../{sortexercise => sortalgorithims}/QuickSortRandom.kt | 3 ++- 8 files changed, 16 insertions(+), 8 deletions(-) rename testlibrary/src/main/java/com/jairrab/testlibrary/{sortexercise => }/SortingExercise.kt (97%) rename testlibrary/src/main/java/com/jairrab/testlibrary/{sortexercise => sortalgorithims}/BubbleSort.kt (81%) rename testlibrary/src/main/java/com/jairrab/testlibrary/{sortexercise => sortalgorithims}/BuiltInSort.kt (70%) rename testlibrary/src/main/java/com/jairrab/testlibrary/{sortexercise => sortalgorithims}/InsertionSort.kt (91%) rename testlibrary/src/main/java/com/jairrab/testlibrary/{sortexercise => sortalgorithims}/MergeSort.kt (95%) rename testlibrary/src/main/java/com/jairrab/testlibrary/{sortexercise => sortalgorithims}/QuickSortEnd.kt (89%) rename testlibrary/src/main/java/com/jairrab/testlibrary/{sortexercise => sortalgorithims}/QuickSortMiddle.kt (93%) rename testlibrary/src/main/java/com/jairrab/testlibrary/{sortexercise => sortalgorithims}/QuickSortRandom.kt (94%) diff --git a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/SortingExercise.kt b/testlibrary/src/main/java/com/jairrab/testlibrary/SortingExercise.kt similarity index 97% rename from testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/SortingExercise.kt rename to testlibrary/src/main/java/com/jairrab/testlibrary/SortingExercise.kt index 315df85..b5cb502 100644 --- a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/SortingExercise.kt +++ b/testlibrary/src/main/java/com/jairrab/testlibrary/SortingExercise.kt @@ -1,5 +1,6 @@ -package com.jairrab.testlibrary.sortexercise +package com.jairrab.testlibrary +import com.jairrab.testlibrary.sortalgorithims.* import java.util.concurrent.ThreadLocalRandom import kotlin.system.measureNanoTime diff --git a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/BubbleSort.kt b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/BubbleSort.kt similarity index 81% rename from testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/BubbleSort.kt rename to testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/BubbleSort.kt index 1177476..1b8270b 100644 --- a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/BubbleSort.kt +++ b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/BubbleSort.kt @@ -1,4 +1,6 @@ -package com.jairrab.testlibrary.sortexercise +package com.jairrab.testlibrary.sortalgorithims + +import com.jairrab.testlibrary.swap class BubbleSort { diff --git a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/BuiltInSort.kt b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/BuiltInSort.kt similarity index 70% rename from testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/BuiltInSort.kt rename to testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/BuiltInSort.kt index e73b96d..928677e 100644 --- a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/BuiltInSort.kt +++ b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/BuiltInSort.kt @@ -1,4 +1,4 @@ -package com.jairrab.testlibrary.sortexercise +package com.jairrab.testlibrary.sortalgorithims class BuiltInSort { fun sort(array: IntArray): IntArray { diff --git a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/InsertionSort.kt b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/InsertionSort.kt similarity index 91% rename from testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/InsertionSort.kt rename to testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/InsertionSort.kt index b37fbd2..5a3a804 100644 --- a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/InsertionSort.kt +++ b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/InsertionSort.kt @@ -1,4 +1,4 @@ -package com.jairrab.testlibrary.sortexercise +package com.jairrab.testlibrary.sortalgorithims class InsertionSort { diff --git a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/MergeSort.kt b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/MergeSort.kt similarity index 95% rename from testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/MergeSort.kt rename to testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/MergeSort.kt index cd205e2..fd716a7 100644 --- a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/MergeSort.kt +++ b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/MergeSort.kt @@ -1,4 +1,4 @@ -package com.jairrab.testlibrary.sortexercise +package com.jairrab.testlibrary.sortalgorithims class MergeSort { fun sort(array: IntArray): IntArray { diff --git a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/QuickSortEnd.kt b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/QuickSortEnd.kt similarity index 89% rename from testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/QuickSortEnd.kt rename to testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/QuickSortEnd.kt index c755555..c8dc4f2 100644 --- a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/QuickSortEnd.kt +++ b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/QuickSortEnd.kt @@ -1,4 +1,6 @@ -package com.jairrab.testlibrary.sortexercise +package com.jairrab.testlibrary.sortalgorithims + +import com.jairrab.testlibrary.swap class QuickSortEnd { fun sort(array: IntArray): IntArray { diff --git a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/QuickSortMiddle.kt b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/QuickSortMiddle.kt similarity index 93% rename from testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/QuickSortMiddle.kt rename to testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/QuickSortMiddle.kt index c312c5a..d8ed412 100644 --- a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/QuickSortMiddle.kt +++ b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/QuickSortMiddle.kt @@ -1,4 +1,6 @@ -package com.jairrab.testlibrary.sortexercise +package com.jairrab.testlibrary.sortalgorithims + +import com.jairrab.testlibrary.swap class QuickSortMiddle { fun sort(array: IntArray): IntArray { diff --git a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/QuickSortRandom.kt b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/QuickSortRandom.kt similarity index 94% rename from testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/QuickSortRandom.kt rename to testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/QuickSortRandom.kt index 1c97f06..7754161 100644 --- a/testlibrary/src/main/java/com/jairrab/testlibrary/sortexercise/QuickSortRandom.kt +++ b/testlibrary/src/main/java/com/jairrab/testlibrary/sortalgorithims/QuickSortRandom.kt @@ -1,5 +1,6 @@ -package com.jairrab.testlibrary.sortexercise +package com.jairrab.testlibrary.sortalgorithims +import com.jairrab.testlibrary.swap import java.util.concurrent.ThreadLocalRandom class QuickSortRandom {