Skip to content

Commit

Permalink
-1
Browse files Browse the repository at this point in the history
  • Loading branch information
encse committed Dec 18, 2024
1 parent fa8ab49 commit 5278adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2024/Day18/Solution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public object PartTwo(string input) {
// we can use a binary search for this

var blocks = GetBlocks(input);
var (lo, hi) = (0, blocks.Length - 1);
var (lo, hi) = (0, blocks.Length);
while (hi - lo > 1) {
var m = (lo + hi) / 2;
if (Distance(blocks, m) == null) {
Expand Down

0 comments on commit 5278adc

Please sign in to comment.