Skip to content

njseeto/js-algorithms

Repository files navigation

My JavaScript algorithms learnings.


What is in this repo?

This repo provides information on common algorithms, solutions, their time and space complexity.

A summary of the algorithms are found here.

These algorithms are grouped together as below:

  • Calculate the sum of a number up to that number
  • Primality
  • Fibonacci
  • Find the smallest number in an array
  • Find the even and odd numbers
  • Calculate the sum of an array
  • Check is a number is a power of two
  • Factorial Algorithm
  • Fibonacci (with Recursion)
  • Fibonacci (with Recursion and Memoization ie: dynamic programming)

Search Algorithms

Sorting Algorithms

Sets (Arrays) Algorithms

Problem Solving


Tests

Each algorithm group will have sub-folders that contain:

  • Readme explaining the algorithm
  • Solution
  • Test folder

To run the tests:

  • Install node dependencies npm i
  • Run tests npm run test

Additional Resources

Next Steps

  • Data Structures: Understand what data structures exists, how they work and when you use them.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published