Count the number of ways to distribute n identical items into k bins using stars and bars.
Constraints
Example
>>> stars_and_bars_count(5, 3) 21 >>> stars_and_bars_count(0, 5) 1 >>> stars_and_bars_count(10, 1) 1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints