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 827710d commit 95662fcCopy full SHA for 95662fc
src/2024/day14.js
@@ -70,7 +70,7 @@ export function part2(input, w = 101, h = 103) {
70
map[robot.py][robot.px] = "#";
71
});
72
let match = 0;
73
- for (let y = 0; y < h - tree.length; y++) {
+ for (let y = 0; y < h; y++) {
74
if (map[y].join("").includes(tree[match])) {
75
match++;
76
if (match === tree.length) return i;
0 commit comments