Python algorithm for generating 'balls in bins' outcomes with limits on bin size?

前端 未结 0 874
刺人心
刺人心 2021-01-16 06:10

Suppose we have N balls and M bins to put them into. The number of outcomes for this can be found using \'stars and bars\' method https://brilliant.org/wiki/integer-equation

相关标签:
回答
  • 消灭零回复
提交回复
热议问题