Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content
Abhijit Gupta
"Count" method on sets does not make sense

Abhijit Gupta

Jul 27, 2024

The count operation on a HashSet does not make sense. Please check this line -

set.count(x) also has an average time complexity of O(1)."

1

0

Comments
Comments