Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mkuranowski/adventofcode2022

AoC 2022 soltution in Deno-flavored TypeScript
https://github.com/mkuranowski/adventofcode2022

advent-of-code advent-of-code-2022 advent-of-code-2022-typescript deno typescript

Last synced: 16 days ago
JSON representation

AoC 2022 soltution in Deno-flavored TypeScript

Awesome Lists containing this project

README

        

See for a list of tasks.

This time: TypeScript and the Deno runtime.

Day-specific notes:
- Input format for day 5 has been turned sideways, for easier parsing.
- Day 16 was completely fucked up. Especially for part B,
which is a brute force in order of 2**16, I needed the code to run as fast as possible.
That's why it's written in Rust, while a small part (graph "compression") is written in TS.

Still, the solver for part 2 needs 6 seconds to run, at least on my modern PC.
- Day 22 - very elegant solution for part B (/s), I'm assuming everyone gets a different net?