mirror of
https://github.com/Baipyrus/AoC-23.git
synced 2024-09-17 10:59:43 +00:00
18 lines
299 B
JavaScript
18 lines
299 B
JavaScript
import { readFileSync } from "fs";
|
|
const t0 = performance.now();
|
|
|
|
const patterns = [
|
|
"abcde",
|
|
"aabcd",
|
|
"aabbc",
|
|
"aaabc",
|
|
"aaabb",
|
|
"aaaab",
|
|
"aaaaa",
|
|
];
|
|
const input = readFileSync("input.txt").toString();
|
|
console.log(input);
|
|
|
|
const t1 = performance.now();
|
|
console.log(`Runtime: ${t1 - t0}ms`);
|