time-complexity

Time complexity problem

Another stupid problem can lead to some thoughts.