Analyze the time complexity of the following segment:
for(i=0;i<N;i++)
for(j=N/2;j>0;j--)
sum++;
Answers
Answered by
0
Answer:
bro you can't write j=n/2 in the j loop and you have have given 2 same loops I think the first will be I loop pls send the question properly before asking answers please
Similar questions