Dhawan

Dhawan

  • NA
  • 207
  • 14.9k

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

Sep 16 2021 3:45 AM

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)