Last week, I posted an introduction to Javascript Queue’s and today, we are going to use that knowledge to do some queue weaving! If you’re reading this and haven’t seen my last post, I definitely recommend reading it to get a better understanding of how queues work in Javascript. A basic understanding of queues is required!

The first step in this problem is to implement a “peek” function. It’ll make more sense as we progress.

The `peek()`

function should return the last element in the Queue without actually removing it. If you recall, the last element in…

This week, I’m going to take a break from basic algorithms and introduce you all to some basic data structures. More specifically, we’re going to be talking about Queues and how we can implement them.

**JS: Integer Reversal and Fizzbuzz!**

**JS: String Reversal, Palindromes, and Anagrams**

The concept of a queue can be thought of as a queue at your local DMV or line at the grocery store. Think of the “line” at the DMV as an array. …

In my last blog post, I navigated through the hard-to-understand process of sorting using the bubbleSort method. In this post, we’ll be sorting numbers again but this time, we will be sorting using the selection method. This method is a bit longer but for some, it can be easier to understand what is happening in each step.

**JS: Integer Reversal and Fizzbuzz!**

**JS: String Reversal, Palindromes, and Anagrams**

Like our last post, we will be given an array of integers and the expected output will be a…

Today, I’ll be continuing my posts related to different algorithms. I think sorting can be a bit intimidating at first but it learning how to sort correctly can help you in a multitude of ways. At one point or another, I’ve had to sort a collection of data in almost every web application I’ve built.

**JS: Integer Reversal and Fizzbuzz!**

**JS: String Reversal, Palindromes, and Anagrams**

There are many ways to sort a collection of data and in this post, we’ll go over one of the easier implementations, BubbleSort.

Given a…

In this blog post, I’ll be going over the Matrix Spiral Javascript algorithm. While it is one of the more intimidating algorithms that I’ve covered, breaking it down can turn it into a pretty fun problem to solve. This post is the 4th in a series of algorithm blogs. Below, I’ll post the link to the first three that I’ve covered.

**JS: Integer Reversal and Fizzbuzz!**

**JS: String Reversal, Palindromes, and Anagrams**

Directions: Write a function that accepts an integer N and returns a NxN spiral matrix.

There’s not much to go off of based on…

Today, I’m going to go over the Fibonacci Series and how we can use a couple of methods to solve the problem. I’ll be going into detail with each solution while breaking down each step. If you’re currently looking for JS algorithms to practice, take a look at my last two blog posts for a few easier algorithms to tackle.

JS: String Reversal, Palindromes, and Anagrams

JS: Integer Reversal and FizzBuzz!

Before we tackle this one, let’s go over what the Fibonacci sequence is. Here is a series of numbers.

0, 1, 1, 2, 3, 5, 8, 13, 21, 34…

In my last blog post, I had fun going over some simple algorithms including string reversal, palindromes, and my favorite, anagrams. I thought I’d continue with a couple of slightly more difficult problems this week in integer reversal and one of my all-time favorite problems, the classic FizzBuzz. If you’d like to check out my last blog post, you can find it here.

While this one might sound simple, there are a couple of caveats to consider. First, if we are given a negative integer, we are to reverse the integer while *keeping* the integer *negative*. In short, a negative…

In this blog post, I thought I’d go over some simple algorithms that are useful to know as a Javascript developer. While these probably won’t be asked during an interview, the thought process that comes with solving these types of simple algorithms can be used for many of the more difficult questions. We’ll talk about each one and go over some simple solutions. Keep in mind that there are always many different solutions for these questions so feel free to solve them on your own. Your solution may be different than my own. …

In this article, I will be going over the useReducer hook and how it works. I’ll also explain when it is best to use the useReducer hook instead of the useState hook.

This article is the third in a series of quick articles on React Hooks.

Since we already went over how we can handle state within a functional component in my first React Hooks article, I figured I’d write about another hook that handles state in a similar fashion. If you are already familiar with…

In one of my previous articles, I went into a couple of the more basic React Hooks and in this article, we’ll take a look at another extremely useful React hook and how to use it. If you would like to read my first article to get an intro on React Hooks, please feel free to take a look here.

Just as a quick refresher, we already know that hooks allow us to “hook” into React state in functional components to give us access to lifecycle methods that were previously restricted to class components.

Before hooks, we would have to…