Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~116 People Reached
Favorite Forums
Member Avatar for panzerss

What would be the time complexity (worst case) of following: I have three loopes. n=number of elements for(i=0;i<n-2;i++) for(j=i+1;j<n-1;j++) for(k=j+1;k<n;k++) If only i and j loop were there the time complexity would be O(n^2-n/2) but considering the 3rd loop i got kind a lost. So please help me!

Member Avatar for loveleen
0
116