标签:htable ble 要求 bsp cep tab 复杂 数字 try
这题 要求常熟空间复杂度有点难,所以只要求 O(n)好了
这题用了hashTable (字典)
有个结构可以学: 如果存在,则取出元素,如果不存在,则添加
try:
hashTable.pop(num)
except:
hashTable[num] = 1
标签:htable ble 要求 bsp cep tab 复杂 数字 try
原文地址:https://www.cnblogs.com/ChevisZhang/p/12234325.html