3 answers
1
1 answer
3
What will be the time-complexity of the following ? for(i=1;i<=n;i=i*2) { for(j=0;j<i;j++) { count++; } }
1 answer
4
What is the time-complexity of Enqueue and Dequeue operations when Queue is implemented using linked list?What is the time complexity of inserting a element in single lin...
1 answer
5
3 answers
6
What is the time complexity of the following code?for(i=n;i>=1;)i=i/2;
1 answer
7
3 answers
8
int main() { int i; for(i=1;i<=n;i++) f(i); } void f(int n) { int A[n]; int j; for(j=1;j<=n;j++) cout<<j; }What will be the time and space complexity of the following cod...
2 answers
9
What will be the solution of the following recurrence?$$T(n)=3T\sqrt{n}+\log(n)$$
1 answer
10
In a circular linked list last node points to the :$Head$$Tail$$First Node$
2 answers
11
Convert this infix expression to postfix form ?$3*log(x+1)*\dfrac{a}{2}$