Skip to content

Commit 23dbc87

Browse files
author
retroprogrammer000
committed
Fixing the sort programs
1 parent d8f361b commit 23dbc87

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

Binary Search.java renamed to data_structures/sorts/Binary Search.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package sorts;
2+
13
import java.util.Scanner;
24

35
class BinarySearch

Bubble Sort.java renamed to data_structures/sorts/Bubble Sort.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package sorts;
2+
13
import java.util.Scanner;
24

35
class BubbleSort

FindingPrimes.java renamed to data_structures/sorts/FindingPrimes.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package sorts;
2+
13
/*
24
* The Sieve of Eratosthenes is an algorithm used to find prime numbers, up to a given value.
35
* Illustration: https://upload.wikimedia.org/wikipedia/commons/b/b9/Sieve_of_Eratosthenes_animation.gif

HeapSort.java renamed to data_structures/sorts/HeapSort.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package sorts;
2+
13
import java.util.Scanner;
24

35
/**

Insertion Sort.java renamed to data_structures/sorts/Insertion Sort.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package sorts;
2+
13
import java.util.Scanner;
24

35
class InsertionSort

MergeSort.java renamed to data_structures/sorts/MergeSort.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package sorts;
2+
13
import java.util.Scanner;
24

35
/**

Selection Sort.java renamed to data_structures/sorts/Selection Sort.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package sorts;
2+
13
import java.util.Scanner;
24

35
class SelectionSort

0 commit comments

Comments
 (0)