diff --git a/bubble_sort.html b/bubble_sort.html index 9b3db74..037bb29 100644 --- a/bubble_sort.html +++ b/bubble_sort.html @@ -25,7 +25,7 @@ .bar { - width: 80px; + width: 7vw; margin-right: 5px; display: inline-block; background-color:white; @@ -132,7 +132,7 @@

Bubble Sort Visualization

} } - // Function to perform selection sort and update the visualization + // Function to perform bubble sort and update the visualization async function bubbleSort(array) { for (var i = 0; i < array.length; i++) { var swaped= false; diff --git a/insertion_sort.html b/insertion_sort.html index 4cbc64e..e79e332 100644 --- a/insertion_sort.html +++ b/insertion_sort.html @@ -25,7 +25,7 @@ .bar { - width: 80px; + width: 7vw; margin-right: 5px; display: inline-block; background-color: white; @@ -132,7 +132,7 @@

Insertion Sort Visualization

} } - // Function to perform selection sort and update the visualization + // Function to perform insertion sort and update the visualization async function insertionSort(array) { for (var i = 0; i < array.length; i++) { var temp = array[i]; diff --git a/selection_sort.html b/selection_sort.html index 14ca00b..b36e1ad 100644 --- a/selection_sort.html +++ b/selection_sort.html @@ -25,7 +25,7 @@ .bar { - width: 80px; + width: 7vw; margin-right: 5px; display: inline-block; background-color: white;