Pages

Computer science, programming and code examples, blog posts, and small projects.

My Founder's Journey

9 Product Hunt Submissions, a couple dozen domain names registered, dreams to last for years, and other notables from my journey as a solo-preneur.

View

Complete Binary Tree Code Implementation in JavaScript

Binary Trees are common data structures used in computer science specifically for programs geared toward high efficiency searching and output.

View

Hash Table JavaScript Implementation with Linear Probing

Probing allows hash tables to have dynamic sizes which greatly influence memory and time efficiency. Here's how you can build the functionality in JavaScript.

View

Building a Binary Heap in JavaScript

Binary heaps allow for combined data insertion and max value extraction more efficiently than many other data structures and are used for the efficient heap sort algorithm.

View

Binary Heap Sort Algorithm in JavaScript

The heap sort algorithm is one of the most efficient ways to sort values in computer science. This post includes a concise JavaScript implementation of the algorithm.

View

Binary Search Algorithm with Arrays in JavaScript

The binary search algorithm is one of the most efficient ways to find an element in an already-sorted set of data. We can implement binary search with a simple array data structure in JavaScript.

View

Storing Big Data With Distributed Hash Tables Simulation

Hash tables provide a great data structure method for storing large quantities of data because, on average, they provide constant time search access to the data.

View

Creating a Constant-Time JavaScript Stack

You can create a stack object in JavaScript that will enable you to maintain your data in constant time including pushing, popping and getting the maximum value.

View

Network Packet Processing Simulation in JavaScript

This is a simulation of a network packet processor actively receiving new packets, placing incoming packets in queues and processing them according to size and memory constraints.

View

Maximum Value in JavaScript Sliding Window Queue

We can create an object in JavaScript to behave like a stack and a queue to help us with the sliding window, constant-time conundrum.

View

Using Priority Queues to Simulate Parallel Processing

We can use binary heaps to create efficient priority queues. In this code example, we simulate a scheduler program that sends jobs to multiple processors based on priority.

View

Check balance of brackets in code

Code examples for validating string balance particularly when it comes to opening and closing brackets.

View

Tree Data Structures in JavaScript & PHP

See how to create, add to trees, remove from trees, traverse trees and more in these JavaScript and PHP coding examples.

View

Replicating a Dynamic Array in JavaScript

Although arrays in JavaScript size-up automatically, we can create a stack object to replicate the process of creating a dynamically allocated array.

View

Linked List Data Structure Implementation

Linked Lists are a computer science data structure that uses pointers to connect nodes located at different points in memory. Here we implement linked lists in JavaScript.

View

Sorting Algorithm Animations

Animations and code examples for popular sorting algorithms.

View

Computer Science Flashcards

Hundreds of flashcards that I've put together to help with the transformation from self-taught coder to computer scientist.

View

Using Rabin-Karp's Algorithm to Find All Occurrences of Substring

Rabin-Karp's Substring Algorithm allows us to find occurrences of substrings in text using hashing. Here is an implementation of the algorithm in JavaScript.

View

Storing Phone Numbers with Direct Address Hashing

Direct addressing is method of storing values in a variable that allow for constant time addition, deletion and value returning. Here's a JavaScript implementation.

View

Tweet me @tylerewillis

Or send me an email: