Skip to content

Commit 800b813

Browse files
Update docs on Wed Dec 18 09:10:24 UTC 2024
1 parent 834d73c commit 800b813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2024/18/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ <h2 id="problem-name">RAM Run</h2>
302302
// we can use a binary search for this
303303

304304
var blocks = GetBlocks(input);
305-
var (lo, hi) = (0, blocks.Length - 1);
305+
var (lo, hi) = (0, blocks.Length);
306306
while (hi - lo &gt; 1) {
307307
var m = (lo + hi) / 2;
308308
if (Distance(blocks, m) == null) {

0 commit comments

Comments
 (0)