Update part_2.ts
This commit is contained in:
parent
e84a341243
commit
118fc14488
@ -8,7 +8,7 @@ const isrun = process.argv.length > 1 && process.argv[1] === import.meta.path;
|
|||||||
if (isrun) {
|
if (isrun) {
|
||||||
const file = Bun.file("./problem.txt");
|
const file = Bun.file("./problem.txt");
|
||||||
const text = await file.text();
|
const text = await file.text();
|
||||||
const lines = text.split("\n");
|
const lines = text.split("\n").filter((x) => x && x.length);
|
||||||
|
|
||||||
console.log("=== COMPUTATION ===\n");
|
console.log("=== COMPUTATION ===\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user