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
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
Math,
6 months ago
Physics,
6 months ago
Art,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
English,
1 year ago
Math,
1 year ago
Science,
1 year ago