Help in combinatorics

Revision en2, by peroooo, 2020-09-23 09:26:47

There are N RED balls and M BLACK balls output should be the total number to arrangements with atmost K balls can be together.

ex: Input: n = 3 m = 2 k =1 Output: 1 explantion: RBRBR

input: n = 2 n = 2 k =1 output: 2 explantion: RBRB BRBR

Tags #combinatorics, #maths

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English peroooo 2020-09-23 09:26:47 2 Tiny change: 'nts with almost K bal' -> 'nts with atmost K bal'
en1 English peroooo 2020-09-23 09:26:08 277 Initial revision (published)