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

Method main

java/Chapter 9/Question9_2/QuestionR.java:38–52  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

36 }
37
38 public static void main(String[] args) {
39 int size = 5;
40 maze = AssortedMethods.randomMatrix(size, size, 0, 5);
41
42 AssortedMethods.printMatrix(maze);
43
44 ArrayList<Point> path = new ArrayList<Point>();
45 boolean success = getPath(size - 1, size - 1, path);
46 if (success) {
47 String s = AssortedMethods.listOfPointsToString(path);
48 System.out.println(s);
49 } else {
50 System.out.println("No path found.");
51 }
52 }
53
54}

Callers

nothing calls this directly

Calls 4

randomMatrixMethod · 0.95
printMatrixMethod · 0.95
getPathMethod · 0.95
listOfPointsToStringMethod · 0.95

Tested by

no test coverage detected