Skip to content

Commit a3e6c4c

Browse files
committed
formatted implementation
1 parent c67a570 commit a3e6c4c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Sorts/BeadSort.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,14 @@ function beadSort (sequence) {
6969
return sortedSequence
7070
}
7171

72-
// implementation
73-
console.log(beadSort([5, 4, 3, 2, 1]))
72+
/**
73+
* Implementation of Cocktail Shaker Sort
74+
*/
75+
const array = [5, 4, 3, 2, 1]
76+
// Before Sort
77+
console.log('\n- Before Sort | Implementation of Bead Sort -')
78+
console.log(array)
79+
// After Sort
80+
console.log('- After Sort | Implementation of Bead Sort -')
81+
console.log(beadSort(array))
82+
console.log('\n')

0 commit comments

Comments
 (0)