Hacker News new | past | comments | ask | show | jobs | submit login

    [n//(n//g)+(i<n%g) for i in range(n//g)]
Each one of (n//g) groups gets at least n//(n//g) members plus 1 if the remainder is >i.



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: