Minor changes
This commit is contained in:
parent
d4bd9e7c7d
commit
9491b45a05
@ -10,7 +10,7 @@ import static sort.SortUtils.print;
|
||||
* @see SortAlgorithm
|
||||
*
|
||||
*/
|
||||
public class BinaryTreeSort implements SortAlgorithm{
|
||||
public class BinaryTreeSort implements SortAlgorithm {
|
||||
|
||||
interface TreeVisitor<T extends Comparable<T>> {
|
||||
void visit(Node<T> node);
|
||||
|
@ -12,7 +12,7 @@ import static sort.SortUtils.*;
|
||||
* @see SortAlgorithm
|
||||
*
|
||||
*/
|
||||
public class BogoSort implements SortAlgorithm{
|
||||
public class BogoSort implements SortAlgorithm {
|
||||
|
||||
private static final Random random = new Random();
|
||||
|
||||
|
@ -10,7 +10,7 @@ import static sort.SortUtils.*;
|
||||
* @see SortAlgorithm
|
||||
*/
|
||||
|
||||
class BubbleSort implements SortAlgorithm{
|
||||
class BubbleSort implements SortAlgorithm {
|
||||
/**
|
||||
* This method implements the Generic Bubble Sort
|
||||
*
|
||||
|
@ -1,3 +1,5 @@
|
||||
package sort;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user