Skip to content

Commit c62cf70

Browse files
committed
chore: syntax
1 parent 17f68cc commit c62cf70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

2024/ts/src/day-4-ceres-search.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ SMSMSASXSS
88
SAXAMASAAA
99
MAMMMXMMMM
1010
MXMXAXMASX`;
11+
1112
const table = input.split("\n").map((row) => row.split(""));
1213
const rows = table.length;
1314
const cols = table[0]?.length;
1415
const word = "XMAS".split("");
1516
let count = 0;
1617

18+
// Part 1
1719
for (let i = 0; i < rows; i++) {
1820
for (let j = 0; j < rows; j++) {
1921
// Find horizontal
@@ -43,4 +45,4 @@ for (let i = 0; i < rows; i++) {
4345
}
4446
}
4547

46-
console.log(count);
48+
console.log("part 1", count);

0 commit comments

Comments
 (0)