Skip to content

Commit 050f56b

Browse files
authored
Add doctest to BucketSort.js
1 parent f59062a commit 050f56b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sorts/BucketSort.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ function bucketSort (list, size) {
5555

5656
// Testing
5757
const arrOrignal = [5, 6, 7, 8, 1, 2, 12, 14]
58+
// > bucketSort(arrOrignal)
59+
// [1, 2, 5, 6, 7, 8, 12, 14]
5860
// Array before Sort
5961
console.log(arrOrignal)
6062
const arrSorted = bucketSort(arrOrignal)

0 commit comments

Comments
 (0)