MCPcopy Create free account
hub / github.com/MeigenChou/DCTimer-Android / idxToComb

Method idxToComb

app/src/main/java/solver/Cross.java:49–57  ·  view source on GitHub ↗
(int[] arr, int[] s, int c, int o)

Source from the content-addressed store, hash-verified

47 }
48
49 private static void idxToComb(int[] arr, int[] s, int c, int o) {
50 int q = 4;
51 for (int i = 0; i < 12; i++)
52 if (c >= Cnk[11 - i][q]) {
53 c -= Cnk[11 - i][q--];
54 arr[i] = s[q] << 1 | o & 1;
55 o >>= 1;
56 } else arr[i] = -1;
57 }
58
59 private static void idxToComb(int[] arr, int[] s, int c, int o, int[] map) {
60 int q = 4;

Callers 2

getmvMethod · 0.95
easyCrossMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected