Skip to content

Commit e9a4600

Browse files
committed
comment
1 parent 193857d commit e9a4600

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

2025/Day09/Solution.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ select Area(r)
2121
public object PartTwo(string input) {
2222
var points = Parse(input);
2323
var segments = Boundary(points).ToArray();
24+
// AabbCollision enables rectangles inside or outside the
25+
// shape, but the input is set up in a way that big rectangles
26+
// are all inside, so this loop will find the correct one for actual
27+
// problems.
2428
return (
2529
from r in RectanglesOrderedByArea(points)
2630
where segments.All(s => !AabbCollision(r, s))

0 commit comments

Comments
 (0)