Advent of Code 2021 solutions, by Richard Fu. Credit to and inspired by shahata's solution.
To run TypeScripts in terminal, easiest way is using ts-node
:
> npm i -g ts-node
The repo uses @types/node
type definitions for node:
> npm i
> ts-node <filename>.ts
Otherwise, you can also skip npm i
by ignoring the type errors:
> ts-node --logError <filename>.ts
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |