Join Slack
Powered by
<https://gist.github.com/joelpedraza/b43efc1d91053...
# advent-of-code
j
joelpedraza
12/08/2018, 12:01 AM
https://gist.github.com/joelpedraza/b43efc1d91053d9e9ff18872cbb3c1b2
k
karelpeeters
12/08/2018, 12:30 AM
What's going on with the leaves? I think you can simplify that to
Copy code
val frontier = graph.filterTo(PriorityQueue()) { it.children.isEmpty() }
7
Views
Open in Slack
Previous
Next