Skip to content

Commit 2dcc295

Browse files
Update docs on Thu Dec 11 18:03:19 UTC 2025
1 parent d68f456 commit 2dcc295

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

2025/9/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,10 @@ <h2 id="problem-name">Movie Theater</h2>
312312
public object PartTwo(string input) {
313313
var points = Parse(input);
314314
var segments = Boundary(points).ToArray();
315+
// AabbCollision enables rectangles inside or outside the
316+
// shape, but the input is set up in a way that big rectangles
317+
// are all inside, so this loop will find the correct one for actual
318+
// problems.
315319
return (
316320
from r in RectanglesOrderedByArea(points)
317321
where segments.All(s =&gt; !AabbCollision(r, s))

0 commit comments

Comments
 (0)