filter empty

This commit is contained in:
Baipyrus 2023-12-08 11:25:33 +01:00
parent a70260cb8a
commit ccb408c9e2

View File

@ -1,7 +1,10 @@
import { readFileSync } from "fs";
const t0 = performance.now();
const categories = readFileSync("input.txt").toString().split("\n\n");
const categories = readFileSync("input.txt")
.toString()
.split("\n\n")
.filter((e) => e.length > 0);
const seeds = categories[0]
.split(" ")
.slice(1)