Skip to content

Commit f897d97

Browse files
committed
fix bogosorting
1 parent c968a59 commit f897d97

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

build.xml

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
<mkdir dir="bin"/>
3838
<copy includeemptydirs="false" todir="bin">
3939
<fileset dir="src">
40-
<exclude name="**/*.launch"/>
4140
<exclude name="**/*.java"/>
4241
</fileset>
4342
</copy>

dist/arrayVisualizer.jar

-5 Bytes
Binary file not shown.

src/templates/BogoSorting.java

-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ protected void bogoSwap(int[] array, int length, int offset){
4848

4949
protected boolean bogoIsSorted(int[] array, int length){
5050
for(int i = 0; i < length - 1; i++) {
51-
Highlights.markArray(1, i);
52-
Delays.sleep(1);
5351
if(Reads.compare(array[i], array[i + 1]) == 1) {
5452
Highlights.markArray(1, i);
5553
return false;

0 commit comments

Comments
 (0)