diff --git a/Sorts/FlashSort.js b/Sorts/FlashSort.js index 30f79c9f4..4685c7a59 100644 --- a/Sorts/FlashSort.js +++ b/Sorts/FlashSort.js @@ -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') \ No newline at end of file