/advent-of-code

Advent of Code puzzle solutions, by Richard Fu.

Primary LanguageTypeScriptMIT LicenseMIT

Advent of Code

Advent of Code solutions, by Richard Fu.

Code Run

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
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