1
0
forked from pabulaner/vivi

Fixed tiny error

This commit is contained in:
Paul H 2025-03-25 21:11:28 +01:00
parent 8aa3bf1b6c
commit 5d5ceedfa8
2 changed files with 5 additions and 4 deletions

View File

@ -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());
} }

View File

@ -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