I am using a dictionary whose number of keys start from 0 and reach to a point where the number of keys are 1e5. How can I initialize the slot size of dictionary to avoid resizing cost (By default the slot size initially is 8)?
Note: I don't know the keys initially. Only thing that I know is that finally the number of keys will be 1e5.