forked from pabulaner/vivi
Fixed tiny error
This commit is contained in:
parent
8aa3bf1b6c
commit
5d5ceedfa8
@ -14,12 +14,12 @@ public class Main {
|
|||||||
ByteList linked = new LinkedByteList();
|
ByteList linked = new LinkedByteList();
|
||||||
// ByteList combined = new CombinedByteList(16);
|
// ByteList combined = new CombinedByteList(16);
|
||||||
|
|
||||||
testList(array);
|
// testList(array);
|
||||||
testList(linked);
|
testList(linked);
|
||||||
// testList(combined);
|
// testList(combined);
|
||||||
|
|
||||||
testSort(array);
|
// testSort(array);
|
||||||
// testSort(linked);
|
testSort(linked);
|
||||||
// testSort(combined);
|
// testSort(combined);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ public class Main {
|
|||||||
// ByteSort bogo = new BogoSort();
|
// ByteSort bogo = new BogoSort();
|
||||||
//
|
//
|
||||||
// // sort the lists with the sorting algorithm
|
// // sort the lists with the sorting algorithm
|
||||||
// bubble.sort(list);
|
bubble.sort(list);
|
||||||
merge.sort(list);
|
merge.sort(list);
|
||||||
// bogo.sort(list.copy());
|
// bogo.sort(list.copy());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -117,6 +117,7 @@ public class LinkedByteList implements ByteList {
|
|||||||
@Override
|
@Override
|
||||||
public void clear() {
|
public void clear() {
|
||||||
root = null;
|
root = null;
|
||||||
|
size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user