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
Get step-by-step solutions from verified subject matter experts
