Sign in

1. Typescript Makes Me a Better Developer

Coming from a background in strong-typed languages such as C and C++, I often miss writing function prototypes with explicit type declarations. I miss the feeling of knowing exactly what is coming in and out of my programs with the compiler holding me accountable every step of the way. Although…


Photo by Raul Varzar on Unsplash

The internet is a pretty rad place. I just googled “pictures of cats” and got back 2.9 billion results in less than 0.48 of a second. How insane is that?

Whenever we use a search engine such or any website for that matter, we often take for granted the number…


Photo by Jens Kreuter on Unsplash

Internet 2.0

I remember fondly when I first encountered the internet at the ripe age of eight and thinking it was the best thing on earth. I was able to download music at blazing 56 kb/second speed, read about my favorite video games on GameFAQs.com and chat with my friends/random strangers on…


Photo by Domenico Loia on Unsplash

Love it or hate it, sorting is a task that every software engineer will be asked to study or implement at one point in their career. In today’s world, there are countless algorithms used to achieve this purpose, each with their own strengths and weaknesses. …


Photo by Adam Muise on Unsplash

How machine learning works:

Interviewer: What’s your biggest strength?

Computer: I’m a fast learner.

Interviewer: What’s 11 * 11?

Computer: It’s 65

Interviewer: Not even close. It’s 121.

Computer: It’s 121.

Artificial Intelligence

The first thought a lot of people associate with artificial intelligence is killer robots taking over the world like…


Photo by Roman Bozhko on Unsplash

What are Hash Tables?

In computer science, a hash table is a data structure that implements an array of linked lists to store data. Using a hash algorithm, the hash table is able to compute an index to store string different key-value pairs.

Today, I will demonstrate how to create this data structure in…


Photo by Marius Masalar on Unsplash

In Python and other Object-Oriented languages, classes are considered the blueprint to creating objects. An instance is a copy of the class with actual values.

To define a class in Python3, you can do the following:

class Monster:
pass
m = Monster()
type(class)
# <class '__main__.Monster'>

Class Attributes

Class attributes are attributes…


Photo by Todd Quackenbush on Unsplash

Introduction

Object-oriented Programming, or OOP for short, is a programming paradigm which provides a means of structuring programs so that properties and behaviors are bundled into individual objects. In Python, every data type underneath the hood is actually an object with its own attributes and methods. …


Photo by Mikael Kristenson on Unsplash

Ones and Zeroes

In computer science, integers can take up 1, 2, 4, or 8 bytes in memory. Each of these bytes is comprised of 8 bits, each of which can be either be a 1 or 0, true or false. Like lights turning off and on, the combination of these bits together…


Photo by Andy Brunner on Unsplash

Today we are going to write a function that determines if a singly linked list is circular and if it is, we are going to return the node where the cycle begins. This solution is based off of Robert Floyd’s algorithm, first discovered in the 1970’s.

What is a Singly Linked List?

A singly linked list…

Tu Vo

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