This blog will not be maintained

Hello there! Welcome to the final installment of Perpetually Confused. I’ve decided that I am not going to be blogging on or maintaining this site. I will leave up all the posts in the small chance that they are useful to some people, but I won’t be posting any new content. Does this mean I … More This blog will not be maintained

Frequency Analysis: An implementation using symbol tables

Have you ever heard of a symbol table? It’s a data type with some nice properties, and it was the subject of  Week 3 of Computer Science: Algorithms, Theory and Machines from Princeton University. Before we talk about what a symbol table is, let’s talk about what I am going to be implementing today. I want … More Frequency Analysis: An implementation using symbol tables

Go at the Command Line

In my quest to learn more about computers, I’ve decided to go back to the basics and take another introductory computer science class. This one is called Computer Science: Algorithms, Theory and Machines from Princeton University and is hosted on the Coursera platform. The class is a follow up to a CS101 class, and it … More Go at the Command Line

Data Structures: Keeping track of a minimum with a stack

Hey there! I’m getting back into interviewing shape so I wanted to share with you some of the problems I’ve been working on. Here is the problem statement: How would you design a stack which, in addition to push and pop, has a function min which returns the minimum element? All functions should operate in … More Data Structures: Keeping track of a minimum with a stack

Algorithms: Add two numbers represented by linked lists

Hello there! It’s time for another algorithm discussion. This one is fun and demonstrates why data structures are important. Here is the problem statement: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as … More Algorithms: Add two numbers represented by linked lists