In this task you are given an odd number of white balls and the same number of black balls. The task is to count all the ways of putting the balls into bins so that in each bin there is an odd number of each color.
For example, say we have 3 white balls. The different ways are:
(wwwbbb)
(wb)(wb)(wb)
for the two different possibilities.
If we have 5 white balls the different ways are:
(wwwwwbbbbb)
(wwwbbb)(wb)(wb)
(wwwb)(wbbb)(wb)
(wb)(wb)(wb)(wb)(wb)
You can take the input, which is a single integer, in any way you like. The output is just a single integer.
Your code must be fast enough so that you have seen it complete for 11 white balls.
You can use any language or library that you like.
:)
\$\endgroup\$