Computer Science, asked by azar5658, 1 year ago

Which will legally declare, construct, and initialize an array? int [] mylist = {"1", "2", "3"}; int [] mylist = (5, 8, 2); int mylist [] [] = {4,9,7,0}; int mylist [] = {4, 3, 7};?

Answers

Answered by hams786
2

Answer:

Evaluate Time complexity for For loop

Programmid

1

int fun(int n) {

int count=0;

for(int i = n;i>0; i/=2)

for(int j=0; j <i; j++)

count += 1;

return count;

- Problem

Solving -

What is the run time complexity of the above code?

Pick one of the choices

O O(n)

O(n log n)

Explanation:

2); int mylist [] [] = {4,9,7,0}

Similar questions