hashTablesNSetsNBigOTime Flashcards

1
Q

What’s the space complexity of sets?

A

Space: 0(n)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What’s the time complexity for the set.has() method?

A

Time: 0(1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly