// Buckets splits n over the specified number of buckets.
Buckets splits n over the specified number of buckets.
// Buckets splits n over the specified number of buckets .
func Buckets(n int, numBuckets int) []int {
	perBucket := n / numBuckets
	buckets := make([]int, numBuckets)
	for i := range buckets {
		buckets[i] = perBucket
		if i == 0 {
			buckets[i] += n % numBuckets
		}
	}
	return buckets
}
func Buckets ( n int , numBuckets int ) [ ] int { perBucket := n / numBuckets buckets := make ( [ ] int , numBuckets ) for i := range buckets { buckets [ i ] = perBucket if i == 0 { buckets [ i ] += n % numBuckets } } return buckets }
Buckets splits n over the specified number of buckets.
Buckets splits n over the specified number of buckets .