Java HashSet worst case lookup time complexity

后端 未结 0 721
情深已故
情深已故 2020-12-06 02:37

If hashtables/maps with closed hashing are worst-case O(n), are HashSets also going to require O(n) time for lookup, or is it constant time?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题