【python】 list和set的复杂度

1)list的复杂度是o(n),set的复杂度是0(1), 所以准备遍历一个列表的时候,都需要将其转换成set。

posted on 2019-08-05 15:48  奋斗的芒果ai榴莲  阅读(2188)  评论(0)    收藏  举报