MCPcopy Create free account
hub / github.com/MolinDeng/Princeton-algs4 / compareTo

Method compareTo

04Lab-8Puzzle/Solver.java:32–34  ·  view source on GitHub ↗
(Node that)

Source from the content-addressed store, hash-verified

30 }
31
32 public int compareTo(Node that) {
33 return Integer.compare(this.manhattanScore, that.manhattanScore);
34 }
35 }
36
37 // find a solution to the initial board (using the A* algorithm)

Callers 1

getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected