diff --git a/DSA/Arrays/BubbleSort.js b/DSA/Arrays/BubbleSort.js index c37a9d6..2edebd2 100644 --- a/DSA/Arrays/BubbleSort.js +++ b/DSA/Arrays/BubbleSort.js @@ -1,7 +1,7 @@ // Bubble sort Implementation using Javascript function bblSort(arr){ - + // it is not mandatory to initialize i with zero // loop through array for(var i = 0; i < arr.length; i++){ diff --git a/DSA/Arrays/RadixSort.js b/DSA/Arrays/RadixSort.js index e4f1b5b..7b2853b 100644 --- a/DSA/Arrays/RadixSort.js +++ b/DSA/Arrays/RadixSort.js @@ -6,7 +6,7 @@ const countingSort = (arr, size, place) => { let freq = new Array(max + 1).fill(0); - + // this is one of my updation for (let i = 0; i < size; i++){ const num = Math.floor(arr[i] / place) % 10; freq[num]++; diff --git a/JavaScriptONLY b/JavaScriptONLY new file mode 160000 index 0000000..2b14da1 --- /dev/null +++ b/JavaScriptONLY @@ -0,0 +1 @@ +Subproject commit 2b14da18217aa76f16c28ff782e13b48539d9f93