Distribute a number into a list of values as equal as possible whose sum is equal to that number – codegolf.stackexchange.com

Probably a simple code-golf challenge. Given 2 positive integers m and n, make a list of n values that are positive integers whose sum is equal to the number m. Examples For example m=6 and n=3 ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Distribute a number into a list of values as equal as possible whose sum is equal to that number – codegolf.stackexchange.com"