(int[] orientation, int length, boolean zeroSum)
| 164 | |
| 165 | // orientation |
| 166 | public static int oriToIdx(int[] orientation, int length, boolean zeroSum) { |
| 167 | int index = 0; |
| 168 | if (zeroSum) length--; |
| 169 | for (int i = 0; i < length; i++) |
| 170 | index = 3 * index + (orientation[i] % 3); |
| 171 | return index; |
| 172 | } |
| 173 | |
| 174 | public static void idxToOri(int[] orientation, int index, int length, boolean zeroSum) { |
| 175 | int sum = 0; |
no outgoing calls
no test coverage detected