MCPcopy Create free account
hub / github.com/careercup/ctci / main

Method main

java/Chapter 9/Question9_4/Question.java:49–59  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

47 }
48
49 public static void main(String[] args) {
50 ArrayList<Integer> list = new ArrayList<Integer>();
51 for (int i = 0; i < 3; i++) {
52 list.add(i);
53 }
54 ArrayList<ArrayList<Integer>> subsets = getSubsets(list, 0);
55 System.out.println(subsets.toString());
56
57 ArrayList<ArrayList<Integer>> subsets2 = getSubsets2(list);
58 System.out.println(subsets2.toString());
59 }
60
61}

Callers

nothing calls this directly

Calls 4

getSubsetsMethod · 0.95
getSubsets2Method · 0.95
addMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected