File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ case class State(pads: List[Pad] = List(), output: String = "") {
76
76
State (newPads, newOutput)
77
77
}
78
78
79
- case class Node (state : State = State (), program : String = " " ) extends Ordered [Node ] {
80
- def compare (that : Node ): Int = that.program.length compare program.length // Intentionally reversed for min-heap
81
- }
82
-
83
79
def shortestProgram (startState : State , goal : String ): String =
80
+ case class Node (state : State = State (), program : String = " " ) extends Ordered [Node ] {
81
+ def compare (that : Node ): Int = that.program.length compare program.length // Intentionally reversed for min-heap
82
+ }
83
+
84
84
// Your run-of-the-mill Dijkstra implementation
85
85
86
86
val queue = mutable.PriorityQueue [Node ]()
You can’t perform that action at this time.
0 commit comments