mirror of
https://github.com/danbulant/adventOfCode
synced 2026-05-20 04:38:34 +00:00
9 lines
No EOL
245 B
TypeScript
9 lines
No EOL
245 B
TypeScript
|
|
const input: string = Deno.readTextFileSync("input");
|
|
|
|
for(let i = 14; i < input.length; i++) {
|
|
let last = input.slice(i - 14, i);
|
|
if(last.split("").find((c, i, a) => a.indexOf(c) !== i)) continue;
|
|
console.log(last, i);
|
|
break;
|
|
} |