以下 C++ 代码的时间复杂度是多少:(注意我使用的是 gcc,所以 len 作为用户的输入)
int array[len]; \\array is uninitialized
是 O(1) 还是 O(len) ?我有点困惑。
c++ time-complexity
c++ ×1
time-complexity ×1