Sign in

Full Time Web Developer. Part Time Hacker.

A beginners guide to using Queue and Stack data structures in your code.

Photo by Levi Jones on Unsplash

Queues


Implement the Selection Sort Algorithm in JavaScript

Photo by Greg Jeanneau on Unsplash

Introduction

array --> [4,1,5,2]
index --> 0,1,2,3
1. Is the element at index 0 [4] > than the element at index 1 [1] 2. Yes. 3. Swap the numbers…

Introduction

Review


Here we go with another sort algorithm implemented in JavaScript!

Photo by Djim Loic on Unsplash

Photo by Lewis Ngugi on Unsplash
let array = [2,1,4,3];1. Is the number at index 1 [1] < than the number…

Photo by Sharon McCutcheon on Unsplash

What is a Bubble Sort Algorithm (BSA)?

How does it work?


Photo by Alessio Lin on Unsplash

What is a Quick Sort Algorithm?

                // Let's choose 4 as the pivot point  
[1,3,4,6,5]


Photo by Jon Tyson on Unsplash

The Concept

Ok, so what is a Binary Search Algorithm (BSA)?


Photo by JOHN TOWNER on Unsplash


Get a solid grip on Linear Search Algorithms and how to implement in JavaScript

Photo by Darius Bashar on Unsplash

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store