/fcc-algo-challenges

freeCodeCamp Algorithm Challenges in one package with test cases.

Primary LanguageJavaScriptMIT LicenseMIT

freeCodeCamp Algorithm Challenges

freeCodeCamp Algorithm Challenges in one package with test cases.

Note: This repo contains only advanced algorithm scripting section.

JavaScript Style Guide Code Climate

Why?

  • Just don't want to use freeCodeCamp's code editor.
  • Offline usage.
  • Manageable test cases.

Install

Clone this repository.

git clone https://github.com/hisener/fcc-algo-challenges.git
cd fcc-algo-challenges

And install dependencies(only mocha for testing).

npm install

Usage

For solving challenges, edit its file(for example: pairwise) and run its test(See examples below).

Testing a challenge (for example 'Validate US Telephone Numbers'):
npm test test/validate-us-telephone-numbers
Watching the file for changes:
npm test test/validate-us-telephone-numbers -- --watch
Specifying the reporter (for example 'nyan'):
npm test test/validate-us-telephone-numbers -- --reporter nyan
Testing all challenges at the same time:
npm test

TODO

  • Make A Person
  • Intermediate Algorithm Scripting Challenges
  • Basic Algorithm Scripting Challenges