HashSet look-up complexity?

前端 未结 3 467
南笙
南笙 2020-12-10 00:40

A look-up operation OR contains for single can be O(n) in worst-case right ? So, for n elements look up in hashSet will b

3条回答
提交回复
热议问题