Skip to content

Commit

Permalink
add skipping of Less Bogo and Cocktail Bogo
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Nov 23, 2020
1 parent 6e682ee commit 03155cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sorts/templates/BogoSorting.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ protected boolean bogoIsSorted(int[] array, int length) {
}

protected boolean isMinSorted(int[] array, int length, int offset) {
if (Delays.skipped())
return true;
Highlights.clearAllMarks();

//Highlights.markArray(2, offset);
Expand All @@ -74,6 +76,8 @@ protected boolean isMinSorted(int[] array, int length, int offset) {
}

protected boolean isMaxSorted(int[] array, int minIterator, int maxIterator) {
if (Delays.skipped())
return true;
Highlights.clearAllMarks();

//Highlights.markArray(2, minIterator);
Expand Down

0 comments on commit 03155cf

Please sign in to comment.