generated from eric/adventofcode2023
day two part two
This commit is contained in:
@@ -4,22 +4,23 @@ const inputArray = readFileSync('sample.txt').toString().split("\n");
|
||||
// const inputArray = readFileSync('input.txt').toString().split("\n");
|
||||
|
||||
// Part One
|
||||
|
||||
console.time("part1");
|
||||
for (const element of inputArray) {
|
||||
const contents = element.split(" ");
|
||||
|
||||
}
|
||||
|
||||
console.timeEnd("part1");
|
||||
console.log();
|
||||
|
||||
|
||||
// Part Two
|
||||
|
||||
console.time("part2");
|
||||
for (const element of inputArray) {
|
||||
const contents = element.split(" ");
|
||||
|
||||
}
|
||||
|
||||
console.log();
|
||||
|
||||
console.timeEnd("part2");
|
||||
// functions
|
||||
|
||||
Reference in New Issue
Block a user