Update Sorts/BucketSort.java

This commit is contained in:
Du Yuanchao
2020-09-08 11:46:12 +08:00
committed by GitHub
parent 09a4db6d78
commit 20d82c544e

View File

@ -50,7 +50,7 @@ public class BucketSort {
/* store elements to buckets */
for (int value : arr) {
int hash = hash(value, max, numberOfBuckets);
int hash = hash(value, min, numberOfBuckets);
buckets.get(hash).add(value);
}