232 views

1 Answer

Related questions

0 votes
0 votes
2 answers
2
amit166 asked Sep 11, 2018
221 views
find time complexityf(int n){int i=1;while(i<n){int j=n;while(j>0)j=j/2;i=i*2;}}
0 votes
0 votes
0 answers
3
0 votes
0 votes
3 answers
4
targate2018 asked Dec 5, 2017
647 views
m=1;for i=1 to n do begin m=m*3; for j=1 to m do {Something which is O(1)}What is the complexity of above algorithm?1. O(n*m3)2. O(n3)3. O(3n)...