If we know the number of entries beforehand, lets say v, then is it optimal to initialise the hashmap in java with size v or v/load_factor???
If we donot intialize it then it will be of size 16 and many times rehashing would be done.
So, on an average in contests what size should be chosen for optimal solution??