Skip to content

Commit 95662fc

Browse files
committed
bug fix
1 parent 827710d commit 95662fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/2024/day14.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function part2(input, w = 101, h = 103) {
7070
map[robot.py][robot.px] = "#";
7171
});
7272
let match = 0;
73-
for (let y = 0; y < h - tree.length; y++) {
73+
for (let y = 0; y < h; y++) {
7474
if (map[y].join("").includes(tree[match])) {
7575
match++;
7676
if (match === tree.length) return i;

0 commit comments

Comments
 (0)