mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00
Remove testing code in function file
This commit is contained in:
@ -49,16 +49,4 @@ function combSort (list) {
|
|||||||
return list
|
return list
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Implementation of Comb Sort
|
|
||||||
*/
|
|
||||||
const array = [5, 6, 7, 8, 1, 2, 12, 14]
|
|
||||||
// Before Sort
|
|
||||||
console.log('\n- Before Sort | Implementation of Comb Sort -')
|
|
||||||
console.log(array)
|
|
||||||
// After Sort
|
|
||||||
console.log('- After Sort | Implementation of Comb Sort -')
|
|
||||||
console.log(combSort(array))
|
|
||||||
console.log('\n')
|
|
||||||
|
|
||||||
export { combSort }
|
export { combSort }
|
||||||
|
Reference in New Issue
Block a user