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 57639ec commit 4d6b1e7Copy full SHA for 4d6b1e7
src/2025/day12.js
@@ -39,7 +39,7 @@ function solvable(area) {
39
for (let x = 0; x <= area.space[0].length - rotation[0].length; x++) {
40
let space = place(area.space, rotation, x, y);
41
if (!space) continue;
42
- if (++count > 20) return false;
+ if (++count > 20) return false; // 20 placements tried, give up
43
if (solvable({ space, shapes: area.shapes.slice(1) })) {
44
return true;
45
}
0 commit comments