Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
28% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
1 Commented Post
0 Endorsements
~396 People Reached
Favorite Forums
Member Avatar for mithila

Please do let me know the time complexity of algorithm s=0;i=1; while (s<n) { s=s+i; i=i+2; } i think the O(squareroot of n)

Member Avatar for umesh sevra
-2
218
Member Avatar for santhi1986

hey some one help me out in calculation O(n) int koodle (int n) { int j,k:int x; if(n%2==0) for(j=0;j<n;j++) x+=rand()%2; else for(k=0;k<n;k++) x+=rand()%2; return x; } I need to obtain the time complexity of the above matrix transpose algorithm using program step count method. Thanks for any help I can …

Member Avatar for srabasti
-2
178