MCPcopy Index your code
hub / github.com/careercup/ctci / main

Method main

java/Chapter 9/Question9_11/Question.java:315–324  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

313 }
314
315 public static void main(String[] args) {
316 String terms = "0^0|1&1^1|0|1";
317 boolean result = true;
318
319 bruteForce(terms, new HashMap<String, Boolean>(), result, new boolean[(terms.length() - 1) / 2]);
320 System.out.println(countR(terms, result, 0, terms.length() - 1));
321 System.out.println(countDP(terms, result, 0, terms.length() - 1, new HashMap<String, Integer>()));
322 System.out.println(countDPEff(terms, result, 0, terms.length() - 1, new HashMap<String, Integer>()));
323
324 }
325
326}

Callers

nothing calls this directly

Calls 5

bruteForceMethod · 0.95
countRMethod · 0.95
countDPMethod · 0.95
countDPEffMethod · 0.95
lengthMethod · 0.45

Tested by

no test coverage detected