start on 4
This commit is contained in:
parent
3acbec3d91
commit
96ac812836
4 changed files with 523 additions and 0 deletions
9
4/index.js
Normal file
9
4/index.js
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue