(int n)
| 139 | } |
| 140 | |
| 141 | public static int friendsPairing(int n) { |
| 142 | if(n == 1 || n == 2) { |
| 143 | return n; |
| 144 | } |
| 145 | |
| 146 | return friendsPairing(n-1) + (n-1) * friendsPairing(n-2); |
| 147 | } |
| 148 | |
| 149 | public static void printBinStrings(int n, int lastPlace, String str) { |
| 150 | //base case |
nothing calls this directly
no outgoing calls
no test coverage detected