X Tutup
Skip to content

Commit 32cc94e

Browse files
committed
Changed implementation presentation | Flash Sort
1 parent 72e173c commit 32cc94e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Sorts/FlashSort.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,14 @@ function flashSort (arr) {
7777
return arr
7878
}
7979

80+
/**
81+
* Implementation of Flash Sort
82+
*/
8083
const array = [3, 0, 2, 5, -1, 4, 1, -2]
81-
82-
// Array before Sort
83-
console.log('-----before sorting-----')
84+
// Before Sort
85+
console.log('\n- Before Sort | Implementation of Flash Sort -')
8486
console.log(array)
85-
// Array after sort
86-
console.log('-----after sorting-----')
87+
// After Sort
88+
console.log('- After Sort | Implementation of Flash Sort -')
8789
console.log(flashSort(array))
90+
console.log('\n')

0 commit comments

Comments
 (0)
X Tutup