adventOfCode2024/4/index.js
2025-04-05 09:27:51 +00:00

9 lines
317 B
JavaScript

const fs = require("fs")
const forwardRegex = /XMAS/g
const input = fs.readFileSync("input.txt","utf-8")
const inputArr = input.split("\n")
console.log(inputArr)
// const forwardMatchs = input.match(forwardRegex)
// console.log(input)
// console.log(forwardMatchs.length)
//create a sliding window to match the words