We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 834d73c commit 800b813Copy full SHA for 800b813
2024/18/index.html
@@ -302,7 +302,7 @@ <h2 id="problem-name">RAM Run</h2>
302
// we can use a binary search for this
303
304
var blocks = GetBlocks(input);
305
- var (lo, hi) = (0, blocks.Length - 1);
+ var (lo, hi) = (0, blocks.Length);
306
while (hi - lo > 1) {
307
var m = (lo + hi) / 2;
308
if (Distance(blocks, m) == null) {
0 commit comments