This is a repository to store all of the JavaScript HackerRank Challenges completed by Antonio Jackson. This repository uses the hackerrank.js base repository to test the JavaScript code against the HackerRank test cases.
- Node v6+
# Clone/fork the repository
git clone git@github.com:AntonioJacksonII/HackerRank_Challenges.git
# Change directory
cd hackerrank
# Install dependencies
npm install
- All completed challenges are in the
/challenges
directory, within the subdirectory for their tutorial name. - To test the code against the HackerRank sample test cases, run the following from the root directory, replacing
/30_days/day_6
with the location of the challenge you want to test:
node hackerrank.js challenges/30_days/day_6 --console
- You should see output similar to:
Running HackerRank Challenge: 30_days/day_6 with 1 testcases.
✔ input00.txt
Success! (1)
- You can also add additional/custom testcases. Just ensure that the input and output filenames match.