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

Method initialize

java/Chapter 16/Question16_4/LockFactory.java:31–36  ·  view source on GitHub ↗
(int count)

Source from the content-addressed store, hash-verified

29 }
30
31 public static LockFactory initialize(int count) {
32 if (instance == null) {
33 instance = new LockFactory(count);
34 }
35 return instance;
36 }
37
38 public boolean hasCycle(Hashtable<Integer, Boolean> touchedNodes, int[] resourcesInOrder) {
39 /* check for a cycle */

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected