Skip to content

My solutions for Advent of Code 2022, written with TypeScript

Notifications You must be signed in to change notification settings

attemoi/advent_of_code_2022

Repository files navigation

Advent Of Code 2022

Written in TypeScript for learning purposes. Focus on code readability, not performance.

How to run?

First, install dependencies with:

npm ci

The solution for each day can be run separately with:

npm run <day_num> (for example npm run 01)

Run all unit tests with:

npm run test

Run eslint and prettier with:

npm run lint

Project structure

The directory for each day contains the following files:

  • solution.ts
    • has functions part1() and part2(). These functions solve the problem and print the solution for the day.
  • run.ts
    • runs the part1() and part2() functions from solution.ts
    • called by the npm run <day_num> script in package.json
  • input.txt
  • README.md - problem description

For some days, there are additional *.ts files for better code organization.

The template directory contains a template for the files for one day.

The utils directory contains some utilities used across the project.

About

My solutions for Advent of Code 2022, written with TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published