2022-21 part 1 in js
This commit is contained in:
parent
b7a31cc688
commit
7a7a788a11
7 changed files with 2640 additions and 6 deletions
|
@ -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))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue