Hi, Use hashing, but with perfect hashing which does all these operations in O(1).
Refer to Introduction to Algorithms by CLRS to learn about perfect hashing. --
Hi, Use hashing, but with perfect hashing which does all these operations in O(1).
Refer to Introduction to Algorithms by CLRS to learn about perfect hashing. --