for (int i = 0; i < n; i++) { }
循环体中没有任何内容,但我仍然认为时间复杂度将为O(n)。这是真的?
O(n)
algorithm time-complexity
algorithm ×1
time-complexity ×1