Showing Post From Algorithms

Defang an IP Address with JavaScript

I was asked this question long ago. At first, I was stumped. Not because the question is tricky, but because my brain shuts down when multiple people are stairing at the back of my head while I’m standing in front of a white board.

Read more

Three Common Sorting Algorithms with JavaScript

In this article, we’ll learn about three common sorting algorithms: bubble sort, selection sort, and merge sort. We’ll explore what they’re useful for, as well as how to implement them in JavaScript.

Read more

A Look At The Fibonacci Sequence: A Recursive and Iterative Solution

In mathematics, Fibonacci numbers form a sequence. The sequence commonly starts at 0 and 1. To get the next digit in the sequence, you simply add the previous two numbers together.

Read more

Why Interviewers Still ask ‘FizzBuzz’ in 2022

This problem has been around for such a long time. Anyone who has been writing code for even a little while has probably come across it.

Read more

JavaScript Interview Question: Counting vowels

In this article, we have a fun algorithm challenge: vowels.js. It’s a simple problem – count the vowels in a string.

Read more

Runtime Complexity Analysis with JavaScript

There are always multiple ways to solve an algorithmic problem. However, what if we’re trying to decide which of our solutions is the best?

Read more