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

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy