Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: algorithm to slice a number into parts.
Another can be,
a) All Integers n1 = n2 = n3 =.....= n[m-1] = int(n / m) and nm = n - (n1 + n2 + n3 +.....+ n[m-1])
b) Floats n1 = n2 = n3 =.....= n[m] = n / m
I feel the problem can be more serious if you want the parts to be in certain fashion or distribution.
There are no comments on this comment yet.
Another can be,
a) All Integers n1 = n2 = n3 =.....= n[m-1] = int(n / m) and nm = n - (n1 + n2 + n3 +.....+ n[m-1])
b) Floats n1 = n2 = n3 =.....= n[m] = n / m
I feel the problem can be more serious if you want the parts to be in certain fashion or distribution.