Skip to content

Instantly share code, notes, and snippets.

View adslaton's full-sized avatar

A.D. Slaton adslaton

View GitHub Profile
@adslaton
adslaton / bigO-constant-time.js
Last active April 24, 2020 16:44
Big O Constant Time
// Represents an algorithm that will always execute in the same time or space regardless of the size of the input data set
// 1.
x = 10 + (2 * 3); // Big O of 1 or O(1)
// 2.
x = 10 + (2 * 3); // O(1)
y = 1 + 2; // O(1)