hashTablesNSetsNBigOTime Flashcards
1
Q
What’s the space complexity of sets?
A
Space: 0(n)
2
Q
What’s the time complexity for the set.has() method?
A
Time: 0(1)
What’s the space complexity of sets?
Space: 0(n)
What’s the time complexity for the set.has() method?
Time: 0(1)