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 intialise 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???