From 32cc94ee18ef1c4a23deaeb6ca9ec28ba8cbe336 Mon Sep 17 00:00:00 2001 From: marsonya Date: Mon, 1 Feb 2021 21:01:00 +0530 Subject: [PATCH] Changed implementation presentation | Flash Sort --- Sorts/FlashSort.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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