Skip to content

Commit 22984bb

Browse files
committed
Fix playground compilation error
1 parent 71d2c9d commit 22984bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Bucket Sort/BucketSort.playground/Contents.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ extension Int: IntConvertible, Sortable {
3434
// MARK: Playing code
3535
//////////////////////////////////////
3636

37-
let input = [1, 2, 4, 6, 10]
37+
let input = [1, 2, 4, 6, 10, 5]
3838
var buckets = [Bucket<Int>(capacity: 15), Bucket<Int>(capacity: 15), Bucket<Int>(capacity: 15)]
3939

40-
let sortedElements = bucketSort(elements: input, distributor: RangeDistributor(), sorter: InsertionSorter(), buckets: &buckets)
40+
let sortedElements = bucketSort(input, distributor: RangeDistributor(), sorter: InsertionSorter(), buckets: buckets)
4141

4242
print(sortedElements)

0 commit comments

Comments
 (0)