We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 697df37 commit 0e1d0afCopy full SHA for 0e1d0af
src/main/kotlin/adventofcode/day12/GardenGroups.kt
@@ -46,8 +46,6 @@ data class PerimeterPoint(val point: Point2D, val side: Direction) {
46
47
data class GardenGroup(private val points: Set<Point2D>) {
48
49
- private fun Point2D.isHorizontalSidePoint() = this.north() in points || this.south() in points
50
-
51
private fun sides(): List<Set<PerimeterPoint>> {
52
val perimeter = perimeter()
53
return Graphs.connectedComponents(perimeter) { p -> p.neighbors().filter { it in perimeter } }
0 commit comments