SHARE
TWEET

Untitled

a guest Jun 20th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int assignBalls(int m, int n) {
  2.         if (m == 0 || n == 1) {
  3.             return 1;
  4.         }
  5.         if (n > m) {
  6.             return assignBalls(m, m);
  7.         } else {
  8.             return assignBalls(m, n - 1) + assignBalls(m - n, n);
  9.         }
  10.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top