leetcode(1)

思路一:直接法,循環,看另一個在不在列表 思路二:hash map 小結: 1、list:list.index(item):返回item在list中的索引號 2、for i,item in enumerate(list):
相關文章
相關標籤/搜索