package
0.0.0-20241020204346-852d83918761
Repository: https://github.com/plutov/practice-go.git
Documentation: pkg.go.dev
# README
Coins
Let Piles(n int)
represent the number of different ways in which n
coins can be separated into piles. For example, five coins can be separated into piles in exactly seven different ways, so Piles(5)=7
.
OOOOO
OOOO O
OOO OO
OOO O O
OO OO O
OO O O O
O O O O O
Input
0 < n <= 1000000
Run tests with benchmarks
go test -bench .