mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
add console printing for after sorting
This commit is contained in:
@@ -27,6 +27,7 @@ console.log("-----before sorting-----")
|
|||||||
console.log(ar);
|
console.log(ar);
|
||||||
bubbleSort(ar);
|
bubbleSort(ar);
|
||||||
//Array after sort
|
//Array after sort
|
||||||
|
console.log("-----after sorting-----")
|
||||||
console.log(ar);
|
console.log(ar);
|
||||||
|
|
||||||
/*alternative implementation of bubble sort algorithm.
|
/*alternative implementation of bubble sort algorithm.
|
||||||
|
|||||||
Reference in New Issue
Block a user