Ways 1
https://www.hackerrank.com/contests/codenection-2021-open-category-finals/challenges/ways-1-1
Last updated
https://www.hackerrank.com/contests/codenection-2021-open-category-finals/challenges/ways-1-1
Last updated
There is a wire of integer length lying flat. We will cut this wire at 11 integer positions to divide it into 12 smaller wires. Here, each of the 12 resulting wires must have a positive integer length. Find the number of ways to do this division. It can be proved that the answer is less than .
L
A single integer, the number of ways to divide the wire.
A typical stars and bars problem. A simple combinatorial calculation is enough to suffice the conditions.