Question: Hi i need help finding the cost function in the form wn^x + yn + z where w, x, y and z are real numbers

Hi i need help finding the cost function in the form wn^x + yn + z where w, x, y and z are real numbers and n is a variable referring to the size of the function's input and big O notation. thanks

void triangle(int x)

{

int i = 0;

while (i < x) {

int j = 0;

while (j <= i) {

cout << j << " ";

j++;

}

cout << endl;

i++;

}

while (i > 0) {

i--;

int j = 0;

while (j <= i) {

cout << j << " ";

j++;

}

cout << endl;

}

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!