Question: q1) Write a function that gets a 2d array, and check if there are two equal rows in the array. - q2) lExpress the run

q1) Write a function that gets a 2d array, and check if there are two equal rows in the array.

- q2) lExpress the run time of the following program using Big-O notation.

foo(int N) { if (N > 1) { foo(N-1); foo(N-1); foo(N-1); } }

q3) lExpress the run time of the following program using Big-O notation.

foo(int N) { if (N > 1) foo(N/2); }

q4) lExpress the run time of the following program using Big-O notation.

foo(int N) { if (N > 1) { foo(N-1); foo(N-1); foo(N-1); } }

Please answer in C language.

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!