Problem 1516. Put m balls into n boxes
Can you find all the cases where, if I put 3 balls into 2 boxes
the case is
the columns stand for a ball, the number stands for box, and the row stands for a case.
So we have 4 cases
You should write a function, input m and n, m stand for the number of balls, n stands for the number of boxes, output all the cases.
If m = 3, n = 4 then you should output
Solution CommentsShow comments
Problem Recent Solvers64