Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.17 KB

readme.md

File metadata and controls

39 lines (26 loc) · 1.17 KB

HackerRank Challenges

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.

Requirements:

  • Node v6+

Installation:

# Clone/fork the repository
git clone git@github.com:AntonioJacksonII/HackerRank_Challenges.git

# Change directory
cd hackerrank

# Install dependencies
npm install

Usage:

  1. All completed challenges are in the /challenges directory, within the subdirectory for their tutorial name.
  2. 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
  1. You should see output similar to:
  Running HackerRank Challenge:  30_days/day_6  with  1  testcases.

✔ input00.txt

  Success! (1)
  1. You can also add additional/custom testcases. Just ensure that the input and output filenames match.