SlowLegendaryNoobMaster's blog

By SlowLegendaryNoobMaster, history, 9 months ago, In English

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

Read more »

 
 
 
 
  • Vote: I like it
  • +6
  • Vote: I do not like it

By SlowLegendaryNoobMaster, history, 10 months ago, In English

Google Kickstart and Codeforces Round #676 are clashing. MikeMirzayanov, flaviu2001, please shift the time of the contest by few minutes and that would be alright.

https://codingcompetitions.withgoogle.com/kickstart/schedule

UPD: Thank you for updating the time!!!

Read more »

 
 
 
 
  • Vote: I like it
  • +31
  • Vote: I do not like it