renamed 2 digit file names

This commit is contained in:
Tristan 2018-12-10 23:56:11 +00:00
parent 018011dd27
commit b4d985a55a
44 changed files with 0 additions and 0 deletions

9
2015/05/part2.js Normal file
View file

@ -0,0 +1,9 @@
const fs = require('fs');
const input = fs.readFileSync('input.txt', 'utf-8').split('\n');
let counter = 0;
for (let str of input) {
if (str.match(/(\w{2}).*\1/g) && str.match(/(\w)\w\1/g))
counter++;
}
console.log(counter)