小编Lea*_*ner的帖子

在无序字符串集中查找字符串的时间复杂度

http://www.cplusplus.com/reference/unordered_set/unordered_set/find/

在 unordered_set 中查找的时间复杂度对于 unordered_set 来说平均是恒定的。如果我有一个 unordered_set 字符串,那么在该集合中查找字符串的时间复杂度是多少?它是常量还是 O(字符串长度)?

c++ string stl find unordered-set

6
推荐指数
1
解决办法
3862
查看次数

标签 统计

c++ ×1

find ×1

stl ×1

string ×1

unordered-set ×1