Created
February 27, 2021 04:42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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