https://github.com/asjordi/adventjs
Personal solutions for AdventJs
https://github.com/asjordi/adventjs
adventjs adventjs2022 adventjs2023 adventjs2024 javascipt solutions
Last synced: 3 months ago
JSON representation
Personal solutions for AdventJs
- Host: GitHub
- URL: https://github.com/asjordi/adventjs
- Owner: ASJordi
- License: mit
- Created: 2022-12-06T22:35:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-25T14:06:01.000Z (6 months ago)
- Last Synced: 2025-01-29T22:34:01.944Z (4 months ago)
- Topics: adventjs, adventjs2022, adventjs2023, adventjs2024, javascipt, solutions
- Language: JavaScript
- Homepage:
- Size: 387 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![Tests][tests-shield]][tests-url]
## Content
Show / Hide
## Challenges
### :snowman: 2024
Show / Hide
| # | Name | Difficulty | Solution | Score |
|:--:|:-----------------------------------------------:|:----------:|:---------------------------------:|:-----:|
| 01 | 🎁 ¡Primer regalo repetido! | 🟢 | [Show](src/2024/day-one/) | ⭐⭐⭐⭐⭐ |
| 02 | 🖼️ Enmarcando nombres | 🟢 | [Show](src/2024/day-two/) | ⭐⭐⭐⭐⭐ |
| 03 | 🏗️ Organizando el inventario | 🟢 | [Show](src/2024/day-three) | ⭐⭐⭐⭐⭐ |
| 04 | 🎄 Decorando el árbol de Navidad | 🟠 | [Show](src/2024/day-four) | ⭐⭐⭐⭐⭐ |
| 05 | 👞 Emparejando botas | 🟢 | [Show](src/2024/day-five) | ⭐⭐⭐⭐⭐ |
| 06 | 📦 ¿Regalo dentro de la caja? | 🟠 | [Show](src/2024/day-six) | ⭐⭐⭐⭐⭐ |
| 07 | 👹 El ataque del Grinch | 🟠 | [Show](src/2024/day-seven) | ⭐⭐⭐⭐⭐ |
| 08 | 🦌 La carrera de renos | 🟢 | [Show](src/2024/day-eight) | ⭐⭐⭐⭐⭐ |
| 09 | 🚂 El tren mágico | 🟠 | [Show](src/2024/day-nine) | ⭐⭐⭐⭐⭐ |
| 10 | 👩💻 El ensamblador élfico | 🟠 | [Show](src/2024/day-ten) | ⭐⭐⭐⭐⭐ |
| 11 | 🏴☠️ Nombres de archivos codificados | 🟢 | [Show](src/2024/day-eleven) | ⭐⭐⭐⭐⭐ |
| 12 | 💵 ¿Cuánto cuesta el árbol? | 🟢 | [Show](src/2024/day-twelve) | ⭐⭐⭐⭐⭐ |
| 13 | 🤖 ¿El robot está de vuelta? | 🔴 | [Show](src/2024/day-thirteen) | ⭐⭐⭐⭐⭐ |
| 14 | 🦌 Acomodando los renos | 🟢 | [Show](src/2024/day-fourteen) | ⭐⭐⭐⭐⭐ |
| 15 | ✏️ Dibujando tablas | 🟢 | [Show](src/2024/day-fifteen) | ⭐⭐⭐⭐⭐ |
| 16 | ❄️ Limpiando la nieve del camino | 🟢 | [Show](src/2024/day-sixteen) | ⭐⭐⭐⭐⭐ |
| 17 | 💣 Busca las bombas del Grinch | 🟠 | [Show](src/2024/day-seventeen) | ⭐⭐⭐⭐⭐ |
| 18 | 📇 La agenda mágica de Santa | 🔴 | [Show](src/2024/day-eighteen) | ⭐⭐⭐⭐⭐ |
| 19 | 📦 Apila cajas mágicas para repartir regalos | 🔴 | [Show](src/2024/day-nineteen) | ⭐⭐⭐⭐⭐ |
| 20 | 🎁 Encuentra los regalos faltantes y duplicados | 🟢 | [Show](src/2024/day-twenty) | ⭐⭐⭐⭐⭐ |
| 21 | 🎄 Calcula la altura del árbol de Navidad | 🟢 | [Show](src/2024/day-twenty-one) | ⭐⭐⭐⭐⭐ |
| 22 | 🎁 Genera combinaciones de regalos | 🟠 | [Show](src/2024/day-twenty-two) | ⭐⭐⭐⭐⭐ |
| 23 | 🔢 Encuentra los números perdidos | 🟢 | [Show](src/2024/day-twenty-three) | ⭐⭐⭐⭐⭐ |
| 24 | 🪞 Verifica si los árboles son espejos mágicos | 🟠 | [Show](src/2024/day-twenty-four) | ⭐⭐⭐⭐⭐ |
| 25 | 🪄 Ejecuta el lenguaje mágico | 🟠 | [Show](src/2024/day-twenty-five) | ⭐⭐⭐⭐⭐ |
| 26 | 🎯 Calculate the completed percentage | 🟢 | [Show](src/2024/day-twenty-six) | ⭐⭐⭐⭐⭐ |**Difficulty**: 🟢 Easy 🟠 Medium 🔴 Hard
### :christmas_tree: 2023
Show / Hide
| # | Name | Difficulty[^1] | Solution |
|:--:|:---------------------------------------------------:|:--------------:|:---------------------------------:|
| 01 | ¡Primer regalo repetido! | 🟢 | [Show](src/2023/day-one/) |
| 02 | 🏭 Ponemos en marcha la fábrica | 🟢 | [Show](src/2023/day-two/) |
| 03 | 😏 El elfo travieso | 🟢 | [Show](src/2023/day-three) |
| 04 | 😵💫 Dale la vuelta a los paréntesis | 🟠 | [Show](src/2023/day-four) |
| 05 | 🛷 El CyberTruck de Santa | 🟠 | [Show](src/2023/day-five) |
| 06 | 🦌 Los renos a prueba | 🟢 | [Show](src/2023/day-six) |
| 07 | 📦 Las cajas en 3D | 🟢 | [Show](src/2023/day-seven) |
| 08 | 📦 Las cajas en 3D | 🟢 | [Show](src/2023/day-seven) |
| 09 | 🚦 Alterna las luces | 🟢 | [Show](src/2023/day-nine) |
| 10 | 🎄 Crea tu propio árbol de navidad | 🟢 | [Show](src/2023/day-ten) |
| 11 | 📖 Los elfos estudiosos | 🟠 | [Show](src/2023/day-eleven) |
| 12 | 📸 ¿Es una copia válida? | 🟠 | [Show](src/2023/day-twelve) |
| 13 | ⌚️ Calculando el tiempo | 🟢 | [Show](src/2023/day-thirteen) |
| 14 | 🚨 Evita la alarma | 🟠 | [Show](src/2023/day-fourteen) |
| 15 | ↔️ Robot autónomo | 🟠 | [Show](src/2023/day-fifteen) |
| 16 | ❌ Despliegue en viernes | 🟢 | [Show](src/2023/day-sixteen) |
| 17 | 🛷 Optimizando el alquiler | 🟢 | [Show](src/2023/day-seventeen) |
| 18 | 🔢 El reloj digital | 🔴 | [Show](src/2023/day-eighteen) |
| 19 | 💣 Enfrenta el sabotaje | 🟠 | [Show](src/2023/day-nineteen) |
| 20 | 🏋️♂️ Distribuye el peso | 🔴 | [Show](src/2023/day-twenty) |
| 21 | 🪐 Mensaje binario | 🟠 | [Show](src/2023/day-twenty-one) |
| 22 | 🚂 Lenguaje de programación | 🟢 | [Show](src/2023/day-twenty-two) |
| 23 | 🍽️ La comida de Navidad | 🟢 | [Show](src/2023/day-twenty-three) |
| 24 | 🪜 Brincos en la escalera | 🟠 | [Show](src/2023/day-twenty-four) |
| 25 | 🗺️ Calculando distancias | 🟠 | [Show](src/2023/day-twenty-five) |[^1]: **Difficulty**: 🟢 Easy 🟠 Medium 🔴 Hard
### :santa: 2022
Show / Hide
| # | Name | Difficulty[^1] | Solution |
| :-: | :-----------------------------------------------: | :------------: | :--------------------------------------------------------------------------: |
| 01 | Automating Christmas gift wrapping! | 🟢 | [Solution](src/day-one) |
| 02 | Nobody wants to do extra hours at work | 🟢 | [Solution](src/day-two) |
| 03 | How many packs of gifts can Santa carry? | 🟢 | [Solution](src/day-three) |
| 04 | Box inside a box and another... | 🟠 | [Solution](src/day-four) |
| 05 | Optimizing Santa's trips | 🔴 | [Solution](src/day-five) |
| 06 | Creating xmas decorations | 🟠 | [Solution](src/day-six) |
| 07 | Doing gifts inventory | 🟢 | [Solution](src/day-seven) |
| 08 | We need a mechanic! | 🟠 | [Solution](src/day-eight) |
| 09 | Crazy Xmas lights | 🟢 | [Solution](src/day-nine) |
| 10 | The Santa Claus sleigh jump | 🟠 | [Solution](src/day-ten) |
| 11 | Santa Claus is Scrum Master | 🔴 | [Solution](src/day-eleven) |
| 12 | Electric sleighs, wow! | 🟠 | [Solution](src/day-twelve) |
| 13 | Backups for Santa Claus files | 🟢 | [Solution](src/day-thirteen) |
| 14 | The best path | 🟠 | [Solution](src/day-fourteen) |
| 15 | Decorating the Christmas tree | 🟠 | [Solution](src/day-fifteen) |
| 16 | Fixing Santa Claus' letters | 🔴 | [Solution](src/day-sixteen) |
| 17 | Carrying gifts in bags | 🟠 | [Solution](src/day-seventeen) |
| 18 | We ran out of ink! | 🟢 | [Solution](src/day-eighteen) |
| 19 | Sorting the toys! | 🟢 | [Solution](src/day-nineteen) |
| 20 | More challenging trips | 🔴 | [Solution](src/day-twenty) |
| 21 | Creating the gifts table | 🟠 | [Solution](src/day-twenty-one) |
| 22 | The lights in sync | 🟢 | [Solution](src/day-twenty-two) |
| 23 | Santa Claus Compiler | 🔴 | [Solution](src/day-twenty-three) |
| 24 | The last challenge is a maze | 🔴 | [Solution](src/day-twenty-four) |[^1]: **Difficulty**: 🟢 Easy 🟠 Medium 🔴 Hard
## Getting Started
To get a local copy up and running follow these simple example steps.
### Installation
Only is it necessary to clone the repository and install the dependencies.
1. Clone the repository
```sh
git clone https://github.com/ASJordi/adventjs.git
```
2. Install NPM packages
```sh
npm install
```### Run project
You can run the project with the following command, it will run the file `index.js`:
```sh
npm run dev
```If you want to run a specific file, you can change the `index.js` file name with the file you want to run in the package.json file.
### Run tests
You can run all tests with the following command:
```sh
npm run test
```You can run all tests from a specific year with the following command:
```sh
npm run test:yyyy# Example
npm run test:2024
```You can run a specific test with the following command:
```sh
npm run test:n# Example
npm run test:1
```## License
Distributed under the MIT License. See `LICENSE.txt` for more information.
## Contact
Jordi Ayala - [@ASJordi](https://twitter.com/ASJordi)
Project link: [https://github.com/ASJordi/adventjs](https://github.com/ASJordi/adventjs)
[contributors-shield]: https://img.shields.io/github/contributors/ASJordi/adventjs.svg?style=for-the-badge
[contributors-url]: https://github.com/ASJordi/adventjs/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/ASJordi/adventjs.svg?style=for-the-badge
[forks-url]: https://github.com/ASJordi/adventjs/network/members
[stars-shield]: https://img.shields.io/github/stars/ASJordi/adventjs.svg?style=for-the-badge
[stars-url]: https://github.com/ASJordi/adventjs/stargazers
[issues-shield]: https://img.shields.io/github/issues/ASJordi/adventjs.svg?style=for-the-badge
[issues-url]: https://github.com/ASJordi/adventjs/issues
[license-shield]: https://img.shields.io/github/license/ASJordi/adventjs.svg?style=for-the-badge
[license-url]: https://github.com/ASJordi/adventjs/blob/master/LICENSE
[tests-shield]: https://img.shields.io/github/actions/workflow/status/asjordi/adventjs/tests.yml?branch=mglain&label=Tests&style=for-the-badge
[tests-url]: https://github.com/ASJordi/adventjs/actions