educative.io

Is the complexity table/count correct?

From the table for i-value of 1, we should count/loop-iterations 1 times. But shouldn’t that be 4? I see the count table being incorrect/inverse-order. Let me know if this makes sense?

1 Like

Hey @Nathan_barns!
This table is dry running the loop for only the i=1 value. It increases the count step by step for proper guidance, going from i=1 to i=8. So in the end, it is giving the total count for i=1 which is 4.