This repository serves as a playground for solving freeCodeCamp
JavaScript
algorithms with the help of JEST
(Delightful JavaScript Testing).
For each algorithm will be created separate folder, which will have its own readme file (what problem to solve and some test examples to check if it works).
You can download or use git clone
for this repository. Navigate to folder in which you wanna clone this repository and use command as shown below:
git clone https://github.com/kejgind/JS_algorithms_with_JEST.git
After cloning or downloading this repository navigate to this folder and use npm
to install all developer dependencies used by this project (eslint
and jest
).
npm install
To run all test suites use:
npm test
If you wanna run specific test use:
npm -- test [name of algorithm]
For example:
npm test -- reverseString
This will run test suite specifically for Reverse a string
algorithm.
List of algorithms:
- Reverse a string.
- Factorialize a Number
- Check for Palindromes
- Find the Longest Word in a String
- Title Case a Sentence
- Return Largest Numbers in Arrays
- Confirm the Ending
- Repeat a string repeat a string
- Truncate a string
- Chunky Monkey
- Slasher Flick
- Mutations
- Falsy Bouncer
- Seek and Destroy
- Where do I belong
- Caesars Cipher
- Sum All Numbers in a Range
- Diff Two Arrays
- Roman Numeral Converter
- Wherefore art thou
- Search and Replace
- Pig Latin
- DNA Pairing
- Missing letters
- Boo who
- Sorted Union
- Convert HTML Entities
- Spinal Tap Case
- Sum All Odd Fibonacci Numbers
- Sum All Primes
- Smallest Common Multiple
- Finders Keepers
- Drop it
- Steamroller
- Binary Agents
- Everything Be True
- Arguments Optional
- Validate US Telephone Numbers
- Record Collection
- Symmetric Difference
- Exact Change
- No repeats please