Skip to content

kejgind/JS_algorithms_with_JEST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS algorithms with JEST

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:

  1. Reverse a string.
  2. Factorialize a Number
  3. Check for Palindromes
  4. Find the Longest Word in a String
  5. Title Case a Sentence
  6. Return Largest Numbers in Arrays
  7. Confirm the Ending
  8. Repeat a string repeat a string
  9. Truncate a string
  10. Chunky Monkey
  11. Slasher Flick
  12. Mutations
  13. Falsy Bouncer
  14. Seek and Destroy
  15. Where do I belong
  16. Caesars Cipher
  17. Sum All Numbers in a Range
  18. Diff Two Arrays
  19. Roman Numeral Converter
  20. Wherefore art thou
  21. Search and Replace
  22. Pig Latin
  23. DNA Pairing
  24. Missing letters
  25. Boo who
  26. Sorted Union
  27. Convert HTML Entities
  28. Spinal Tap Case
  29. Sum All Odd Fibonacci Numbers
  30. Sum All Primes
  31. Smallest Common Multiple
  32. Finders Keepers
  33. Drop it
  34. Steamroller
  35. Binary Agents
  36. Everything Be True
  37. Arguments Optional
  38. Validate US Telephone Numbers
  39. Record Collection
  40. Symmetric Difference
  41. Exact Change
  42. No repeats please

About

JavaScript algorithms from freeCodeCamp with JEST

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published