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

https://github.com/sanurb/advent-js

🎅 Solutions to the challenges proposed by @midudev on https://adventjs.dev
https://github.com/sanurb/advent-js

advent-js advent-of-code challenge christmas javascript midudev newbie solutions

Last synced: 6 months ago
JSON representation

🎅 Solutions to the challenges proposed by @midudev on https://adventjs.dev

Awesome Lists containing this project

README

          

# 🎅🌟 adventJS solutions - Sanurb



🧑‍🚀 24 days /
24 coding challenges • adventJS 🚀

This repository contains the solutions to the challenges proposed by [@midudev](https://midu.dev/) on the [adventJS](https://adventjs.dev/) website.

## 🤖 2022

Show / Hide

### 🎮️ Challenges

| # | Challenge | Difficulty[^1] | Solution |
| :-: | :-----------------------------------------------------------: | :------------: | :-----------------------------------: |
| 01 | [Automating Christmas gift wrapping!](2022/challenge-01) | 🟢 | [Show](2022/challenge-01/solution.js) |
| 02 | [Nobody wants to do extra hours at work](2022/challenge-02) | 🟢 | [Show](2022/challenge-02/solution.js) |
| 03 | [How many packs of gifts can Santa carry?](2022/challenge-03) | 🟢 | [Show](2022/challenge-03/solution.js) |
| 04 | [Box inside a box and another...](2022/challenge-04) | 🟠 | [Show](2022/challenge-04/solution.js) |
| 05 | [Optimizing Santa's trips](2022/challenge-05) | 🔴 | [Show](2022/challenge-05/solution.js) |
| 06 | [Creating xmas decorations](2022/challenge-06) | 🟠 | [Show](2022/challenge-06/solution.js) |
| 07 | [Doing gifts inventory](2022/challenge-07) | 🟢 | [Show](2022/challenge-07/solution.js) |
| 08 | [We need a mechanic!](2022/challenge-08) | 🟠 | [Show](2022/challenge-08/solution.js) |
| 09 | [Crazy Xmas lights](2022/challenge-09) | 🟢 | [Show](2022/challenge-09/solution.js) |
| 10 | [The Santa Claus sleigh jump](2022/challenge-10) | 🟠 | [Show](2022/challenge-10/solution.js) |
| 11 | [Santa Claus is Scrum Master](2022/challenge-11) | 🔴 | [Show](2022/challenge-11/solution.js) |
| 12 | [Electric sleighs, wow!](2022/challenge-12) | 🟠 | [Show](2022/challenge-12/solution.js) |
| 13 | [Backups for Santa Claus files](2022/challenge-13) | 🟢 | [Show](2022/challenge-13/solution.js) |
| 14 | [The best path](2022/challenge-14) | 🟢 | [Show](2022/challenge-14/solution.js) |
| 15 | [Decorating the Christmas tree](2022/challenge-15) | 🟠 | [Show](2025/challenge-15/solution.js) |
| 16 | [Fixing Santa Claus' letters](2022/challenge-16) | 🔴 | [Show](2022/challenge-16/solution.js) |
| 17 | [Carrying gifts in bags](2022/challenge-17) | 🟠 | [Show](2022/challenge-17/solution.js) |
| 18 | [We ran out of ink!](2022/challenge-18) | 🟢 | [Show](2022/challenge-18/solution.js) |
| 19 | [Sorting the toys!](2022/challenge-19) | 🟢 | [Show](2022/challenge-19/solution.js) |
| 20 | [More challenging trips](2022/challenge-20) | 🔴 | [Show](2022/challenge-20/solution.js) |
| 21 | [Creating the gifts table](2022/challenge-21) | 🟠 | [Show](2022/challenge-21/solution.js) |
| 22 | [The lights in sync](2022/challenge-22) | 🟢 | [Show](2022/challenge-22/solution.js) |

[^1]: **Difficulty**: 🟢 Easy 🟠 Medium 🔴 Hard 🟣 Very Hard

## 🚀 Quick start

- Install

```bash
make install
# or
npm install
```

- Run all challenges

```bash
make run
# or
npm test
```

- Run specific challenge

```bash
make run YEAR=YYYY CHALLENGE=XX # where YYYY is the year and XX is the challenge number
# or
npm test YYYY/challenge-XX # where YYYY is the year and XX is the challenge number
```

## 🚩 License

MIT @ Inspired by the repository of [borjapazr](https://github.com/borjapazr/awesome-adventjs). Please see [License](LICENSE) for more information.