Changed implementation presentation | Flash Sort

This commit is contained in:
marsonya
2021-02-01 21:01:00 +05:30
parent 72e173c2d4
commit 32cc94ee18

View File

@ -77,11 +77,14 @@ function flashSort (arr) {
return arr
}
/**
* Implementation of Flash Sort
*/
const array = [3, 0, 2, 5, -1, 4, 1, -2]
// Array before Sort
console.log('-----before sorting-----')
// Before Sort
console.log('\n- Before Sort | Implementation of Flash Sort -')
console.log(array)
// Array after sort
console.log('-----after sorting-----')
// After Sort
console.log('- After Sort | Implementation of Flash Sort -')
console.log(flashSort(array))
console.log('\n')