Big O - 4 - EXERCISE 1

Run Settings
LanguageJavaScript
Language Version
Run Command
function funChallenge(input) { let a = 10; // O(1) a = 50 + 3; // O(1) for (let i = 0; i < input.length; i++) { // O(n) anotherFunction(); // O(n) let stranger = true; // O(n) a++; // O(n) } return a; // O(1) } // Big O = O(3+4n)
Editor Settings
Theme
Key bindings
Full width
Lines