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!