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
~401 People Reached
Favorite Forums
Favorite Tags

2 Posted Topics

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
221
Member Avatar for santhi1986

can you tell me the time complexity for s=0;i=1; while (s<n) {s+=i; i+=2; } i think the answer is O(square root of n)

Member Avatar for srabasti
-2
180

The End.