Update Bucket-sort.md
parent
c6803767e6
commit
14c236d072
|
@ -28,6 +28,7 @@ n is the number of buckets
|
||||||
BucketIndex = ( arr[i] - min ) / range
|
BucketIndex = ( arr[i] - min ) / range
|
||||||
|
|
||||||
5.Now sort each bucket individually
|
5.Now sort each bucket individually
|
||||||
|
|
||||||
6.Gather the sorted elements from buckets to original array
|
6.Gather the sorted elements from buckets to original array
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
Loading…
Reference in New Issue