start on 4

This commit is contained in:
Seth Samuel 2025-04-05 09:27:51 +00:00
parent 3acbec3d91
commit 96ac812836
4 changed files with 523 additions and 0 deletions

9
4/index.js Normal file
View file

@ -0,0 +1,9 @@
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