1
Answer

how Dictionary is optimized for random access on tons of possible keys

Dhawan

Dhawan

3y
540
1

Hey, you guys know how Dictionary is optimized for random access on tons of possible keys?

I was wondering if there was a similar class, but rather than a keyvalue pair, just the presence of a key
I was thinking of using a Dictionary<myKey, bool> but it seems wasteful and dirty

Answers (1)