This forum is now read-only. Please use our new forums! Go to forums
3.1 I don't get this... What do they ACTUALLY want us to do?
I barely understand the Big O, since the steps in Section 2 just exercise us through more math. What are we supposed to actually print to the console for step 3.1?
Thanks.
Answer 50258e071bb9cb00020346ae
Answer 4ff95dc7d84b690003012a68
id prefer if this would be explained a little bit better what we have to do, i
ve passed with:
console.log(“O(2^n)”);
2 comments
I know this works, but it is the correct answer. I don’t get what I was supposed to learn from that.
The learning occurs in figuring out the Big O of the functions runtime, not in figuring out how to output that to the console.
Answer 4fe957aa5fbb0300030680f1
Somehow I guessed, and I got it right. I must be learning something. Another guess and I’ll be an expert!
Answer 4fea9dd91954610003010b5c
Answer 4fe94d750bc665000306677e
More on this lesson: I tried printing to the console ‘console.log(“O(3^n)”)’ I keep getting the same error message. I modeled my line of code on step 2.5 because the output consists of the number cubed.
Answer 4feb1e95bba2c40003030d18
I made the correctness test give more descriptive feedback, hope this helps.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
1 comments
Big O is a description of how much work an algorithm has to do compared to the size of the input you give it. Try reviewing section 2 of this course keeping that in mind.