Pergunta de entrevista da empresa Bloomberg

What is a hash function for and how would you make one to hash strings?

Resposta da entrevista

Sigiloso

2 de out. de 2011

A hash function creates a unique (hopefully) number for an objects based on its contents. My hash function for strings was to sum the characters casted to ints