{"id":13544068,"url":"https://github.com/borjapazr/adventjs-solutions","last_synced_at":"2025-03-21T23:34:29.724Z","repository":{"id":38385193,"uuid":"434359971","full_name":"borjapazr/adventjs-solutions","owner":"borjapazr","description":"🎅💻️ Solutions to the challenges proposed by @midudev on https://adventjs.dev","archived":false,"fork":false,"pushed_at":"2023-11-13T21:15:07.000Z","size":1126,"stargazers_count":40,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-14T06:46:36.897Z","etag":null,"topics":["advent-of-code","adventjs","adventjs-2021","adventjs-2022","christmas","javascript","midudev"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borjapazr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null}},"created_at":"2021-12-02T20:09:04.000Z","updated_at":"2024-06-06T20:38:16.000Z","dependencies_parsed_at":"2023-11-13T22:45:50.868Z","dependency_job_id":null,"html_url":"https://github.com/borjapazr/adventjs-solutions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borjapazr%2Fadventjs-solutions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borjapazr%2Fadventjs-solutions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borjapazr%2Fadventjs-solutions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borjapazr%2Fadventjs-solutions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borjapazr","download_url":"https://codeload.github.com/borjapazr/adventjs-solutions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221820631,"owners_count":16886222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advent-of-code","adventjs","adventjs-2021","adventjs-2022","christmas","javascript","midudev"],"created_at":"2024-08-01T11:00:41.570Z","updated_at":"2024-10-28T11:16:56.797Z","avatar_url":"https://github.com/borjapazr.png","language":"JavaScript","funding_links":[],"categories":["🤖 2022"],"sub_categories":["🧑‍💻 Solutions"],"readme":"# 🎅💻️ adventJS solutions [![GitHub RESULTS Workflow Status](https://img.shields.io/github/actions/workflow/status/borjapazr/adventjs-solutions/results.yml?branch=main\u0026style=flat-square\u0026logo=github\u0026label=RESULTS)](https://github.com/borjapazr/adventjs-solutions/actions)\n\n\u003cp align=\"center\"\u003e \n  \u003cimg src=https://i.imgur.com/mOUN7uE.png/\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e🧑‍🚀 24 days /\n24 coding challenges • \u003ca href=\"https://adventjs.dev\"\u003eadventJS\u003c/a\u003e 🚀\u003c/h3\u003e\n\nThis repository contains the solutions to the challenges proposed by [@midudev](https://midu.dev/) on the [adventJS](https://adventjs.dev/) website.\n\n## 🦠 2021\n\n\u003cdetails hide\u003e\n\n\u003csummary\u003eShow / Hide\u003c/summary\u003e\n\n### 🎮️ Challenges\n\n|  #  |                                       Challenge                                        | Difficulty[^1] |               Solution                |\n| :-: | :------------------------------------------------------------------------------------: | :------------: | :-----------------------------------: |\n| 01  |                    [Contando ovejas para dormir](2021/challenge-01)                    |       🟢       | [Show](2021/challenge-01/solution.js) |\n| 02  |               [¡Ayuda al elfo a listar los regalos!](2021/challenge-02)                |       🟢       | [Show](2021/challenge-02/solution.js) |\n| 03  |               [El Grinch quiere fastidiar la Navidad](2021/challenge-03)               |       🟠       | [Show](2021/challenge-03/solution.js) |\n| 04  |               [¡Es hora de poner la navidad en casa!](2021/challenge-04)               |       🟠       | [Show](2021/challenge-04/solution.js) |\n| 05  |                [Contando los días para los regalos](2021/challenge-05)                 |       🟢       | [Show](2021/challenge-05/solution.js) |\n| 06  |                  [Rematando los exámenes finales](2021/challenge-06)                   |       🟠       | [Show](2021/challenge-06/solution.js) |\n| 07  |                     [Buscando en el almacén...](2021/challenge-07)                     |       🟠       | [Show](2021/challenge-07/solution.js) |\n| 08  |                  [La locura de las criptomonedas](2021/challenge-08)                   |       🟠       | [Show](2021/challenge-08/solution.js) |\n| 09  |                  [Agrupando cosas automáticamente](2021/challenge-09)                  |       🔴       | [Show](2021/challenge-09/solution.js) |\n| 10  |                       [La máquina del cambio](2021/challenge-10)                       |       🔴       | [Show](2021/challenge-10/solution.js) |\n| 11  |           [¿Vale la pena la tarjeta fidelidad del cine?](2021/challenge-11)            |       🟠       | [Show](2021/challenge-11/solution.js) |\n| 12  |              [La ruta perfecta para dejar los regalos](2021/challenge-12)              |       🔴       | [Show](2021/challenge-12/solution.js) |\n| 13  |                  [Envuelve regalos con asteriscos](2021/challenge-13)                  |       🟢       | [Show](2021/challenge-13/solution.js) |\n| 14  |                     [En busca del reno perdido](2021/challenge-14)                     |       🟠       | [Show](2021/challenge-14/solution.js) |\n| 15  |                         [El salto perfecto](2021/challenge-15)                         |       🟠       | [Show](2021/challenge-15/solution.js) |\n| 16  |                    [Descifrando los números...](2021/challenge-16)                     |       🟢       | [Show](2021/challenge-16/solution.js) |\n| 17  |            [La locura de enviar paquetes en esta época](2021/challenge-17)             |       🔴       | [Show](2021/challenge-17/solution.js) |\n| 18  |                [El sistema operativo de Santa Claus](2021/challenge-18)                |       🟢       | [Show](2021/challenge-18/solution.js) |\n| 19  |                [¿Qué deberíamos aprender en Platzi?](2021/challenge-19)                |       🟠       | [Show](2021/challenge-19/solution.js) |\n| 20  |                  [¿Una carta de pangramas? ¡QUÉ!](2021/challenge-20)                   |       🟢       | [Show](2021/challenge-20/solution.js) |\n| 21  |                      [La ruta con los regalos](2021/challenge-21)                      |       🔴       | [Show](2021/challenge-21/solution.js) |\n| 22  |                [¿Cuántos adornos necesita el árbol?](2021/challenge-22)                |       🟠       | [Show](2021/challenge-22/solution.js) |\n| 23  | [¿Puedes reconfigurar las fábricas para no parar de crear regalos?](2021/challenge-23) |       🟣       | [Show](2021/challenge-23/solution.js) |\n| 24  |                   [Comparando árboles de Navidad](2021/challenge-24)                   |       🟠       | [Show](2021/challenge-24/solution.js) |\n| 25  |            [El último juego y hasta el año que viene 👋](2021/challenge-25)            |       🟠       | [Show](2021/challenge-25/solution.js) |\n\n\u003c/details\u003e\n\n## 🤖 2022\n\n\u003cdetails open\u003e\n\n\u003csummary\u003eShow / Hide\u003c/summary\u003e\n\n### 🎮️ Challenges\n\n|  #  |                           Challenge                           | Difficulty[^1] |               Solution                |\n| :-: | :-----------------------------------------------------------: | :------------: | :-----------------------------------: |\n| 01  |   [Automating Christmas gift wrapping!](2022/challenge-01)    |       🟢       | [Show](2022/challenge-01/solution.js) |\n| 02  |  [Nobody wants to do extra hours at work](2022/challenge-02)  |       🟢       | [Show](2022/challenge-02/solution.js) |\n| 03  | [How many packs of gifts can Santa carry?](2022/challenge-03) |       🟢       | [Show](2022/challenge-03/solution.js) |\n| 04  |     [Box inside a box and another...](2022/challenge-04)      |       🟠       | [Show](2022/challenge-04/solution.js) |\n| 05  |         [Optimizing Santa's trips](2022/challenge-05)         |       🔴       | [Show](2022/challenge-05/solution.js) |\n| 06  |        [Creating xmas decorations](2022/challenge-06)         |       🟠       | [Show](2022/challenge-06/solution.js) |\n| 07  |          [Doing gifts inventory](2022/challenge-07)           |       🟢       | [Show](2022/challenge-07/solution.js) |\n| 08  |           [We need a mechanic!](2022/challenge-08)            |       🟠       | [Show](2022/challenge-08/solution.js) |\n| 09  |            [Crazy Xmas lights](2022/challenge-09)             |       🟢       | [Show](2022/challenge-09/solution.js) |\n| 10  |       [The Santa Claus sleigh jump](2022/challenge-10)        |       🟠       | [Show](2022/challenge-10/solution.js) |\n| 11  |       [Santa Claus is Scrum Master](2022/challenge-11)        |       🔴       | [Show](2022/challenge-11/solution.js) |\n| 12  |          [Electric sleighs, wow!](2022/challenge-12)          |       🟠       | [Show](2022/challenge-12/solution.js) |\n| 13  |      [Backups for Santa Claus files](2022/challenge-13)       |       🟢       | [Show](2022/challenge-13/solution.js) |\n| 14  |              [The best path](2022/challenge-14)               |       🟢       | [Show](2022/challenge-14/solution.js) |\n| 15  |      [Decorating the Christmas tree](2022/challenge-15)       |       🟠       | [Show](2025/challenge-15/solution.js) |\n| 16  |       [Fixing Santa Claus' letters](2022/challenge-16)        |       🔴       | [Show](2022/challenge-16/solution.js) |\n| 17  |          [Carrying gifts in bags](2022/challenge-17)          |       🟠       | [Show](2022/challenge-17/solution.js) |\n| 18  |            [We ran out of ink!](2022/challenge-18)            |       🟢       | [Show](2022/challenge-18/solution.js) |\n| 19  |            [Sorting the toys!](2022/challenge-19)             |       🟢       | [Show](2022/challenge-19/solution.js) |\n| 20  |          [More challenging trips](2022/challenge-20)          |       🔴       | [Show](2022/challenge-20/solution.js) |\n| 21  |         [Creating the gifts table](2022/challenge-21)         |       🟠       | [Show](2022/challenge-21/solution.js) |\n| 22  |            [The lights in sync](2022/challenge-22)            |       🟢       | [Show](2022/challenge-22/solution.js) |\n| 23  |           [Santa Claus Compiler](2022/challenge-23)           |       🔴       | [Show](2022/challenge-23/solution.js) |\n| 24  |       [The last challenge is a maze](2022/challenge-24)       |       🔴       | [Show](2022/challenge-24/solution.js) |\n\n[^1]: **Difficulty**: 🟢 Easy 🟠 Medium 🔴 Hard 🟣 Very Hard\n\n\u003c/details\u003e\n\n## 🚀 Quick start\n\n- Install\n\n  ```bash\n  make install\n  # or\n  npm install\n  ```\n\n- Run all challenges\n\n  ```bash\n  make run\n  # or\n  npm test\n  ```\n\n- Run specific challenge\n\n  ```bash\n  make run YEAR=YYYY CHALLENGE=XX # where YYYY is the year and XX is the challenge number\n  # or\n  npm test YYYY/challenge-XX # where YYYY is the year and XX is the challenge number\n  ```\n\n## 🚩 License\n\nMIT @ [borjapazr](https://me.marsmachine.space). Please see [License](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborjapazr%2Fadventjs-solutions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborjapazr%2Fadventjs-solutions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborjapazr%2Fadventjs-solutions/lists"}