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

Method countUnknown

app/src/main/java/cs/min2phase/Tools.java:146–157  ·  view source on GitHub ↗
(int[] arr)

Source from the content-addressed store, hash-verified

144 }
145
146 private static int countUnknown(int[] arr) {
147 if (arr == STATE_SOLVED) {
148 return 0;
149 }
150 int cnt = 0;
151 for (int i = 0; i < arr.length; i++) {
152 if (arr[i] == -1) {
153 cnt++;
154 }
155 }
156 return cnt;
157 }
158
159 private static int resolvePerm(int[] arr, int cntU, int parity) {
160 if (arr == STATE_SOLVED) {

Callers 1

randomStateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected