javascript algorithms
These algorithms are from a Udemy.com course titled Learning Algorithms in JavaScript From Scratch. Each algorithm is assigned a separate folder, index.html
file, and main.js
file. (I have also, now, copied all the code to repl.it files and linked them on this page.) Here is a list of the algorithms in order:
- FizzBuzz
- Harmless Ransom Note
- Is Palindrome
- Caesar Cipher
- Reverse Words
- Reverse Array in Place
- Mean Median Mode
- Two Sum
- Binary Search
- Fibonacci
- Memoized Fibonacci
- Sieve of Eratosthenes
- Bubble Sort
- Merge Sort
- Max Stock Profit
In addition, here is another algorithm, not from the Udemy tutorial:
I know I have more algorithms like this last one; I just haven’t written them up as of yet.
The idea in learning these JavaScript algorithms is to learn how to better problem solve with code. Many of these particular algorithms are used in coding job interviews as a means of sorting out how applicants problem-solve.
Also check out my notes on the Udemy course JavaScript Interview Prep on my freewriting blog as well as in their own GitHub repository.
Notes are in the .js
files. Index.html
files are only created for console output. I will eventually transfer all these algorithms to repl.it files (done), embedding them in the index.html
files for convenience sake (done).