以下代码的空间复杂度是 O(n) 。
def create_dict(n): my_dict = {} for i in range(n): my_dict[i] = i * 2 return my_dict
正确
错误