Skip to content

Instantly share code, notes, and snippets.

@eengineergz
Created February 27, 2021 04:42
// O(1)
function constant1(n) {
return n * 2 + 1;
}
// O(1)
function constant2(n) {
for (let i = 1; i <= 100; i++) {
console.log(i);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment