View on GitHub

Code Fellows reading notes

A repository for organizing notes from my learning.

Pain, Suffering, and Big O

Pain and Suffering

Source: Codefellows Pain vs. Suffering

The course that we are about to embark on is designed to be painful.

This is not to be confused with suffering. Suffering is pain without purpose.

The pain we’ll experience is the pain of growth, and something to be pushed past. It is not permanent and has a purpose in moments of pain.

The pain is expected, but there are ways to soften it. We should ask questions to those with knowledge, research things we don’t understand, and develop a system or tools we can fall back on to make the pain of growth manageable.

We must not fear the pain of growth, but rather embrace it and leverage it to produce stronger versions of ourselves.

Getting started with Big O

Source: A beginner’s guide to Big O Notation - Rob Bell

Big O notation describes the performance or complexity of an algorithm. It is used to describe the worst-case execution time or memory space used by a program.

When describing performance, it is important to remember that Big O assumes worst-case performance. This means that things like looping through data to find a match are assumed to take the maximum number of iterations possible.