This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by jcajobyahoo.com
almost 12 years

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

4 votes

Permalink

Nope - didn’t even get close to figuring out what was expected in this exercise. And I still don’t get what Big O means - unless it is a description of the space between me ears.

points
Submitted by GrampaB
over 11 years

1 comments

Eric Summers over 11 years

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.

Answer 4ff95dc7d84b690003012a68

3 votes

Permalink

id prefer if this would be explained a little bit better what we have to do, ive passed with: console.log(“O(2^n)”);

points
Submitted by stephan
over 11 years

2 comments

Brad Graham over 11 years

I know this works, but it is the correct answer. I don’t get what I was supposed to learn from that.

Eric Summers over 11 years

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

1 vote

Permalink

Somehow I guessed, and I got it right. I must be learning something. Another guess and I’ll be an expert!

points
Submitted by jcajobyahoo.com
almost 12 years

Answer 4fea9dd91954610003010b5c

1 vote

Permalink

thats O(2^n) not O(3^n).

points
Submitted by Dilip Kushwaha
almost 12 years

Answer 4fe94d750bc665000306677e

0 votes

Permalink

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.

points
Submitted by jcajobyahoo.com
almost 12 years

Answer 4feb1e95bba2c40003030d18

0 votes

Permalink

I made the correctness test give more descriptive feedback, hope this helps.

points
Submitted by Eric Summers
almost 12 years