https://kotlinlang.org logo
#advent-of-code
Title
# advent-of-code
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