Blog

Archive for the Algorithms Category


Functional Programming from Four Semesters of Computer Science in 5 Hours by Brian Holt
Posted on August 27, 2020 in Algorithms, JavaScript by Matt Jennings

Avoid side effects, or keep functions pure.
Use Higher-Order Functions, which are functions that receives a function an as argument or …

Read more


Implementing Data Structures from Four Semesters of Computer Science in 5 Hours by Brian Holt
Posted on August 26, 2020 in Algorithms, JavaScript by Matt Jennings

The ArrayList class extends AbstractList and implements the List interface. ArrayList supports dynamic arrays that can grow as needed.

Standard Java …

Read more


Sets and Maps from Four Semesters of Computer Science in 5 Hours by Brian Holt
Posted on August 24, 2020 in Algorithms, JavaScript by Matt Jennings

Set objects are collections of values. Sets are reference data types, like Arrays, and allow unique lists (ONLY unique values …

Read more


Sorting Algorithms from Four Semesters of Computer Science in 5 Hours by Brian Holt
Posted on August 18, 2020 in Algorithms, JavaScript by Matt Jennings

See the trekhleb / javascript-algorithms GitHub repo for JavaScript algorithms (including sorting algorithms) showing complexity, including …

Read more


Recursion from Four Semesters of Computer Science in 5 Hours by Brian Holt
Posted on August 5, 2020 in Algorithms, JavaScript by Matt Jennings

A recursive function is a function that calls itself until it doesn’t. And this technique is called recursion. 

Stack overflow is when …

Read more