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 combined = new CombinedByteList(16);
testList(array);
// testList(array);
testList(linked);
// testList(combined);
testSort(array);
// testSort(linked);
// testSort(array);
testSort(linked);
// testSort(combined);
}
@ -90,7 +90,7 @@ public class Main {
// ByteSort bogo = new BogoSort();
//
// // sort the lists with the sorting algorithm
// bubble.sort(list);
bubble.sort(list);
merge.sort(list);
// bogo.sort(list.copy());
}

View File

@ -117,6 +117,7 @@ public class LinkedByteList implements ByteList {
@Override
public void clear() {
root = null;
size = 0;
}
@Override