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 be O(n^2)
?
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 be O(n^2)
?