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

Method main

java/Chapter 9/Question9_10/Question.java:73–82  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

71
72
73 public static void main(String[] args) {
74 Box[] boxes = { new Box(3, 4, 1), new Box(8, 6, 2), new Box(7, 8, 3)};
75
76 ArrayList<Box> stack = createStackDP(boxes, null, new HashMap<Box, ArrayList<Box>>());
77 //ArrayList<Box> stack = createStackR(boxes, null);
78 for (int i = stack.size() - 1; i >= 0; i--) {
79 Box b = stack.get(i);
80 System.out.println(b.toString());
81 }
82 }
83
84}

Callers

nothing calls this directly

Calls 4

createStackDPMethod · 0.95
toStringMethod · 0.95
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected