diff --git a/2024/day4/part2.js b/2024/day4/part2.js new file mode 100644 index 0000000..2c2607c --- /dev/null +++ b/2024/day4/part2.js @@ -0,0 +1,16 @@ +#!/usr/bin/env node + + +var input = require('fs').readFileSync(process.argv[2]||'input.txt','utf8').split('\n').filter(i=>i); + +var width = input.length; + +var sum=0; +for(var i=1;i