Skip to content

Commit 5278adc

Browse files
committed
-1
1 parent fa8ab49 commit 5278adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2024/Day18/Solution.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public object PartTwo(string input) {
1616
// we can use a binary search for this
1717

1818
var blocks = GetBlocks(input);
19-
var (lo, hi) = (0, blocks.Length - 1);
19+
var (lo, hi) = (0, blocks.Length);
2020
while (hi - lo > 1) {
2121
var m = (lo + hi) / 2;
2222
if (Distance(blocks, m) == null) {

0 commit comments

Comments
 (0)