2022-21 part 1 in js

This commit is contained in:
Julien Dessaux 2022-12-31 17:04:04 +01:00
parent b7a31cc688
commit 7a7a788a11
Signed by: adyxax
GPG key ID: F92E51B86E07177E
7 changed files with 2640 additions and 6 deletions

View file

@ -65,9 +65,9 @@ class File {
function load(filename) {
return new File(
fs.readFileSync(filename, "utf8")
.trim()
.split("\n")
.map(line => parseInt(line))
.trim()
.split("\n")
.map(line => parseInt(line))
);
}