Skip to content

Commit 375842e

Browse files
committed
add day 5
1 parent 23366da commit 375842e

File tree

3 files changed

+950
-1
lines changed

3 files changed

+950
-1
lines changed

day4/program.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const fs = require('fs');
22

33
fs.readFile('./input.txt', 'utf-8', (e, data) => {
4+
const start = Date.now();
45
const items = data.split("\n");
56
const rawPassports = findPassports(items);
67
const passportsCheck1 = splitPassportData(rawPassports);
@@ -24,7 +25,7 @@ fs.readFile('./input.txt', 'utf-8', (e, data) => {
2425
});
2526

2627
console.log(`Part2: Found ${validPassports} valid passports`);
27-
28+
console.log(Date.now() - start);
2829
});
2930

3031
function findPassports(data) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy