This commit is contained in:
nim-ka
2022-11-19 22:52:51 +00:00
parent 4ee438f8d6
commit 0485b4f035
74 changed files with 9130 additions and 44 deletions

View File

@@ -138,3 +138,7 @@ function day16(input, part2) {
let bits = input.split("").flatMap((e) => parseInt(e, 16).toString(2).padStart(4, "0").split("").num())
return new Packet(bits)[part2 ? "getValue" : "getVersionSum"]()
}
if (typeof window == "undefined") {
module.exports = day16
}