Recent questions tagged mit-quiz

0 votes
1 answer
1
Find the complexity of the following code fragment:int i = 1; for(; i <= n logn; i++) { for(i++; i <= n; i++) { printf("1") } }
1 votes
2 answers
2
Find the complexity of the following function when called with some integer n:void foo(n) { int i,j,k,x=0; for (i=1 ; i <= n ; i++) for (j=1 ; j <= i * i ; j++) for ( k ...
0 votes
2 answers
3
FIND THE TIME COMPLEXITYint i=1,j; for(;i <= n;i + +) { for(j = i; j <= nlogn; j∗= 2) { sum++; } }
1 votes
1 answer
4
1 votes
1 answer
5
How the worst case of merge sort is O(n^2) according to the given MIT assignment pdf:-explain ?
2 votes
3 answers
6
1 votes
1 answer
7
plz explain otherwise i ll memorize it..
1 votes
1 answer
8
To see more, click for the full list of questions or popular tags.