We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f67819 commit aa71354Copy full SHA for aa71354
Sorting/Bubble Sort/bubble-sort.js
@@ -44,7 +44,8 @@ function modifiedBubbleSort(arr){
44
}
45
46
47
-/** Testing Bubble sort algorithm **/
+/******************* Testing Bubble sort algorithm *********************/
48
+
49
/**
50
* Returns a random integer between min (inclusive) and max (inclusive)
51
* Using Math.round() will give you a non-uniform distribution!
@@ -55,9 +56,10 @@ function getRandomInt(min, max) {
55
56
57
var arr = [];
58
-for(var i=0;i<10;i++){
59
+for(var i=0;i<10;i++){//initialize a random integer unsorted array
60
arr.push(getRandomInt(1, 100));
61
62
63
console.log("Unsorted array: ");
64
console.log(arr); //printing unsorted array
65
0 commit comments