Skip to content

Instantly share code, notes, and snippets.

View mmirzaee's full-sized avatar

Ali Mirzaei mmirzaee

View GitHub Profile
@mmirzaee
mmirzaee / part2.js
Created December 12, 2022 12:37
AoC 2022, part2
const fs = require("fs");
const content = fs.readFileSync("input").toString().split("\n").map(i => i.split(''));
content.pop();
let routes = [];
let starts = [];
end = {
i: 0,
j: 0
};
for (let i = 0; i < content.length; i++) {