Skip to content

Repository with the solutions of AdventJS (2023) programming challenges by @midudev.

License

Notifications You must be signed in to change notification settings

hozlucas28/AdventJS-Solutions-2023

Repository files navigation

AdventJS Solutions [2023] 🎅🎄

Repository of AdventJS programming challenges by Midudev.

SummaryInstallationChallengesLicenseAcknowledgmentsContact

Summary

This repository serves as a housing solutions to programming challenges of AdventJS. AdventJS, a project developed by Midudev, offers a platform for developers to improve JavaScript or TypeScript skills, through a series of daily challenges spanning 25 days. The challenge begins on December 1st and culminates on December 25th.

Installation

  1. Clone the repository
  2. Install the latest version of Node.js
  3. Navigate to the directory where you cloned the repository with your favorite CLI
  4. Run npm install in your CLI to install all necessary packages
  5. Finally, run npm test in your CLI to execute all challenges/tests

Note: If you want to run a specific challenge/test, execute npm run test:challenge<number>.

Challenges

# Challenge Difficulty Points earned Description
01 Find the first ID number that has been repeated 🟢 220 Show
02 Return a list of craftable gifts 🟢 280 Show
03 Return the first extra step that has been added or removed in the manufacturing chain 🟢 360 Show
04 Take a string and reverse the characters inside each pair of parentheses and remove them 🟠 270 Show
05 Return an array simulating a sled movement 🟠 160 Show
06 Return the maximum distance that the reindeer can travel in any direction 🟢 290 Show
07 Generate a drawing of a 3D gift 🟢 210 Show
08 Take a string of gifts as an argument and return a string representing the warehouse 🟠 250 Show
09 Return the minimum number of lights that need to be changed for the colors to alternate 🟢 360 Show
10 Create a customized Christmas tree 🟢 250 Show
11 Return indexes of a palindrome word 🟠 25 Show
12 Detect if one letter is a copy of another 🟠 210 Show
13 Return the time lack or left in order to finish the deliveries 🟢 230 Show
14 Determine the maximum number of gifts Santa can deliver in one night 🟠 290 Show
15 Given a warehouse and the movements, return an array with the robot's final position 🟠 40 Show
16 Transform an array into an object 🟢 160 Show
17 Merge overlapping intervals and returns an array of sorted intervals 🟢 140 Show
18 Given a time, write it as a digital clock of an array of strings arrays 🔴 70 Show
19 Return a matrix with the sabotaged toys in the adjacent cells 🟠 25 Show
20 Given a matrix of numbers, return another matrix where each element is the average of its original value and the values of its neighbors 🔴 25 Show
21 Find the longest segment of the string where the number of 0s and 1s is equal 🟠 200 Show
22 Translate the Elves language instructions 🟢 150 Show
23 Group dishes by ingredients 🟢 130 Show
24 Return all the possible sequences of jumps, sorted from least to most 🟠 30 Show
25 Return the number of moves that Santa must do to deliver all the gifts 🟠 110 Show
Total / 4485 /

License

This repository is under MIT License, if you want to see what you are allowed to do with the content of this repository, please visit choosealicense for more information.

Acknowledgments

Thanks to Miguel Ángel Durán to develop AdventJS.

Contact

If you want to contact me, please see my socials medias in my GitHub profile.