5 questions0m 0s
Learn the skill
Count only SHOW executions. A single REPEAT n TIMES loop containing one SHOW performs n shows. Two nested loops, each REPEAT n TIMES, with one SHOW in the inner body perform n squared shows. n is a nonnegative integer; this is not a wall-clock prediction.
Worked example
For n = 4, the single loop performs 4 shows and the nested loops perform 16. Doubling n doubles the first count but quadruples the second count.